Difference between revisions of "Template:Infobox Template"

From Twinsuniverse
Jump to: navigation, search
m (updated the categories heading)
m (fixed the variables heading)
Line 73: Line 73:
 
  |class10=subtitle
 
  |class10=subtitle
  
 +
|label11=Names
 
  |data11=<includeonly>{{Infobox Template/variables|nocat={{{nocat|false}}}
 
  |data11=<includeonly>{{Infobox Template/variables|nocat={{{nocat|false}}}
 
   |{{{var1|}}}|{{{var2|}}}|{{{var3|}}}|{{{var4|}}}|{{{var5|}}}|{{{var6|}}}|{{{var7|}}}|{{{var8|}}}|{{{var9|}}}|{{{var10|}}}}}</includeonly><noinclude>{{/variables|lba|nocat=true}}</noinclude>
 
   |{{{var1|}}}|{{{var2|}}}|{{{var3|}}}|{{{var4|}}}|{{{var5|}}}|{{{var6|}}}|{{{var7|}}}|{{{var8|}}}|{{{var9|}}}|{{{var10|}}}}}</includeonly><noinclude>{{/variables|lba|nocat=true}}</noinclude>

Revision as of 15:29, 3 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)
  • multiline: Wthether or not the template occupies more than one line on a page; yes, optional or no (case insensitive, defaults to "unknown", see the /multiline 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)
  • suppressible: Whether or not the template allows suppression of categorization; yes, recursively or no (case insensitive, defaults to "unknown", see the /suppressible subpage)
  • choice: The type of choice this template offers; single, multiple or none (case insensitive, defaults to "unknown", see the /choice subpage)
  • cat1: The category name and value used for categorization by the template, separated by exclamation mark (allows duplicates with increasing number, see the /categories subpage)
  • var1: The name of a variable that is used by the template (allows duplicates with increasing number, see the /variables 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=
 |multiline=
 |gamerelated=
 |suppressable=
 |choice=
 |cat1=
 |cat2=
 |var1=
}}

Example

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

Infobox User/adventure
Purpose

Infobox [list all]

Single tag

No [list all]

Multi-line

Optional [list all]

Protected

No [list all]

Game related

Yes [list all]

Categorization
Suppressible

Yes [list all]

Choice

Multiple categories [list all]

Categories

Multiple: [list all]

Variables
Names

One: [list all]

  • lba  (free for reuse)
Subpages
{{Infobox Template
 |purpose=infobox
 |singletag=no
 |multiline=optional
 |gamerelated=yes
 |suppressable=yes
 |choice=multiple
 |cat1=LBA1 users!lba1
 |cat2=LBA2 users!lba2
 |cat3=Multiple adventure users!''multiple''
 |cat4=Users with unknown adventure xp!''unknown''!maintenance
 |var1=lba
}}

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.