Difference between revisions of "Template:Infobox Character/adventure"

From Twinsuniverse
Jump to: navigation, search
m
m
Line 12: Line 12:
 
         |category=LBA3 Characters
 
         |category=LBA3 Characters
 
         |label=Stellar Entity Genesis}} }}}}{{
 
         |label=Stellar Entity Genesis}} }}}}{{
#vardefine: adventure |{{#var: lba1}} }}{{
+
#vardefine: adventure |}}{{
#vardefine: adventure |{{#var:adventure}}{{#if: {{#var: adventure}}{{#var: lba2}} |</li><li>}}{{#var: lba2}} }}{{
+
#vardefine: adventure |{{#var:adventure}}{{#if: {{#var:lba1}} |<li>{{#var:lba1}}</li>}} }}{{
#vardefine: adventure |{{#var:adventure}}{{#if: {{#var: adventure}}{{#var: lba3}} |</li><li>}}{{#var: lba3}} }}{{
+
#vardefine: adventure |{{#var:adventure}}{{#if: {{#var:lba2}} |<li>{{#var:lba2}}</li>}} }}{{
 +
#vardefine: adventure |{{#var:adventure}}{{#if: {{#var:lba3}} |<li>{{#var:lba3}}</li>}} }}{{
 +
#vardefine: adventure |{{#if: {{#var:adventure}} | <ul>{{#var:adventure}}</ul> }} }}{{
 
#switch:  
 
#switch:  
 
| {{#var:lba1}}{{#var:lba2}}{{#var:lba3}} = {{categorizer|nocat={{{nocat|false}}} <!-- when all parameters are empty/undefined -->
 
| {{#var:lba1}}{{#var:lba2}}{{#var:lba3}} = {{categorizer|nocat={{{nocat|false}}} <!-- when all parameters are empty/undefined -->
Line 26: Line 28:
 
         |label=Multiple}}:
 
         |label=Multiple}}:
 
     </td></tr>
 
     </td></tr>
     <tr><td colspan="2"><ul><li>{{#var:adventure}}</li></ul>
+
     <tr><td colspan="2">{{#var:adventure}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
This template offers a multiple choice for defining which adventure a (character) article belongs to. It can also automatically categorize a page under that category.
 
This template offers a multiple choice for defining which adventure a (character) article belongs to. It can also automatically categorize a page under that category.

Revision as of 19:05, 24 November 2012

This template offers a multiple choice for defining which adventure a (character) article belongs to. It can also automatically categorize a page under that category.

Parameters

  • lba1: Whether or not to select the first adventure "FunFrock's Reign" (defaults to no, enable by any other nonempty value)
  • lba2: Whether or not to select the second adventure "Twinsen's Odyssey" (defaults to no, enable by any other nonempty value)
  • lba3: Whether or not to select the third adventure "Stellar Entity Genesis" (defaults to no, enable by any other nonempty value)
  • nocat: Whether or not to suppress categorization under the chosen categories (defaults to false, which means auto categorization).

Note: the lba3 parameter is of cource a placeholder for until the highly anticipated sequel is finally released. Do not use it yet.

Note: this categorizer is multiple choice: you can specify any combination of the three options.

Note: if neither lba1, lba2 or lba3 are specified, the default will be 'unknown'.

Syntax

{{adventure|lba1=value|lba2=value|lba3=value}}

Examples

Common use of the Adventure categorizer include either lba1 or lba2 parameters:

{{adventure|lba1=yes}}
FunFrock's Reign [list all]


Or specify the other adventure like this:

{{adventure|lba2=yes}}
Twinsen's Odyssey [list all]


Or when multiple options apply (warning: only works within HTML table cells!):

{{adventure|lba1=yes|lba2=yes}}
Multiple [list all]:


It doesn't matter what value you specify, any will do:

{{adventure|lba2=aye, let's do this!}}
Twinsen's Odyssey [list all]


Notice the negative value of any of the three options is "no" (case insensitive):

{{adventure|lba2=false}}
{{adventure|lba2=not}}
{{adventure|lba2=maybe}}
Twinsen's Odyssey [list all]
Twinsen's Odyssey [list all]
Twinsen's Odyssey [list all]


When the in-game content of LBA3 is publicized, it may be specified as the adventure as well:

{{adventure|lba3=yes}}
Stellar Entity Genesis [list all]


You can also explicitly specify an adventure for exclusion (the same as leaving out the parameter or leaving it empty):

{{adventure|lba1=yes|lba2=no}}
{{adventure|lba1=yes|lba2=}}
FunFrock's Reign [list all]
FunFrock's Reign [list all]


The nocat parameter may be used to suppress automatic categorization like this (any value will do):

{{adventure|lba1=yes|nocat=true}}

(this would render the same result as the first example above, but would not automatically categorize under Category:LBA1 Characters)