Help:Templates: Difference between revisions
From StrategyWiki, the video game walkthrough and strategy guide wiki
m
→Documentation Sub-pages: added inactive subst: to example code (template categories should have static categorisation)
m (→Documentation Subpages: updating old info) |
m (→Documentation Sub-pages: added inactive subst: to example code (template categories should have static categorisation)) |
||
Line 18: | Line 18: | ||
Rules for creating a documentation subpage: | Rules for creating a documentation subpage: | ||
*First, start <nowiki><noinclude></nowiki> tags immediately after the template code ends. This is followed by the {{t|Documentation}} template, which automatically transcludes the documentation page and a link to it. After adding the <nowiki>[[Category:Templates|{{PAGENAME}}]] or [[Category:Guide-specific templates|{{PAGENAME}}]]</nowiki> category, close the <nowiki></noinclude></nowiki> tag. | *First, start <nowiki><noinclude></nowiki> tags immediately after the template code ends. This is followed by the {{t|Documentation}} template, which automatically transcludes the documentation page and a link to it. After adding the <nowiki>[[Category:Templates|{{subst:PAGENAME}}]] or [[Category:Guide-specific templates|{{subst:PAGENAME}}]]</nowiki> category, close the <nowiki></noinclude></nowiki> tag. | ||
*The documentation sub-page must be titled "Documentation", as in [[Template:Infobox/Documentation]]. After adding the {{t|Documentation}} template, you can click the red link it creates to go to the properly named page. | *The documentation sub-page must be titled "Documentation", as in [[Template:Infobox/Documentation]]. After adding the {{t|Documentation}} template, you can click the red link it creates to go to the properly named page. | ||
*The sub-page should be categorized by <nowiki>[[Category:Template documentation|{{PAGENAME}}]], surrounded by <noinclude> tags</nowiki>. | *The sub-page should be categorized by <nowiki>[[Category:Template documentation|{{subst:PAGENAME}}]], surrounded by <noinclude> tags</nowiki>. | ||
==Using a template== | ==Using a template== |