(Created page with "<includeonly><!-- Starting with checking if the hidden sort variable is set if so it'll go into a switch to output the right variable as hidden. -->{{#if:{{{hs|}}}|{{HiddenSor...") |
|||
| (One intermediate revision by one user not shown) | |||
| Line 2: | Line 2: | ||
Starting with checking if the hidden sort variable is set if so it'll go into a switch to output the right variable as hidden. | Starting with checking if the hidden sort variable is set if so it'll go into a switch to output the right variable as hidden. | ||
-->{{#if:{{{hs|}}}|{{HiddenSort|{{#switch:{{lc:{{{hs}}}}} | -->{{#if:{{{hs|}}}|{{HiddenSort|{{#switch:{{lc:{{{hs}}}}} | ||
| − | |||
|name = {{{1|}}} | |name = {{{1|}}} | ||
| − | |||
|{{{hs}}}}}}}}}<!-- | |{{{hs}}}}}}}}}<!-- | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Checking if there is a link= variable. If there is use it, if not load the correct link from the player link list. | Checking if there is a link= variable. If there is use it, if not load the correct link from the player link list. | ||
This template allows for adding race icons and flags in a simple manner. If you do not wish to have a link use the link=false variable.
The variables are:
This code:
{{player|Tyler|link=false}}
{{player|Ret|hs=race|link=false}}
Returns this: