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

From Twinsuniverse
Jump to: navigation, search
m
Line 38: Line 38:
 
* '''nocat''': Whether or not to suppress categorization under the chosen categories (defaults to false, which means auto categorization).
 
* '''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:''' 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:''' 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'.''
+
'''''Note:''' if neither '''lba1''', '''lba2''' or '''lba3''' specify a positive value, the default 'unknown' will be used.''
  
 
==Syntax==
 
==Syntax==
Line 48: Line 49:
  
 
==Examples==
 
==Examples==
Common use of the Adventure categorizer include either '''lba1''' or '''lba2''' parameters:
+
Common use include either the '''lba1''' or '''lba2''' parameter to specify the one adventure a character is in (value "yes" is recommended):
 
  <nowiki>{{adventure|lba1=yes}}</nowiki>
 
  <nowiki>{{adventure|lba1=yes}}</nowiki>
 +
<nowiki>{{adventure|lba2=yes}}</nowiki>
  
 
:{{categorizer|category=LBA1 Characters|label=FunFrock's Reign|nocat=true}}
 
:{{categorizer|category=LBA1 Characters|label=FunFrock's Reign|nocat=true}}
 
 
Or specify the other adventure like this:
 
<nowiki>{{adventure|lba2=yes}}</nowiki>
 
 
 
:{{categorizer|category=LBA2 Characters|label=Twinsen's Odyssey|nocat=true}}
 
:{{categorizer|category=LBA2 Characters|label=Twinsen's Odyssey|nocat=true}}
  
  
Or when multiple options apply (<span style="color:red">warning</span>: only works within HTML table cells!):
+
You can also specify multiple adventures for one character (<span style="color:red">warning</span>: this will force a table cell to split in two, so do not do this outside table cells!):
 
  <nowiki>{{adventure|lba1=yes|lba2=yes}}</nowiki>
 
  <nowiki>{{adventure|lba1=yes|lba2=yes}}</nowiki>
  
Line 68: Line 65:
  
  
It doesn't matter what value you specify, any will do:
+
It doesn't matter which value you use, any nonempty value other than "no" will express a ''positive'' value, so these all have the same result:
  <nowiki>{{adventure|lba2=aye, let's do this!}}</nowiki>
+
  <nowiki>{{adventure|lba1=aye, let's do this!}}</nowiki>
 +
<nowiki>{{adventure|lba1=false}}</nowiki>
 +
<nowiki>{{adventure|lba1=not}}</nowiki>
 +
<nowiki>{{adventure|lba1=maybe}}</nowiki>
 +
<nowiki>{{adventure|lba1=0}}</nowiki>
 +
<nowiki>{{adventure|lba1=zero}}</nowiki>
 +
<nowiki>{{adventure|lba1=null}}</nowiki>
 +
<nowiki>{{adventure|lba1=n}}</nowiki>
 +
<nowiki>{{adventure|lba1=whatever}}</nowiki>
 +
<nowiki>{{adventure|lba1=yes}}</nowiki>
 +
<nowiki>{{adventure|lba1=YES}}</nowiki>
  
:{{categorizer|category=LBA2 Characters|label=Twinsen's Odyssey|nocat=true}}
+
:{{categorizer|category=LBA1 Characters|label=FunFrock's Reign|nocat=true}}
  
  
Notice the negative value of any of the three options is "no" (case insensitive):
+
The only ways to express a ''negative'' value is by leaving out the parameter, leaving it empty or specifying "no" (case insensitive), so these all have the same result:
  <nowiki>{{adventure|lba2=false}}</nowiki>
+
  <nowiki>{{adventure|lba1=yes}}</nowiki>
  <nowiki>{{adventure|lba2=not}}</nowiki>
+
<nowiki>{{adventure|lba1=yes|lba2=}}</nowiki>
  <nowiki>{{adventure|lba2=maybe}}</nowiki>
+
  <nowiki>{{adventure|lba1=yes|lba2=no}}</nowiki>
 +
  <nowiki>{{adventure|lba1=yes|lba2=NO}}</nowiki>
  
:{{categorizer|category=LBA2 Characters|label=Twinsen's Odyssey|nocat=true}}
+
:{{categorizer|category=LBA1 Characters|label=FunFrock's Reign|nocat=true}}
:{{categorizer|category=LBA2 Characters|label=Twinsen's Odyssey|nocat=true}}
+
:{{categorizer|category=LBA2 Characters|label=Twinsen's Odyssey|nocat=true}}
+
  
  
When the in-game content of LBA3 is publicized, it may be specified as the adventure as well:
+
When the in-game content of [[Little Big Adventure 3]] is publicized, it may be specified as the adventure as well:
 
  <nowiki>{{adventure|lba3=yes}}</nowiki>
 
  <nowiki>{{adventure|lba3=yes}}</nowiki>
  
Line 90: Line 96:
  
  
You can also explicitly specify an adventure for exclusion (the same as leaving out the parameter or leaving it empty):
+
You may leave the "adventure" undefined (which would raise a maintenance task) by not specifying any positive value for any of the options, so these all have the same result:
  <nowiki>{{adventure|lba1=yes|lba2=no}}</nowiki>
+
<nowiki>{{adventure}}</nowiki>
  <nowiki>{{adventure|lba1=yes|lba2=}}</nowiki>
+
  <nowiki>{{adventure|lba1=no}}</nowiki>
 +
  <nowiki>{{adventure|lba1=|lba2=|lba3=}}</nowiki>
  
:{{categorizer|category=LBA1 Characters|label=FunFrock's Reign|nocat=true}}
+
:{{categorizer|category=Characters from an unknown adventure|label=unknown|nocat=true}}
:{{categorizer|category=LBA1 Characters|label=FunFrock's Reign|nocat=true}}
+
  
  

Revision as of 20:51, 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 specify a positive value, the default 'unknown' will be used.

Syntax

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

Examples

Common use include either the lba1 or lba2 parameter to specify the one adventure a character is in (value "yes" is recommended):

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


You can also specify multiple adventures for one character (warning: this will force a table cell to split in two, so do not do this outside table cells!):

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


It doesn't matter which value you use, any nonempty value other than "no" will express a positive value, so these all have the same result:

{{adventure|lba1=aye, let's do this!}}
{{adventure|lba1=false}}
{{adventure|lba1=not}}
{{adventure|lba1=maybe}}
{{adventure|lba1=0}}
{{adventure|lba1=zero}}
{{adventure|lba1=null}}
{{adventure|lba1=n}}
{{adventure|lba1=whatever}}
{{adventure|lba1=yes}}
{{adventure|lba1=YES}}
FunFrock's Reign [list all]


The only ways to express a negative value is by leaving out the parameter, leaving it empty or specifying "no" (case insensitive), so these all have the same result:

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


When the in-game content of Little Big Adventure 3 is publicized, it may be specified as the adventure as well:

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


You may leave the "adventure" undefined (which would raise a maintenance task) by not specifying any positive value for any of the options, so these all have the same result:

{{adventure}}
{{adventure|lba1=no}}
{{adventure|lba1=|lba2=|lba3=}}
unknown [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)