Teratornis (talk | contribs) (add the extra Wikipedia: interwiki link prefix to a couple of links that were local links on Wikipedia, but are interwiki links here. Maybe someday we can write local versions of those doc pages) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{#ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}} | ||
| <!-- doc page --> | |||
| <!-- doc page --> | </includeonly>{{ | ||
</includeonly>{{ | #ifeq: {{{doc-notice|show}}} | show | ||
#ifeq: {{{doc-notice|show}}} | show | | {{mbox | ||
| | | type = notice | ||
| image = [[File:Edit-copy green.jpeg|40px]] | |||
| text = | |||
'''This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}'''.<br />It contains usage information, [[Wikipedia:Categorization|categories]], [[Help:Interlanguage links|interlanguage links]] and other content that is not part of the original {{ #if: {{{text2|}}} | {{{text2}}} | {{ #if: {{{text1|}}} | {{{text1}}} | {{ #ifeq: {{SUBJECTSPACE}} | {{ns:User}} | {{lc:{{SUBJECTSPACE}}}} template page | {{ #if: {{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}}}}}}}. | |||
}} | |||
}}{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}{{ | |||
#if: {{{inhibit|}}} | #if: {{{inhibit|}}} | ||
| <!-- skip --> | | <!-- skip --> | ||
| [[Category:{{ | | <includeonly>{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}|[[Category:{{ | ||
# | #switch: {{SUBJECTSPACE}} | ||
| | | Template = Template | ||
| | | User = User | ||
}} documentation | | #default = Wikipedia | ||
}}<includeonly> | }} documentation pages]]|[[Category:Documentation subpages without corresponding pages]]}}</includeonly> | ||
|<!-- if not on a /doc subpage, do nothing --> | }}<includeonly> | ||
}}</includeonly><noinclude> | | <!-- if not on a /doc subpage, do nothing --> | ||
}}</includeonly><noinclude> | |||
{{documentation}} | |||
{{documentation}}<!-- | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
Add categories to the /doc subpage, not here! | </noinclude> | ||
--></noinclude> |
Revision as of 14:11, 13 February 2013
Template documentationedit documentation
Usage
{{Documentation subpage}}
This template should be placed at the top of "/doc" pages. It changes output depending on where it appears:
- On a "/doc" page, it displays a box explaining template documentation and links to the template page.
- On other pages (ie, pages transcluding the "/doc" page), it notes that the documentation transcludes from a subpage.
In addition to the output message, this template categorizes pages in Category:Documentation subpages.
See also
- Wikipedia:Wikipedia:Template documentation for how to use this template.
- Wikipedia:Template:Documentation subpage/doc - Original content of this page on Wikipedia.