本站文本内容除另有声明外,转载时均必须注明出处。(详情…本站文本内容除另有声明外,转载时均必须注明出处。(详情…中文Minecraft Wiki是完全公开的。请勇于扩充与修正内容!中文Minecraft Wiki是完全公开的。请勇于扩充与修正内容!Minecraft中文Wiki微博正在更新!或许有兴趣去看看Minecraft中文Wiki微博正在更新!或许有兴趣去看看想与其他用户进行编辑上的沟通?社区专页正是为此创建的。想与其他用户进行编辑上的沟通?社区专页正是为此创建的。翻译或创建页面之前,不妨看看译名标准化Wiki条例页面。翻译或创建页面之前,不妨看看译名标准化Wiki条例页面。需要管理员的协助?在管理员告示板留言也许可以帮到您。需要管理员的协助?在管理员告示板留言也许可以帮到您。

模板:Documentation

出自Minecraft Wiki
跳到: 導覽搜尋
[查看 | 編輯 | 歷史 | 清除緩存]文檔頁面
Lua logo.svg
此模板使用了模塊:Documentation,這些腳本均使用Lua編寫。
更多詳情,請參閱維基百科:LuaMediaWiki:擴展: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.

可選參數[編輯原始碼]

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 Category:Templates with no documentation, if it's a template.

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 Category:Templates with bad documentation, if it's a template.

[查看 | 編輯 | 歷史 | 清除緩存]上述文檔是從Template:Documentation/doc引用的。