Template

Difference between revisions of "Documentation subpage"

m (1 revision imported: Userbox Template)
m (drop some invisible blanks that uses resources in some pages where we need to save some)
Line 1: Line 1:
<includeonly>{{#ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}}
+
<includeonly>{{#ifeq: {{lc:{{SUBPAGENAME}}}} | {{{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>

Revision as of 19:19, 25 April 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.