Difference between revisions of "Template:Infobox Template"
J McKalling (Talk | contribs) m |
J McKalling (Talk | contribs) m (changed order of headings) |
||
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) | ||
− | * ''' | + | * '''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) | * '''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) |
* '''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 21: | Line 21: | ||
|singletag= | |singletag= | ||
|gamerelated= | |gamerelated= | ||
− | | | + | |suppressable= |
− | + | ||
− | + | ||
− | + | ||
|illcat= | |illcat= | ||
|illval= | |illval= | ||
|defcat= | |defcat= | ||
|defval= | |defval= | ||
− | | | + | |cat1= |
+ | |val1= | ||
+ | |cat2= | ||
+ | |val2= | ||
}}</nowiki> | }}</nowiki> | ||
Line 59: | Line 59: | ||
|class5=subtitle | |class5=subtitle | ||
− | |label6= | + | |label6=Suppressible |
− | |data6=<includeonly>{{Infobox Template/ | + | |data6=<includeonly>{{Infobox Template/suppressible|{{{suppressible|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/suppressible|yes|nocat=true}}</noinclude> |
− | + | ||
|label7=Illegal | |label7=Illegal | ||
Line 69: | Line 68: | ||
|data8=<includeonly>{{categorizer|category={{{defcat|}}}|label={{{defval|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{categorizer|category=Users with unknown adventure xp|label=''unknown''|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= | + | |label9=Categories |
− | |data9=<includeonly>{{Infobox Template/ | + | |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> | ||
|header10=Maintenance tasks | |header10=Maintenance tasks | ||
Line 85: | Line 85: | ||
|singletag=no | |singletag=no | ||
|gamerelated=yes | |gamerelated=yes | ||
− | | | + | |suppressable=yes |
− | + | ||
|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 |
+ | |cat2=LBA2 users|val2=lba2 | ||
}}</nowiki> | }}</nowiki> | ||
Revision as of 23:46, 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)
- 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)
- 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)
- 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= |val1= |cat2= |val2= }}
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|val1=lba1 |cat2=LBA2 users|val2=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.