(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...") |
|||
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|}}} | ||
|flag = {{{flag|}}} | |flag = {{{flag|}}} | ||
Line 9: | Line 8: | ||
Checking to see if flag variable is set and if so using an image link to display it. | Checking to see if flag variable is set and if so using an image link to display it. | ||
-->{{#if:{{{flag|}}}|{{flag/{{lc:{{{flag}}}}}}} }}<!-- | -->{{#if:{{{flag|}}}|{{flag/{{lc:{{{flag}}}}}}} }}<!-- | ||
− | |||
− | |||
− | |||
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: