Difference between revisions of "Template:Infobox Template"

From Twinsuniverse
Jump to: navigation, search
m
m
Line 13: Line 13:
  
  
'''''Note''': The value of the '''Protected''' heading of this infobox is automatically set to the protection level of the page this template is used on, and cannot be specified manually.''
+
'''''Note''': The value of the '''Protected''' heading of this infobox is automatically set to the protection level of the page this template is used on, and cannot be specified manually, but honours categorization suppression.''
  
 
==Syntax==
 
==Syntax==

Revision as of 23:40, 1 June 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 "unspecified", 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)
  • cat2 and val1: The category name and value used for categorization by the template (case sensitive, allows duplicates with increasing number, see the /categories subpage)
  • illcat and illval: The category name and value used in case of an illegal one (case sensitive, defaults to no illegal option)
  • defcat and defval: The category name and value used for default categorization (case sensitive, defaults to no default option)
  • suppressible: Whether or not the template allows suppression of categorization; yes, recursively or no (case insensitive, defaults to "unknown", 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 to the protection level of the page this template is used on, and cannot be specified manually, but honours categorization suppression.

Syntax

Copy and paste the following for quick use:

{{Infobox Template
 |purpose=
 |singletag=
 |gamerelated=
 |cat1=
 |val1=
 |cat2=
 |val2=
 |illcat=
 |illval=
 |defcat=
 |defval=
 |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

Yes [list all]

Categorization
Categories

none [list all]

Default

unknown [list all]

Suppressible

Yes [list all]

Maintenance tasks
Variables
Subpages
{{Infobox Template
 |purpose=infobox
 |singletag=no
 |gamerelated=yes
 |cat1=LBA1 users|val1=lba1
 |cat2=LBA2 users|val2=lba2
 |illcat=|illval=
 |defcat=Users with unknown adventure xp|defval=''unknown''
 |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.