Template:Documentation subpage: Difference between revisions

From Greyhawk Wiki
Jump to navigation Jump to search
Renegade54 (talk | contribs)
replace template
Use Template:Terminate sentence, which correctly determines when to add a full stop.
Line 1: Line 1:
{{#if:{{{Original-recipe|}}}{{{Orig|}}}
<includeonly><!--
<table class="messagebox" style="line-height:1.1em;" style=" background:#f9f9b7;">
-->{{#ifeq:{{lc:{{SUBPAGENAME}}}} |{{{override|doc}}}
<tr><td rowspan="3" style="width:60px;text-align:center;">[[File:Edit-paste.svg|40px]]</td>
    | <!--(this template has been transcluded on a /doc or /{{{override}}} page)-->
<td>This is the template documentation page for [[{{NAMESPACE}}:{{{1|{{BASEPAGENAME}}}}}]].</td></tr>
</includeonly><!--
<tr><td><small>This page may not be intended to be viewed directly.
 
<br/>Links using variables may appear broken; do not replace these with hardcoded page names or URLs.</small></td></tr>
      -->{{#ifeq:{{{doc-notice|show}}} |show
</table>
          | {{Mbox
|<includeonly>{{#ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}}
            | type = notice
  | <!-- doc page -->
            | style = margin-bottom:1.0em;
</includeonly>{{
            | image = [[File:Edit-copy green.svg|40px|alt=|link=]]
    #ifeq: {{{doc-notice|show}}} | show
            | text =
    | {{ombox
'''This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for {{terminate sentence|{{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}}}'''<br />It contains usage information, [[Wikipedia:Categorization|categories]] 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}}}}}}}}.  
      | type = notice
            }}
      | image = [[File:Edit-copy.svg|40px]]
        }}<!--
      | text =  
 
'''This is a documentation subpage for {{{1|[[{{SUBJECTSPACE}}: {{BASEPAGENAME}}]]}}}''' <small>(see that page for the {{ #if: {{{text1|}}} | {{{text1}}} | {{ #ifeq: {{SUBJECTSPACE}} | {{ns:User}} | {{lc:{{SUBJECTSPACE}}}} template | {{ #if: {{SUBJECTSPACE}} | {{lc:{{SUBJECTSPACE}}}} | article }}}}}} itself)</small>.<br />It contains usage information, categories, 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}}}}}}}<!--
      }}
 
    }}{{DEFAULTSORT:{{PAGENAME}}}}{{#ifeq:{{NAMESPACE}}|{{ns:10}}|[[Category:Documentation<noinclude>| </noinclude>]]}}<includeonly>
      -->{{#if:{{{inhibit|}}} |<!--(don't categorize)-->
| <!-- if not on a /doc subpage, do nothing -->
          |  <includeonly><!--
}}</includeonly><noinclude>{{doc}}
              -->{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
                  | [[Category:{{#switch:{{SUBJECTSPACE}} |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
</noinclude>
                  | [[Category:Documentation subpages without corresponding pages]]
}}<noinclude>[[Category:Maintenance templates|{{PAGENAME}}]]</noinclude>
                  }}<!--
          --></includeonly>
        }}<!--
 
(completing initial #ifeq: at start of template:)
--><includeonly>
    | <!--(this template has not been transcluded on a /doc or /{{{override}}} page)-->
    }}<!--
--></includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 13:56, 24 December 2021

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
ViewEditHistory
The following documentation is transcluded from Template:Documentation subpage/doc:

Usage

{{documentation subpage}}