Template:Documentation subpage: Difference between revisions
Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
No edit summary |
(Simulating missing Boobpedia CSS.) |
||
| (One intermediate revision by the same user not shown) | |||
| 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 documentation subpage for {{{1|[[{{SUBJECTSPACE}}:{{#titleparts:{{PAGENAME}}|1|1}}<!--{{BASEPAGENAME}}-->]]}}}''' <small>(see that page for the {{ #if: {{SUBJECTSPACE}} | {{lc:{{SUBJECTSPACE}}}} | article }} itself)</small>.<br />It contains usage information, [[ | | <div class="messagebox" id="template_doc_page_viewed_directly" style="background:#f9f9f9; border:1px solid #bbb; padding: 3px; padding-left:1ex; margin-left:6em; margin-right:6em; margin-bottom:1em">'''This is a documentation subpage for {{{1|[[{{SUBJECTSPACE}}:{{#titleparts:{{PAGENAME}}|1|1}}<!--{{BASEPAGENAME}}-->]]}}}''' <small>(see that page for the {{ #if: {{SUBJECTSPACE}} | {{lc:{{SUBJECTSPACE}}}} | article }} itself)</small>.<br />It contains usage information, [[:Category: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|}}} | ||
Latest revision as of 06:07, 31 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').