Template:Documentation subpage: Difference between revisions

From Chalo Chatu, Zambia online encyclopedia
Icem4k (talk | contribs)
m 1 revision imported
No edit summary
Tag: Reverted
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
  -->{{#ifeq:{{lc:{{SUBPAGENAME}}}} |{{{override|doc}}}
  -->{{#ifeq:{{lc:{{SUBPAGENAME}}}}|{{{override|doc}}}
    | <!--(this template has been transcluded on a /doc or /{{{override}}} page)-->
| <!-- (we are on /doc or /{{{override}}}) -->
</includeonly><!--
  {{#ifeq:{{{doc-notice|show}}}|show
 
    | {{#ifexist:Template:Mbox
      -->{{#ifeq:{{{doc-notice|show}}} |show
        | {{Mbox
          | {{Mbox
            | type = notice
            | type = notice
            | style = margin-bottom:1.0em;
            | style = margin-bottom:1.0em;
            | image = [[File:Edit-copy green.svg|40px|alt=|link=]]
            | image = [[File:Edit-copy green.svg|40px|alt=|link=]]
            | text = '''This is a [[{{ns:Project}}:Template documentation|documentation]] [[{{ns:Project}}:Subpages|subpage]] for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}.'''<br />
            | text =
                    It contains usage information, [[{{ns:Project}}:Categorization|categories]] and other content that is not part of the original
'''This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for {{{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}}}}}}}}.  
                    {{#if:{{{text2|}}}|{{{text2}}}|{{#if:{{{text1|}}}|{{{text1}}}|{{#ifeq:{{SUBJECTSPACE}}|{{ns:User}}|{{lc:{{SUBJECTSPACE}}}} template page|{{#if:{{SUBJECTSPACE}}|{{lc:{{SUBJECTSPACE}}}} page|article}}}}}}}.
            }}
          }}
         }}<!--
         | <!-- Fallback notice if {{Mbox}} is missing -->
 
          <div style="border:1px solid #a2a9b1;background:#f8f9fa;margin:0 0 1.0em 0;padding:.6em;">
      -->{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}<!--
            [[File:Edit-copy green.svg|40px|left|alt=]]
 
            <div style="margin-left:48px;">
      -->{{#if:{{{inhibit|}}} |<!--(don't categorize)-->
              <b>This is a [[{{ns:Project}}:Template documentation|documentation]] [[{{ns:Project}}:Subpages|subpage]] for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}.</b><br />
          |   <includeonly><!--
              It contains usage information, [[{{ns:Project}}:Categorization|categories]] and other content that is not part of the original
              -->{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}
              {{#if:{{{text2|}}}|{{{text2}}}|{{#if:{{{text1|}}}|{{{text1}}}|{{#ifeq:{{SUBJECTSPACE}}|{{ns:User}}|{{lc:{{SUBJECTSPACE}}}} template page|{{#if:{{SUBJECTSPACE}}|{{lc:{{SUBJECTSPACE}}}} page|article}}}}}}}.
                  | [[Category:{{#switch:{{SUBJECTSPACE}} |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
            </div>
                  | [[Category:Documentation subpages without corresponding pages]]
            <div style="clear:both;"></div>
                  }}<!--
          </div>
          --></includeonly>
      }}
        }}<!--
  }}
 
  {{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}
(completing initial #ifeq: at start of template:)
  {{#if:{{{inhibit|}}}|
--><includeonly>
    <!-- (don’t categorize) -->
    | <!--(this template has not been transcluded on a /doc or /{{{override}}} page)-->
    |
    }}<!--
    {{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}
--></includeonly><noinclude>{{Documentation}}</noinclude>
      | [[Category:{{#switch:{{SUBJECTSPACE}}|Template=Template|Module=Module|User=User|#default={{SITENAME}}}} documentation pages]]
      | [[Category:Documentation subpages without corresponding pages]]
    }}
  }}
| <!-- (we are NOT on /doc or /{{{override}}}) -->
}}
</includeonly><noinclude>{{Documentation}}</noinclude>