Jump to content

Template:Documentation subpage/doc: Difference between revisions

(fix code)
 
(2 intermediate revisions by one other user not shown)
Line 5: Line 5:
'''OR'''
'''OR'''
  {{tlx|documentation subpage|<nowiki>[[</nowiki><var>main page to link to</var><nowiki>]]</nowiki>}}
  {{tlx|documentation subpage|<nowiki>[[</nowiki><var>main page to link to</var><nowiki>]]</nowiki>}}
===Userboxes===
When used to document usage of a [[Wikipedia:Userboxes|userbox]], it may be preferred to have this template state "userbox"/"userbox page" instead of "{{lc:{{ns:Template}}}}"/"{{lc:{{ns:Template}}}} page" or "{{lc:{{ns:User}}}} template"/"{{lc:{{ns:User}}}} template page". If this is preferred, use:
{{tl|userbox documentation subpage}}
'''OR'''
{{tlx|userbox documentation subpage|<nowiki>[[</nowiki><var>main userbox page to link to</var><nowiki>]]</nowiki>}}


===Customization of text===
===Customization of text===
Line 28: Line 22:


==Functions==
==Functions==
In addition to the output message, the template categorizes pages to [[:Category:Template documentation]], [[:Category:User documentation]], or similar (named after the subject space), but only for documentation pages in namespaces with the subpage feature. It defaults the [[m:Help:Categories#Sort order|sort key]] to the page name without namespace (ie, "Foo" on "Template:Foo", so it would be sorted in categories under 'F').
In addition to the output message, the template categorizes pages to [[:Category:Template documentation]] or similar (named after the subject space), but only for documentation pages in namespaces with the subpage feature. It defaults the [[Categorization#Using_sort_keys|sort key]] to the page name without namespace (ie, "Foo" on "Template:Foo", so it would be sorted in categories under 'F').


==See also==
==See also==
Line 34: Line 28:
<includeonly>
<includeonly>
<!-- categories and interwiki links -->
<!-- categories and interwiki links -->
[[Category:Template documentation| {{PAGENAME}}]]
[[Category:Template namespace templates]]


</includeonly>
</includeonly>
318,531

edits