Difference between revisions of "Template:Infobox Template"

From Twinsuniverse
Jump to: navigation, search
m (fix attempt)
m (updated the protection heading)
Line 11: Line 11:
 
* '''suppressible''': Whether or not the template allows suppression of categorization; yes, recursively or no (case insensitive, defaults to no, see the [[/suppressible]] subpage)
 
* '''suppressible''': Whether or not the template allows suppression of categorization; yes, recursively or no (case insensitive, defaults to no, see the [[/suppressible]] subpage)
 
* '''nocat''': Whether or not to suppress categorization of the template itself under all automatically chosen categories (defaults to false, which means auto categorization).
 
* '''nocat''': Whether or not to suppress categorization of the template itself under all automatically chosen categories (defaults to false, which means auto categorization).
 +
 +
 +
'''''Note''': The value of the '''Protected''' heading of this infobox is automatically set, and cannot be specified manually.''
  
 
==Syntax==
 
==Syntax==
Line 43: Line 46:
  
 
  |label3=Protected
 
  |label3=Protected
  |data3={{#switch:{{PROTECTIONLEVEL:edit}}|sysop=Full|=No|#default=Semi}}
+
  |data3=<includeonly>{{Infobox Template/protected|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/protected|nocat=true}}</noinclude>
  
 
  |label4=Game related
 
  |label4=Game related

Revision as of 21:35, 28 May 2014

This template is used as an infobox for Template pages. It should be the first of the page, before the general description.

Parameters

  • title: An optional title to display at the top of the infobox (case sensitive, defaults to {{PAGENAME}})
  • purpose: The purpose of the template; infobox, formatting, messagebox or website (case insensitive, defaults to "unknown", see the /purpose subpage)
  • singletag: Whether or not the template should be called without parameters; yes, optional or no (case insensitive, defaults to "unknown", see the /singletag subpage)
  • gamerelated: Whether or not the template directly relates to any of the games; yes or no (case insensitive, defaults to "unknown", see the /gamerelated subpage)
  • normalcat: The category name used for normal categorization if only one; "multiple" otherwise (case sensitive, defaults to not a categorizer)
  • abnormalcat: The category name used for abnormal categorization (case sensitive, defaults to not a categorizer)
  • defaultcat: The category name used for default categorization (case sensitive, defaults to not a categorizer)
  • suppressible: Whether or not the template allows suppression of categorization; yes, recursively or no (case insensitive, defaults to no, see the /suppressible subpage)
  • nocat: Whether or not to suppress categorization of the template itself under all automatically chosen categories (defaults to false, which means auto categorization).


Note: The value of the Protected heading of this infobox is automatically set, and cannot be specified manually.

Syntax

Copy and paste the following for quick use:

{{Infobox Template
 |purpose=
 |singletag=
 |gamerelated=
 |normalcat=
 |abnormalcat=
 |defaultcat=
 |suppressable=
}}

Example

On a template page called "Infobox User/adventure":

Infobox User/adventure
Purpose

Infobox [list all]

Single tag

No [list all]

Protected

No [list all]

Game related

unknown [list all]

Categorization
Normally

Multiple [list all]

Default

Users with unknown adventure xp

Suppressible

Yes [list all]

Maintenance tasks
Variables
Subpages
{{Infobox Template
 |purpose=infobox
 |singletag=no
 |gamerelated=yes
 |normalcat=multiple
 |abnormalcat=
 |defaultcat=Users with unknown adventure xp
 |suppressable=yes
}}

example paragraph: Description text about the template, in this case Adventure XP. Description text about the template, in this case Adventure XP. Description text about the template, in this case Adventure XP. Description text about the template, in this case Adventure XP. Description text about the template, in this case Adventure XP. Description text about the template, in this case Adventure XP. Description text about the template, in this case Adventure XP. Description text about the template, in this case Adventure XP. Description text about the template, in this case Adventure XP. Description text about the template, in this case Adventure XP. Description text about the template, in this case Adventure XP. Description text about the template, in this case Adventure XP. Description text about the template, in this case Adventure XP. Description text about the template, in this case Adventure XP. Description text about the template, in this case Adventure XP. Description text about the template, in this case Adventure XP. Description text about the template, in this case Adventure XP. Description text about the template, in this case Adventure XP.