Template

Difference between revisions of "Documentation subpage"

(move Category:Wikidata documentation pages to Category:Template documentation pages—these are template documentations after all, just in various namespaces for some reasons; use {{ombox}} so that the styling is consistent e...)
m (1 revision imported: Random number)
 
(5 intermediate revisions by 3 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|}}}
    | {{ombox
+
      | {{{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 = '''This is a [[Help:Template documentation|documentation]] [[mw:Help:Subpages|subpage]] for {{#if: {{{1|}}} | {{{1}}} | [[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]] }}.'''<br />
+
      --> {{#if: {{{text2|}}}
It contains usage information, [[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 }} }} }} }}.
+
      | {{{text2|}}}
      }}
+
      | {{#if: {{{text1|}}}
    }}{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}{{
+
        | {{{text1|}}}
    #if: {{{inhibit|}}}
+
        | {{#ifeq: {{SUBJECTSPACE}} | {{ns:User}}
    | <!-- skip -->
+
          | {{lc:{{SUBJECTSPACE}}}} template page
    | <includeonly>{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}|[[Category:{{
+
          | {{#if: {{SUBJECTSPACE}}
      #switch: {{SUBJECTSPACE}}
+
            | {{lc:{{SUBJECTSPACE}}}} page
       | Template = Template
+
        | article
       | Module   = Module
+
            }}
       | User     = User
+
          }}
       | #default = Template
+
        }}
    }} documentation pages]]|[[Category:Documentation subpages without corresponding pages]]}}</includeonly>
+
      }}.
   }}<includeonly>
+
    }}
| <nowiki /><!-- if not on a /doc subpage, do nothing -->
+
  <!--If not on a doc subpage, do nothing-->}}{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}{{#if: {{{inhibit|}}}
}}</includeonly><noinclude>
+
  | <!--Skip-->
{{documentation}}
+
  | <includeonly>{{#ifexist: {{NAMESPACE}}:{{BASEPAGENAME}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
    | [[Category:{{#switch: {{SUBJECTSPACE}}
</noinclude>
+
       |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.