no edit summary
imported>76561198018895007 (Created page with ";Description :This template is used to insert documentation on template pages. ;Syntax and Parameters :Type <code><nowiki><noinclude>{{t|documentation|<var>{{FULLPAGENAME}}/do...") |
imported>76561198018895007 No edit summary |
||
Line 2: | Line 2: | ||
:This template is used to insert documentation on template pages. | :This template is used to insert documentation on template pages. | ||
;Syntax and Parameters | ;Syntax and Parameters | ||
:Type <code><nowiki><noinclude>{{t|documentation|<var>{{FULLPAGENAME}}/doc</var>}}</noinclude></nowiki></code> at the end of the template page. Include the full (exact, including namespace) name of the documentation page as a parameter where | :Type <code><nowiki><noinclude>{{t|documentation|<var>{{FULLPAGENAME}}/doc</var>}}</noinclude></nowiki></code> at the end of the template page. Include the full (exact, including namespace) name of the documentation page as a parameter where possible. | ||
==General usage== | ==General usage== | ||
Line 13: | Line 13: | ||
</pre> | </pre> | ||
This will fill in add the documentation template to the template-page, ''but not pages where the template is used'' due to the inclusion tags. The subst:FULLPAGENAME serves as a wikimedia "Magic Word" and will be replaced by the wikispace and page name once the edit is completed, and serves to direct the template towards the appropriate page for substitution in case the automatic code fails to work. | This will fill in and add the documentation template to the template-page, ''but not pages where the template is used'' due to the inclusion tags. The subst:FULLPAGENAME serves as a wikimedia "Magic Word" and will be replaced by the wikispace and page name once the edit is completed, and serves to direct the template towards the appropriate page for substitution in case the automatic code fails to work. | ||
===On the Template/doc page=== | ===On the Template/doc page=== | ||
Line 28: | Line 28: | ||
<includeonly>Any categories for the template itself</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | <includeonly>Any categories for the template itself</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | ||
</pre | </pre> | ||
Use any or all of the above description/syntax/sample output sections. You may also want to add "see also" or further usage information sections. | Use any or all of the above description/syntax/sample output sections. You may also want to add "see also" or further usage information sections. | ||
Note that the above example also uses {{t|T}} to display the formatting of the template code, without actually calling the template for transclusion (as normally happens with the squiggly brackets). | Note that the above example also uses {{t|T}} to display the formatting of the template code, without actually calling the template for transclusion (as normally happens with the squiggly brackets).<includeonly> | ||
[[Category:Template]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | |||
<includeonly> | |||
[[Category:Template]] | |||
</includeonly> | |||
<noinclude> | |||
[[Category:Template documentation|{{PAGENAME}}]] | |||
</noinclude> |