Template:Documentation subpage: Difference between revisions
Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
(New page: <includeonly>{{ #ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}} | <!-- doc page --> </includeonly>{{ #ifeq: {{{doc-notice|show}}} | show | <div class="messagebox" id="templa...) |
No edit summary |
||
| Line 4: | Line 4: | ||
</includeonly>{{ | </includeonly>{{ | ||
#ifeq: {{{doc-notice|show}}} | show | #ifeq: {{{doc-notice|show}}} | show | ||
| <div class="messagebox" id="template_doc_page_viewed_directly" style="padding-left:1ex;">'''This is a [[ | | <div class="messagebox" id="template_doc_page_viewed_directly" style="padding-left:1ex;">'''This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for {{{1|[[{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}''' <small>(see that page for the {{ #if: {{SUBJECTSPACE}} | {{lc:{{SUBJECTSPACE}}}} | article }} itself)</small>.<br />It contains usage information, [[Wikipedia:Categories|categories]] and other content that is not part of the original {{ #if: {{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}. </div> | ||
}}{{DEFAULTSORT:{{PAGENAME}}}}{{ | }}{{DEFAULTSORT:{{PAGENAME}}}}{{ | ||
#if: {{{inhibit|}}} | #if: {{{inhibit|}}} | ||
| Line 16: | Line 16: | ||
|<!-- if not on a /doc subpage, do nothing --> | |<!-- if not on a /doc subpage, do nothing --> | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
---- | ---- | ||
{{documentation}}<!-- | {{documentation}}<!-- | ||
Add categories and interwikis to the /doc subpage, not here! | Add categories and interwikis to the /doc subpage, not here! | ||
--></noinclude> | --></noinclude> | ||
Revision as of 21:09, 30 May 2008
[edit]
Template documentation
- This documentation is transcluded from Template:Documentation subpage/doc. (edit | history)
Usage
{{documentation subpage}}
OR
{{documentation subpage|[[main page to link to]]|[[documentation to link to]]}}
This template should be placed at the top of "/doc" pages. It changes output depending on where it is viewed:
- 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 is transcluded from a subpage.
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 sort key to the page name without namespace (ie, "Foo" on "Template:Foo", so it would be sorted in categories under 'F').