Difference between revisions of "Template:Infobox Template"

From Twinsuniverse
Jump to: navigation, search
m
(updated categories heading)
Line 1: Line 1:
<noinclude>This template is used as an infobox for Template pages. It should be the first of the page, before the general description.
+
<noinclude>This template is used as an infobox for template pages. It should be the first of the page, before the general description.
  
 
==Parameters==
 
==Parameters==
Line 6: Line 6:
 
* '''singletag''': Whether or not the template should be called without parameters; yes, optional or no (case insensitive, defaults to "unspecified", see the [[/singletag]] 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)
 
* '''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)
+
* '''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)
* '''abnormalcat''': The category name used for abnormal categorization (case sensitive, defaults to not a categorizer)
+
* '''illcat''' and '''illval''': The category name and value used in case of an illegal one (case sensitive, defaults to not a categorizer)
* '''defaultcat''': The category name used for default categorization (case sensitive, defaults to not a categorizer)
+
* '''defcat''' and '''defval''': The category name and value 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 "unknown", see the [[/suppressible]] subpage)
 
* '''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).
 
* '''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.''
+
'''''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.''
  
 
==Syntax==
 
==Syntax==
Line 21: Line 21:
 
  |singletag=
 
  |singletag=
 
  |gamerelated=
 
  |gamerelated=
  |normalcat=
+
  |cat1=
  |abnormalcat=
+
  |val1=
  |defaultcat=
+
  |cat2=
 +
|val2=
 +
|illcat=
 +
|illval=
 +
|defcat=
 +
|defval=
 
  |suppressable=
 
  |suppressable=
 
}}</nowiki>
 
}}</nowiki>
Line 54: Line 59:
 
  |class5=subtitle
 
  |class5=subtitle
  
  |label6=Normally
+
  |label6=Categories
  |data6=<includeonly>{{categorizer|category={{#if: {{{normalcat|}}}|{{#ifeq: {{{normalcat}}}|multiple|Multi-categorizing templates|{{{normalcat}}}}}|Noncategorizing templates}}|label={{#ifeq: {{{normalcat|}}}|multiple|Multiple}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{categorizer|category=Multi-categorizing templates|label=Multiple|nocat=true}}</noinclude>
+
  |data6=<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>
  
  |label7=Abnormally
+
  |label7=Illegal
  |data7=<includeonly>{{categorizer|category={{{abnormalcat|}}}|nocat={{{nocat|false}}}}}</includeonly>
+
  |data7=<includeonly>{{categorizer|category={{{illcat|}}}|label={{{illval|}}}|nocat={{{nocat|false}}}}}</includeonly>
  
 
  |label8=Default
 
  |label8=Default
  |data8=<includeonly>{{categorizer|category={{{defaultcat|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{categorizer|category=Users with unknown adventure xp|nocat=true}}</noinclude>
+
  |data8=<includeonly>{{categorizer|category={{{defcat|}}}|label={{{defval|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{categorizer|category=Users with unknown adventure xp|label=''unknown''|nocat=true}}</noinclude>
  
 
  |label9=Suppressible
 
  |label9=Suppressible
Line 79: Line 85:
 
  |singletag=no
 
  |singletag=no
 
  |gamerelated=yes
 
  |gamerelated=yes
  |normalcat=multiple
+
  |cat1=LBA1 users|val1=lba1
  |abnormalcat=
+
  |cat2=LBA2 users|val2=lba2
  |defaultcat=Users with unknown adventure xp
+
  |illcat=|illval=
 +
|defcat=Users with unknown adventure xp|defval=''unknown''
 
  |suppressable=yes
 
  |suppressable=yes
 
}}</nowiki>
 
}}</nowiki>

Revision as of 00:28, 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)
  • 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 not a categorizer)
  • defcat and defval: The category name and value 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 "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.

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.