Template:Doc

来自Thorium Mod Wiki
跳到导航 跳到搜索

Use this template within a template page to transclude its documentation. If the template shares the same documentation as another template, pass the other template's name as parameter 1.

If the template documentation seems outdated or insufficient, pass the baddoc parameter to the doc template.

Examples of Usage

The doc transclusion should be placed at the end of the template code:

  • <noinclude>{{doc}}</noinclude>
  • <noinclude>{{doc|templatename}}</noinclude>
  • <noinclude>{{doc|baddoc=y}}</noinclude>

Sub-templates

  • {{doc/preload}} - Preload text shown in the edit box when the "create" link is clicked on templates with no existing /doc sub-page.

Categories

  • Category:Template documentation
  • Category:Templates with no documentation