새로 오신 분들은 길라잡이를 꼭 읽어주세요.

문서의 정리·작성번역을 도와주시면 마인크래프트 위키에 큰 힘이 됩니다.

틀:Documentation

Minecraft Wiki
(틀:설명문서에서 넘어옴)
이동: 둘러보기, 검색
[보기 | 편집 | 역사 | 캐시 제거]설명문서
Lua logo.svg
이 틀은 모듈:Documentation을(를) 사용하는, 루아로 작성된 스크립트입니다.
자세히 알아보려면 루아 혹은 mw:Extension:Scribunto를 참조하십시오.

For templates, insert <noinclude>{{subst:doc}}</noinclude> at the end of the template, then save the page, this will place {{documentation}} and a comment advising editors where to place categories and interwiki links. For other types of pages, the documentation template should already be there.

Click "create" at the top of the page and the documentation page will be opened with some pre-formatting. This formatting can also be created by using {{subst:doc}} on the documentation page.

Documentation pages will automatically be added to Category:Documentation pages. Using {{doc}} without subst: will add the page to Category:Pages with templates requiring substitution.

Optional parameters[원본 편집]

This parameters can either be added to the {{subst:doc}} template when creating the page, or added to the {{documentation}} template afterwards.

type[원본 편집]

Sets the "type" of documentation this is, e.g. template, module, message, etc. This will be used as part of some messages the template might display, as well as categorisation.

The type is automatic based on the namespace, so it shouldn't generally need to be set.

page[원본 편집]

The page where the documentation should be. This defaults to a subpage of the current page called "doc".

content[원본 편집]

Allows documentation content to be specified directly, rather than on a separate sub-page. Useful for small page-specific sub-page templates, e.g. Explosion/table.

nodoc[원본 편집]

If a template has no documentation and you don't know how to use it, add nodoc=1 to the documentation template on the documentation page. The documentation's background will become red to make it more noticeable, and the page will be added to a category depending on the type of page.

This is automatically set if the documentation page doesn't exist or is empty, so this generally isn't necessary to set.

baddoc[원본 편집]

Similar to nodoc, this is used to mark templates that do have documentation, but it isn't very good. This can mean it doesn't have enough examples, doesn't explain all the functions properly, or doesn't explain the point of the template properly. The documentation's background will become yellow to make it more noticeable, and the page will be added to a category depending on the type of page.

[보기 | 편집 | 역사 | 캐시 제거]위 설명문서는 틀:Documentation/doc에서 왔습니다.