The wiki upgrade is complete. If you notice anything that seems to be functioning incorrectly, please file a bug report.
|
[dismiss] |
Template:Lookup
Contents |
[edit] Description
This is slightly better designed version of 'template:normalize'...
Lookup a property of something.
It is intended for use in other templates where the property of a parameter is needed.
[edit] Usage
{{ lookup | property | something [| default]}}
[edit] Parameters
- Property
- Required, Positional, Usually static.
- Names the property being looked up. Accepted values are:
- prof id – assigned by ArenaNet/NC Soft
- short prof name
- full prof name
- product name
- product nation
- product nationals
- product ref
- namespace id
- topic namespace
- discussion namespace
- Something
- Required, Positional, Variable.
- The thing whose property is being looked up.
- prof things:
- a, assassin, d, dervish, e, elementalist, me, mesmer, mo, monk, n, necromancer, p, paragon, r, ranger, rt, ritualist, w, warrior
- ArenaNet assigned proffesion identifiers
- product things
- bmp, bonus, bonus mission pack, core, eotn, eye of the north, factions, gwen, nightfall, pre, prophecies, post
- prof things:
- default
- Optional, Positional.
- What to say if the property of something is not found, or the special value sic to use something with [sic] appended.
[edit] Examples
{{ lookup | prof id | 1 }}, {{ lookup | short prof name | 1 }}, {{ lookup | full prof name | 1 }}
1, w, warrior
{{ lookup | prof id | 2 }}, {{ lookup | short prof name | 2 }}, {{ lookup | full prof name | 2 }}
2, r, ranger
{{ lookup | prof id | 3 }}, {{ lookup | short prof name | 3 }}, {{ lookup | full prof name | 3 }}
3, mo, monk
{{ lookup | prof id | 4 }}, {{ lookup | short prof name | 4 }}, {{ lookup | full prof name | 4 }}
4, n, necromancer
{{ lookup | prof id | 5 }}, {{ lookup | short prof name | 5 }}, {{ lookup | full prof name | 5 }}
5, me, mesmer
{{ lookup | prof id | 6 }}, {{ lookup | short prof name | 6 }}, {{ lookup | full prof name | 6 }}
6, e, elementalist
{{ lookup | prof id | 7 }}, {{ lookup | short prof name | 7 }}, {{ lookup | full prof name | 7 }}
7, a, assassin
{{ lookup | prof id | 8 }}, {{ lookup | short prof name | 8 }}, {{ lookup | full prof name | 8 }}
8, rt, ritualist
{{ lookup | prof id | 9 }}, {{ lookup | short prof name | 9 }}, {{ lookup | full prof name | 9 }}
9, p, paragon
{{ lookup | prof id | 10 }}, {{ lookup | short prof name | 10 }}, {{ lookup | full prof name | 10 }}
10, d, dervish
{{ lookup | prof id | a }}, {{ lookup | short prof name | a }}, {{ lookup | full prof name | a }}
7, a, assassin
{{ lookup | prof id | d }}, {{ lookup | short prof name | d }}, {{ lookup | full prof name | d }}
10, d, dervish
{{ lookup | prof id | e }}, {{ lookup | short prof name | e }}, {{ lookup | full prof name | e }}
6, e, elementalist
{{ lookup | prof id | n }}, {{ lookup | short prof name | n }}, {{ lookup | full prof name | n }}
4, n, necromancer
{{ lookup | prof id | p }}, {{ lookup | short prof name | p }}, {{ lookup | full prof name | p }}
9, p, paragon
{{ lookup | prof id | r }}, {{ lookup | short prof name | r }}, {{ lookup | full prof name | r }}
2, r, ranger
{{ lookup | prof id | w }}, {{ lookup | short prof name | w }}, {{ lookup | full prof name | w }}
1, w, warrior
{{ lookup | prof id | as }}, {{ lookup | short prof name | as }}, {{ lookup | full prof name | as }}
7, a, assassin
{{ lookup | prof id | de }}, {{ lookup | short prof name | de }}, {{ lookup | full prof name | de }}
10, d, dervish
{{ lookup | prof id | el }}, {{ lookup | short prof name | el }}, {{ lookup | full prof name | el }}
6, e, elementalist
{{ lookup | prof id | me }}, {{ lookup | short prof name | me }}, {{ lookup | full prof name | me }}
5, me, mesmer
{{ lookup | prof id | mo }}, {{ lookup | short prof name | mo }}, {{ lookup | full prof name | mo }}
3, mo, monk
{{ lookup | prof id | ne }}, {{ lookup | short prof name | ne }}, {{ lookup | full prof name | ne }}
4, n, necromancer
{{ lookup | prof id | pa }}, {{ lookup | short prof name | pa }}, {{ lookup | full prof name | pa }}
9, p, paragon
{{ lookup | prof id | ra }}, {{ lookup | short prof name | ra }}, {{ lookup | full prof name | ra }}
2, r, ranger
{{ lookup | prof id | rt }}, {{ lookup | short prof name | rt }}, {{ lookup | full prof name | rt }}
8, rt, ritualist
{{ lookup | prof id | wa }}, {{ lookup | short prof name | wa }}, {{ lookup | full prof name | wa }}
1, w, warrior
{{ lookup | prof id | assassin }}7
{{ lookup | product name | bmp }}, {{ lookup | product ref | bmp }}
Guild Wars: Bonus Mission Pack, Guild Wars: Bonus Mission Pack
{{ lookup | product name | bonus }}, {{ lookup | product ref | bonus }}
Guild Wars: Bonus Mission Pack, Guild Wars: Bonus Mission Pack
{{ lookup | product name | core }}
All Guild Wars I Campeigns
{{ lookup | product name | eotn }}, {{ lookup | product ref | eotn }}
Guild Wars: Eye of the North, Guild Wars: Eye of the North
{{ lookup | product name | factions }}, {{ lookup | product ref | nightfall }}, <!--
-->{{ lookup | product nation | factions }}, {{ lookup | product nationals | factions }}
Guild Wars: Factions, Guild Wars: Nightfall, Cantha, Canthan
{{ lookup | product name | gwen }}, {{ lookup | product ref | gwen }}
Guild Wars: Eye of the North, Guild Wars: Eye of the North
{{ lookup | product name | nightfall }}, {{ lookup | product ref | nightfall }}, <!--
-->{{ lookup | product nation | nightfall }}, {{ lookup | product nationals | nightfall }}
Guild Wars: Nightfall, Guild Wars: Nightfall, Elona, Elonian
{{ lookup | product name | pre }}, {{ lookup | product ref | pre }}, <!--
-->{{ lookup | product nation | pre }}. {{ lookup | product nationals | pre }}
Guild Wars: Prophecies (before the Searing), Guild Wars: Prophecies (before the Searing), Tyria, Tyrian
{{ lookup | product name | prophecies }}, {{ lookup | product ref | prophecies }}, <!--
-->{{ lookup | product nation | prophecies }}. {{ lookup | product nationals | prophecies }}
Guild Wars: Prophecies, Guild Wars: Prophecies, Tyria, Tyrian
{{ lookup | product name | post }}, {{ lookup | product ref | post }}, <!--
-->{{ lookup | product nation | post }}. {{ lookup | product nationals | post }}
Guild Wars: Prophecies (after the Searing), Guild Wars: Prophecies (after the Searing), Tyria, Tyrian
{{ lookup | namespace id | {{NAMESPACE}}: }}, {{ lookup | topic namespace | {{NAMESPACE}}: }}, <!--
-->{{ lookup | discussion namespace | {{NAMESPACE}}: }}
10, Template, Template talk
{{ lookup | undefined property | something }}? undefined property of something ?
{{ lookup | undefined property | something | sic }}something [sic]
{{ lookup | undefined property | something | huh }}huh