Difference between revisions of "Template:Infobox Template"

From Twinsuniverse
Jump to: navigation, search
m (changed order of headings)
(updated argument forwarding)
Line 9: Line 9:
 
* '''illcat''' and '''illval''': The category name and value used in case of an illegal one (case sensitive, defaults to no illegal option)
 
* '''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)
 
* '''defcat''' and '''defval''': The category name and value used for default categorization (case sensitive, defaults to no default option)
* '''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)
+
* '''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)
 
* '''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).
  
Line 27: Line 27:
 
  |defval=
 
  |defval=
 
  |cat1=
 
  |cat1=
|val1=
 
 
  |cat2=
 
  |cat2=
|val2=
 
 
}}</nowiki>
 
}}</nowiki>
  
Line 70: Line 68:
 
  |label9=Categories
 
  |label9=Categories
 
  |data9=<includeonly>{{Infobox Template/categories|nocat={{{nocat|false}}}
 
  |data9=<includeonly>{{Infobox Template/categories|nocat={{{nocat|false}}}
   |cat1={{{cat1|}}}|val=1{{{val1|}}}|cat=2{{{cat2|}}}|val=2{{{val2|}}}|cat=3{{{cat3|}}}|val=3{{{val3|}}}|cat=4{{{cat4|}}}|val4={{{val4|}}}|cat5={{{cat5|}}}|val5={{{val5|}}}|cat6={{{cat6|}}}|val6={{{val6|}}}|cat7={{{cat7|}}}|val7={{{val7|}}}|cat8={{{cat8|}}}|val8={{{val8|}}}cat9=|{{{cat9|}}}|val9={{{val9|}}}|cat10={{{cat10|}}}|val10={{{val10|}}}|cat11={{{cat11|}}}|val11={{{val11}}}|cat12={{{cat12|}}}|val12={{{val12|}}}|cat13={{{cat13|}}}|val13={{{val13|}}}|cat14={{{cat14|}}}|val14={{{val14|}}}|cat15={{{cat15|}}}|val15={{{val15|}}}|cat16={{{cat16|}}}|val16={{{val16|}}}|cat17={{{cat17|}}}|val17={{{val17|}}}|cat18={{{cat18|}}}|val18={{{val18|}}}|cat19={{{cat19|}}}|val19={{{val19|}}}|cat20={{{cat20|}}}|val20={{{val20|}}}|cat21={{{cat21|}}}|val21={{{val21|}}}|cat22={{{cat22|}}}|val22={{{val22|}}}|cat=23{{{cat23|}}}|val23={{{val23|}}}|cat24={{{cat24|}}}|val24={{{val24|}}}|cat25={{{cat25|}}}|val25={{{val25|}}}|cat26={{{cat26|}}}|val26={{{val26|}}}|cat27={{{cat27|}}}|val27={{{val27|}}}|cat28={{{cat28|}}}|val28={{{val28|}}}|cat29={{{cat29|}}}|val29={{{val29|}}}|cat30={{{cat30|}}}|val30={{{val30|}}}}}</includeonly><noinclude>{{/categories|cat1=LBA1 users|val1=lba1|cat2=LBA2 users|val2=lba2|nocat=true}}</noinclude>
+
   |cat1={{{cat1|}}}|cat=2{{{cat2|}}}|cat=3{{{cat3|}}}|cat=4{{{cat4|}}}|cat5={{{cat5|}}}|cat6={{{cat6|}}}|cat7={{{cat7|}}}|cat8={{{cat8|}}}|cat9={{{cat9|}}}|cat10={{{cat10|}}}|cat11={{{cat11|}}}|cat12={{{cat12|}}}|cat13={{{cat13|}}}|cat14={{{cat14|}}}|cat15={{{cat15|}}}|cat16={{{cat16|}}}|cat17={{{cat17|}}}|cat18={{{cat18|}}}|cat19={{{cat19|}}}|cat20={{{cat20|}}}|cat21={{{cat21|}}}|cat22={{{cat22|}}}|cat=23{{{cat23|}}}|cat24={{{cat24|}}}|cat25={{{cat25|}}}|cat26={{{cat26|}}}|cat27={{{cat27|}}}|cat28={{{cat28|}}}|cat29={{{cat29|}}}|cat30={{{cat30|}}}}}</includeonly><noinclude>{{/categories|cat1=LBA1 users!lba1|cat2=LBA2 users!lba2|nocat=true}}</noinclude>
  
 
  |header10=Maintenance tasks
 
  |header10=Maintenance tasks
Line 88: Line 86:
 
  |illcat=|illval=
 
  |illcat=|illval=
 
  |defcat=Users with unknown adventure xp|defval=''unknown''
 
  |defcat=Users with unknown adventure xp|defval=''unknown''
  |cat1=LBA1 users|val1=lba1
+
  |cat1=LBA1 users!lba1
  |cat2=LBA2 users|val2=lba2
+
  |cat2=LBA2 users!lba2
 
}}</nowiki>
 
}}</nowiki>
  

Revision as of 09:59, 2 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)
  • suppressible: Whether or not the template allows suppression of categorization; yes, recursively or no (case insensitive, defaults to "unknown", see the /suppressible 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)
  • 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)
  • 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=
 |suppressable=
 |illcat=
 |illval=
 |defcat=
 |defval=
 |cat1=
 |cat2=
}}

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
Suppressible

Yes [list all]

Default

unknown [list all]

Categories

none [list all]

Maintenance tasks
Variables
Subpages
{{Infobox Template
 |purpose=infobox
 |singletag=no
 |gamerelated=yes
 |suppressable=yes
 |illcat=|illval=
 |defcat=Users with unknown adventure xp|defval=''unknown''
 |cat1=LBA1 users!lba1
 |cat2=LBA2 users!lba2
}}

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.