Template

Difference between revisions of "Documentation subpage"

(restore proper i18n)
 
m (1 revision imported: Random number)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}}
+
<includeonly>{{#if:{{IsDocSubpage|override={{{override|doc}}}}}
  | <!-- doc page -->
+
| <!--doc subpage--></includeonly>{{#ifeq:{{{doc-notice|show}}}|show
</includeonly>{{
+
  | {{Ombox|type=notice|image=[[File:Edit-copy green.svg|40px|link=]]
    #ifeq: {{{doc-notice|show}}} | show
+
    |text='''This is a [[Help:Template documentation|documentation]] [[mw:Help:Subpages|subpage]] for {{#if:{{{1|}}}
    | {{mbox
+
      | {{{1}}}
      | type = notice
+
      | [[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]
      | image = [[File:Edit-copy green.svg|40px|link=]]
+
      }}.'''<br/> It contains usage information, [[Categorization|categories]], and other content that is not part of the original<!--
      | text = {{Documentation subpage/text/{{#ifexist:Template:Documentation subpage/text/{{int:lang}}|{{int:lang}}|en}}|1={{{1|}}}|text2={{{text2|}}}|text1={{{text1|}}}}}
+
      --> {{#if: {{{text2|}}}
       }}
+
      | {{{text2|}}}
     }}{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}{{
+
      | {{#if: {{{text1|}}}
    #if: {{{inhibit|}}}
+
        | {{{text1|}}}
    | <!-- skip -->
+
        | {{#ifeq: {{SUBJECTSPACE}} | {{ns:User}}
    | <includeonly>{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}|[[Category:{{
+
          | {{lc:{{SUBJECTSPACE}}}} template page
      #switch: {{SUBJECTSPACE}}
+
          | {{#if: {{SUBJECTSPACE}}
       | Template = Template
+
            | {{lc:{{SUBJECTSPACE}}}} page
       | Module   = Module
+
        | article
       | User     = User
+
            }}
       | #default = Wikidata
+
          }}
    }} documentation pages]]|[[Category:Documentation subpages without corresponding pages]]}}</includeonly>
+
        }}
   }}<includeonly>
+
       }}.
| <!-- if not on a /doc subpage, do nothing -->
+
     }}
}}</includeonly><noinclude>
+
  <!--If not on a doc subpage, do nothing-->}}{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}{{#if: {{{inhibit|}}}
{{documentation}}
+
  | <!--Skip-->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
  | <includeonly>{{#ifexist: {{NAMESPACE}}:{{BASEPAGENAME}}
</noinclude>
+
    | [[Category:{{#switch: {{SUBJECTSPACE}}
 +
       |Template=Template
 +
       |Module=Module
 +
       |User=User
 +
       |#default=Template
 +
      }} documentation pages]]
 +
    | [[Category:Documentation subpages without corresponding pages]]
 +
    }}</includeonly>
 +
   }}<includeonly>
 +
}}</includeonly><noinclude>{{Documentation}}<!--Add categories and interwikis to the /doc subpage, not here!--></noinclude>

Latest revision as of 13:38, 21 July 2021

Lua error in package.lua at line 80: module 'strict' not found.Lua error in package.lua at line 80: module 'strict' not found.