Template:Documentation subpage: Difference between revisions

Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
No edit summary
(Simulating missing Boobpedia CSS.)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{
<includeonly>{{
   #ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}}
   #ifeq: {{lc:{{#titleparts:{{PAGENAME}}|1|2}}<!--{{SUBPAGENAME}}-->}} | {{{override|doc}}}
   | <!-- doc page -->
   | <!-- doc page -->
</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 [[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>
     | <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

This is a documentation subpage for Template:Documentation subpage (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

[edit] Template documentation

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').