Difference between revisions of "Template:Infobox Template"

From Twinsuniverse
Jump to: navigation, search
(initial setup for template-infobox)
 
(fixed some data)
Line 37: Line 37:
  
 
  |label1=Purpose
 
  |label1=Purpose
  |data1=<includeonly>{{Infobox Template/purpose|{{{race|}}}|label={{{label|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/purpose|quetch|nocat=true}}</noinclude>
+
  |data1=<includeonly>{{Infobox Template/purpose|{{{purpose|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/purpose|infobox|nocat=true}}</noinclude>
  
 
  |label2=Single tag
 
  |label2=Single tag
  |data2=<includeonly>{{Infobox Template/singletag|{{{gender|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/singletag|male|nocat=true}}</noinclude>
+
  |data2=<includeonly>{{Infobox Template/singletag|{{{singletag|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/singletag|no|nocat=true}}</noinclude>
  
 
  |label3=Protected
 
  |label3=Protected
  |data3=<includeonly>{{Infobox Template/protected|{{{size|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/protected|average|nocat=true}}</noinclude>
+
  |data3={{#if:{{PROTECTIONLEVEL:edit}}|{{PROTECTIONLEVEL:edit}}|no}}
  
 
  |label4=Game related
 
  |label4=Game related
  |data4=<includeonly>{{Infobox Template/gamerelated|{{{age|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/gamerelated|adult|nocat=true}}</noinclude>
+
  |data4=<includeonly>{{Infobox Template/gamerelated|{{{gamerelated|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/gamerelated|adult|nocat=true}}</noinclude>
  
 
  |header5=Categorization
 
  |header5=Categorization

Revision as of 01:14, 28 May 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 "unknown", 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)
  • normalcat: The category name used for normal categorization if only one; "multiple" otherwise (case sensitive, defaults to not a categorizer)
  • abnormalcat: The category name used for abnormal categorization (case sensitive, defaults to not a categorizer)
  • defaultcat: The category name 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 no, 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).

Syntax

Copy and paste the following for quick use:

{{Infobox Template
 |purpose=
 |singletag=
 |gamerelated=
 |normalcat=
 |abnormalcat=
 |defaultcat=
 |suppressable=
}}

Example

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

Infobox User/adventure
Purpose

Infobox [list all]

Single tag

No [list all]

Protected

no

Game related

unknown [list all]

Categorization
Normally

Multiple [list all]

Default

Users with unknown adventure xp

Suppressible

Yes [list all]

Maintenance tasks
Variables
Subpages
{{Infobox Template
 |purpose=infobox
 |singletag=no
 |gamerelated=yes
 |normalcat=multiple
 |abnormalcat=
 |defaultcat=Users with unknown adventure xp
 |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.