Template:Pagetype/doc: Difference between revisions

Rm {{used in system}}, no longer used in system messages
m (1 revision imported)
imported>Pppery
(Rm {{used in system}}, no longer used in system messages)
 
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{high-use|7080000+|all-pages = yes}}
{{high use}}
{{used in system|in [[MediaWiki:Templatesandbox-editform-legend]]}}
{{lua|Module:Pagetype}}
{{lua|Module:Pagetype}}


Line 32: Line 31:
| category          =  
| category          =  
| portal            =  
| portal            =  
| book              =
| education program =
| timedtext        =  
| timedtext        =  
| module            =  
| module            =  
Line 68: Line 65:
|-
|-
| Module namespace || <code>module</code>
| Module namespace || <code>module</code>
|-
| Book namespace || <code>book</code>
|-
|-
| Other namespaces || <code>page</code>
| Other namespaces || <code>page</code>
Line 120: Line 115:
  | help              = ''yes''
  | help              = ''yes''
  | portal            = ''yes''
  | portal            = ''yes''
| education program = ''yes''
  | timedtext        = ''yes''
  | timedtext        = ''yes''
  | special          = ''yes''
  | special          = ''yes''
Line 142: Line 136:
|-
|-
| Portal namespace || <code>portal</code>
| Portal namespace || <code>portal</code>
|-
| Education program namespace || <code>education program page</code>
|-
|-
| Timed Text namespace || <code>Timed Text page</code>
| Timed Text namespace || <code>Timed Text page</code>
Line 160: Line 152:
  | category = ''no''
  | category = ''no''
  | module  = ''no''
  | module  = ''no''
| book    = ''no''
  }}
  }}


Line 264: Line 255:
| style="text-align: center;" | {{cross}}
| style="text-align: center;" | {{cross}}
| portal
| portal
|-
| Book
| style="text-align: center;" | {{cross}}
| style="text-align: center;" | {{tick}}
| style="text-align: center;" | {{tick}}
| style="text-align: center;" | {{tick}}
| book
|-
| Education Program
| style="text-align: center;" | {{cross}}
| style="text-align: center;" | {{cross}}
| style="text-align: center;" | {{tick}}
| style="text-align: center;" | {{cross}}
| education program page
|-
|-
| TimedText
| TimedText
Line 358: Line 335:
  | category          = ''custom text''
  | category          = ''custom text''
  | portal            = ''custom text''
  | portal            = ''custom text''
| book              = ''custom text''
| education program = ''custom text''
  | timedtext        = ''custom text''
  | timedtext        = ''custom text''
  | module            = ''custom text''
  | module            = ''custom text''
Line 538: Line 513:
<templatedata>
<templatedata>
{
{
         "description": "This template Identifies the type of a given page. It is highly customisable. By default it detects redirects, articles, files, templates, categories, books, and modules, and other types of page are displayed as \"page\".",
         "description": "This template Identifies the type of a given page. It is highly customisable. By default it detects redirects, articles, files, templates, categories, and modules, and other types of page are displayed as \"page\".",
         "params": {
         "params": {
                 "1": {
                 "1": {
Line 603: Line 578:
                         "label": "Portal namespace",
                         "label": "Portal namespace",
                         "description": "Adjust output for the Portal namespace. Use \"yes\" to enable with the output \"portal\", \"no\" to disable, and other text to enable with custom output. Disabled by default."
                         "description": "Adjust output for the Portal namespace. Use \"yes\" to enable with the output \"portal\", \"no\" to disable, and other text to enable with custom output. Disabled by default."
                },
                "book": {
                        "type": "string",
                        "label": "Book namespace",
                        "description": "Adjust output for the Book namespace. Use \"yes\" to enable with the output \"book\", \"no\" to disable, and other text to enable with custom output. Enabled by default."
                },
                "education program": {
                        "type": "string",
                        "label": "Education Program namespace",
                        "description": "Adjust output for the Education Program namespace. Use \"yes\" to enable with the output \"education program page\", \"no\" to disable, and other text to enable with custom output. Disabled by default."
                 },
                 },
                 "timedtext": {
                 "timedtext": {
Line 657: Line 622:
                         "type": "string/line",
                         "type": "string/line",
                         "label": "Set of default namespaces",
                         "label": "Set of default namespaces",
                         "description": "This parameter is used to specify the set of namespaces used by default. By default the template detects page types in the main, File, Template, Category, Book, and Module namespaces. If this parameter is set to \"none\", the template doesn't detect page types in any namespaces. If it is set to \"extended\", the template detects page types in the main, User, Wikipedia, File, MediaWiki, Template, Help, Category, Portal, Book, and Module namespaces. If it is set to \"all\", the template detects page types in all namespaces, including talk pages. The namespaces set by this parameter can be overridden by the parameters for individual namespaces."
                         "description": "This parameter is used to specify the set of namespaces used by default. By default the template detects page types in the main, File, Template, Category, and Module namespaces. If this parameter is set to \"none\", the template doesn't detect page types in any namespaces. If it is set to \"extended\", the template detects page types in the main, User, Wikipedia, File, MediaWiki, Template, Help, Category, Portal, and Module namespaces. If it is set to \"all\", the template detects page types in all namespaces, including talk pages. The namespaces set by this parameter can be overridden by the parameters for individual namespaces."
                 },
                 },
                 "plural": {
                 "plural": {
Anonymous user