Difference between revisions of "Template:Documentation subpage"

From Chevy Wiki
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
 
Line 1: Line 1:
{{Template test cases notice}}
{{#if:{{{Original-recipe|}}}{{{Orig|}}}
= Documentation =
|<!-- reconstruction of original  Template:Template doc page pattern (now the redirected to " Template:Documentation subpage") template... ca mid-November 2007 -->
<pre>----
<table  class="messagebox" style="line-height:1.1em;" style=" background:#f9f9b7;">
{{ Documentation }}
<tr> <td rowspan="3" style="width:60px;text-align:center;" > [[Image:Edit-paste.svg|40px]]</td>
----</pre>
<td> This is the [[Wikipedia:Template documentation|template documentation]]<!--
----
--> page for [[{{NAMESPACE}}:{{{1|{{BASEPAGENAME}}}}}]].</td></tr>
{{ Documentation }}
<tr><td><small>This page may not be intended to be viewed directly. <br/
----
>Links using [[Help:Variable|variable]]s may appear broken; do not replace these with [[hardcoded]] page names or URLs.</small></td></tr>
= Documentation/sandbox =
</table>{{#if:{{{inhib|x}}}{{{inhibit|}}}|<!-- skip --->|<includeonly>[[Category:Template documentation|{{PAGENAME}}]]</includeonly>
<pre>----
}}<!-- Please retain the above original template...
{{ Documentation/sandbox }}
 
----</pre>
There are templates formulated to [[WP:DPP]] that need this.
----
 
{{ Documentation/sandbox }}
Of course, if you all want to start updating all the interwiki exported templates, go on making things more incompatible... queries to User:Fabartus.
----
 
--->
|<includeonly>{{#ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}}
  | <!-- doc page -->
</includeonly>{{
    #ifeq: {{{doc-notice|show}}} | show
    | {{mbox
      | type = notice
      | image = none
      | text =  
'''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}}.
      }}
    }}{{DEFAULTSORT:{{PAGENAME}}}}{{
    #if: {{{inhibit|}}}
    | <!-- skip -->
    | [[Category:{{
      #if: {{SUBJECTSPACE}}
      | {{SUBJECTSPACE}}
      | Article
    }} documentation<noinclude>| </noinclude>]]
  }}<includeonly>
| <!-- if not on a /doc subpage, do nothing -->
}}</includeonly><noinclude>
 
{{pp-template|small=yes}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
}}

Latest revision as of 14:55, 3 February 2009

[edit] Template-info.svg 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').

See also

General information about documentation for templates

{{ Documentation }} family

Template:Documentation subpage/doc (backlinks, edit)
Template:Documentation subpage/sandbox (backlinks, edit)
Template:Documentation subpage/testcases (backlinks, edit)

Meta Wiki {{ Documentation }} ancestor

  • m:Template:Documentation (backlinks, edit)

ar:قالب:صفحة توثيق فرعية bg:Шаблон:Подстраница с документация fa:الگو:Documentation subpage es:Plantilla:Subpágina documentación de plantilla id:Templat:Subhalaman dokumentasi is:Snið:Skjalsíða ja:template:Documentation subpage mk:Шаблон:Документација потстрана no:mal:Documentation subpage pl:Szablon:Podstrona dokumentacji sl:template:Dokumentacijska podstran sq:Stampa:Documentation subpage uk:Шаблон:Підсторінка документації