Difference between revisions of "Template:Infobox User/adventure"
J McKalling (Talk | contribs) (fixed all list issues) |
J McKalling (Talk | contribs) m (indentation) |
||
Line 5: | Line 5: | ||
#ifexpr: {{#len:{{#var:lba|}}}} < 1 | #ifexpr: {{#len:{{#var:lba|}}}} < 1 | ||
|{{maintenance task|nocat={{{nocat|false}}} <!-- all options are invalid --> | |{{maintenance task|nocat={{{nocat|false}}} <!-- all options are invalid --> | ||
− | + | |category=Users with unknown adventure xp | |
− | + | |doclink=Infobox User/adventure | |
− | + | |label=''unknown'' | |
− | + | |reason=None of the '''lba1''', '''lba2''' and '''lba3''' parameters are specified}} | |
|{{ | |{{ | ||
− | + | #ifexpr: {{#len:{{#var:lba|}}}} > 1 | |
− | + | |{{categorizer|nocat={{{nocat|false}}} <!-- multiple options are valid --> | |
− | + | |category=Multiple adventure users | |
− | + | |label=Multiple:}} | |
− | + | </td></tr> | |
− | + | <tr><td colspan="2">}}{{list|range=3|separator={{#ifexpr: {{#len:{{#var:lba|}}}} <= 1|implode}} | |
− | + | |{{#if: {{#pos:{{#var:lba|}}|1}} | {{categorizer|nocat={{{nocat|false}}}|category=LBA1 users|article=FunFrock's Reign}}}} | |
− | + | |{{#if: {{#pos:{{#var:lba|}}|2}} | {{categorizer|nocat={{{nocat|false}}}|category=LBA2 users|article=Twinsen's Odyssey}}}} | |
− | + | |{{#if: {{#pos:{{#var:lba|}}|3}} | {{categorizer|nocat={{{nocat|false}}}|category=LBA3 users|article=Stellar Entity Genesis}}}} }} | |
}}</includeonly><noinclude>{{Infobox Template | }}</includeonly><noinclude>{{Infobox Template | ||
|purpose=infobox | |purpose=infobox |
Latest revision as of 22:44, 10 June 2014
Infobox User/adventure | |
---|---|
Purpose |
Infobox [list all] |
Single tag |
No [list all] |
Multi-line |
Optional [list all] |
Protected |
No [list all] |
Game related |
Yes [list all] |
Categorization | |
Suppressible |
Recursively [list all] |
Choice |
Multiple categories [list all] |
Categories |
Multiple: [list all] |
|
|
Variables | |
Names |
One: [list all] |
|
|
Subpages |
This template offers a multiple choice for defining which adventure you're experienced in, and your userpage belongs to. It can also automatically categorize your 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. You cannot possibly mean to specify 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
{{Infobox User/adventure|lba1=value|lba2=value|lba3=value}}
Examples
Common use include either the lba1 or lba2 parameter to specify the one adventure you are experienced in (value "yes" is recommended):
{{Infobox User/adventure|lba1=yes}} {{Infobox User/adventure|lba2=yes}}
You can also specify multiple adventures for yourself (warning: this will force a table cell to split in two, so do not do this outside table cells!):
{{Infobox User/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:
{{Infobox User/adventure|lba1=aye, let's do this!}} {{Infobox User/adventure|lba1=false}} {{Infobox User/adventure|lba1=not}} {{Infobox User/adventure|lba1=maybe}} {{Infobox User/adventure|lba1=0}} {{Infobox User/adventure|lba1=zero}} {{Infobox User/adventure|lba1=null}} {{Infobox User/adventure|lba1=n}} {{Infobox User/adventure|lba1=whatever}} {{Infobox User/adventure|lba1=yes}} {{Infobox User/adventure|lba1=YES}}
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:
{{Infobox User/adventure|lba1=yes}} {{Infobox User/adventure|lba1=yes|lba2=}} {{Infobox User/adventure|lba1=yes|lba2=no}} {{Infobox User/adventure|lba1=yes|lba2=NO}}
When the in-game content of Little Big Adventure 3 is publicized, it may be specified as the adventure as well:
{{Infobox User/adventure|lba3=yes}}
You may leave the "adventure" undefined (which would raise the Users with unknown adventure xp maintenance task) by not specifying any positive value for any of the options, so these all have the same result:
{{Infobox User/adventure}} {{Infobox User/adventure|lba1=no}} {{Infobox User/adventure|lba1=|lba2=|lba3=}}
- unknown [list all]
Eventhough technically allowed, if you're not experienced in any of the adventures, you shouldn't be editing the Twinsuniverse (yet).
The nocat parameter may be used to suppress automatic categorization like this (any value will do):
{{Infobox User/adventure|lba1=yes|nocat=true}}
This would render the same result as the first example above, but would not automatically categorize under Category:LBA1 users. This feature works both on valid values and the maintenance task mentioned above.