(add the extra Wikipedia: interwiki link prefix to a couple of links that were local links on Wikipedia, but are interwiki links here. Maybe someday we can write local versions of those doc pages)
No edit summary
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{
<includeonly>{{#ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}}
  #ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}}
   | <!-- doc page -->
   | <!-- doc page -->
</includeonly>{{
</includeonly>{{
     #ifeq: {{{doc-notice|show}}} | show
     #ifeq: {{{doc-notice|show}}} | show
     | {{mbox
     | <div class="messagebox" id="template_doc_page_viewed_directly" style="padding-left:1ex;">'''This is a [[Wikipedia:Wikipedia:Template documentation|documentation]] [[Wikipedia: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:Wikipedia:Categories|categories]] and other content that is not part of the original {{ #if: {{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}. </div>
      | type = notice
  }}{{DEFAULTSORT:{{PAGENAME}}}}{{
      | image = [[File:Edit-copy green.jpeg|40px]]
      | text =
'''This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}'''.<br />It contains usage information, [[Wikipedia:Categorization|categories]], [[Help:Interlanguage links|interlanguage links]] and other content that is not part of the original {{ #if: {{{text2|}}} | {{{text2}}} | {{ #if: {{{text1|}}} | {{{text1}}} | {{ #ifeq: {{SUBJECTSPACE}} | {{ns:User}} | {{lc:{{SUBJECTSPACE}}}} template page | {{ #if: {{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}}}}}}}.
      }}
    }}{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}{{
     #if: {{{inhibit|}}}
     #if: {{{inhibit|}}}
     | <!-- skip -->
     | <!-- skip -->
     | [[Category:{{
     | <includeonly>{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}|[[Category:{{
       #if: {{SUBJECTSPACE}}
       #switch: {{SUBJECTSPACE}}
       | {{SUBJECTSPACE}}
       | Template  = Template
       | Article
      | User      = User
     }} documentation<noinclude>| </noinclude>]]
       | #default  = Wikipedia
   }}<includeonly>
     }} documentation pages]]|[[Category:Documentation subpages without corresponding pages]]}}</includeonly>
|<!-- if not on a /doc subpage, do nothing -->
   }}<includeonly>
}}</includeonly><noinclude>
| <!-- if not on a /doc subpage, do nothing -->
 
}}</includeonly><noinclude>
----
{{documentation}}
{{documentation}}<!--
<!-- Add categories and interwikis to the /doc subpage, not here! -->
Add categories to the /doc subpage, not here!
</noinclude>
--></noinclude>

Revision as of 14:11, 13 February 2013

Template documentationedit documentation

Usage

{{Documentation subpage}}

This template should be placed at the top of "/doc" pages. It changes output depending on where it appears:

  • 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 transcludes from a subpage.

In addition to the output message, this template categorizes pages in Category:Documentation subpages.

See also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.