Difference between revisions of "Template:Documentation subpage/sandbox"

From Chevy Wiki
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
 
Line 1: Line 1:
[[Image:Pictogram voting wait.svg|17px]] '''Doing...'''<noinclude>
<noinclude>
{{pp-template|small=yes}}
<!-- only show on documentation subpages -->
{{documentation}}
{{ #ifeq: {{SUBPAGENAME}} | sandbox
  | {{Template sandbox notice}}
  | {{pp-semi-template|small=yes}}
}}
----
</noinclude><includeonly>{{
  #ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}}
  | <!-- doc page -->
</includeonly>{{
    #ifeq: {{{doc-notice|show}}} | show
    | <!-- doc-notice show -->{{mbox | type=notice | image=none | text='''This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for ''{{{1|[[{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}''.'''<br />It contains usage information, [[Wikipedia:Categories|categories]] and other content not part of the original {{ #if: {{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}.<br /><span style="font-size: 0.9em;">To view the {{ #if: {{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}} itself, see {{{1|[[{{ #if: {{SUBJECTSPACE}} |{{SUBJECTSPACE}}:}}{{BASEPAGENAME}}]]}}}.</span>}}
    | <!-- doc-notice hide -->
  }}{{DEFAULTSORT:{{PAGENAME}}}}{{
    #if: {{{inhibit|}}}
    | <!-- skip -->
    | [[Category:{{
      #if: {{SUBJECTSPACE}}
      | {{SUBJECTSPACE}}
      | Article
    }} documentation<noinclude>| </noinclude>]]
  }}<includeonly>
  |<!-- not doc -->
}}</includeonly><noinclude>
----
{{ #ifeq: {{FULLPAGENAME}} | Template:Documentation subpage |
<!-- Merge completed: [[User:ConradPino]] 15:25, 11 November 2007 (UTC)
{{mergingfrom|Template doc page|date=November 2007}}
-->
{{mergingfrom|Template doc page transcluded|date=November 2007}}
<!-- Merge completed: [[User:ConradPino]] 13:00, 9 November 2007 (UTC)
{{mergingfrom|Template doc page viewed directly|date=November 2007}}
-->
}}
{{documentation, template}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</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

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:Шаблон:Підсторінка документації