Difference between revisions of "Template:Team"
From QWiki
m (Consolidating code by cloning template:Player (they behaved differently before)) |
m (css to center flag and name) |
||
Line 2: | Line 2: | ||
If flag is set - use an image link to display it. | If flag is set - use an image link to display it. | ||
− | -->{{#if:{{{flag|}}}|<span style="white-space:nowrap;">{{flag/{{lc:{{{flag}}}}}}} </span>|<span style="white-space:nowrap;">{{flag/tbd}} </span>}}<!-- | + | -->{{#if:{{{flag|}}}|<span style="white-space:nowrap;vertical-align:baseline;position:relative;bottom:2px;">{{flag/{{lc:{{{flag}}}}}}} </span>|<span style="white-space:nowrap;">{{flag/tbd}} </span>}}<!-- |
Checking if there is a link= variable. If there is use it, if not load the correct link from the player link list. If link=abbr, don't link but underline name and show content of abbr= on hover. | Checking if there is a link= variable. If there is use it, if not load the correct link from the player link list. If link=abbr, don't link but underline name and show content of abbr= on hover. |
Latest revision as of 20:39, 14 November 2024
Documentation (view - edit)
Same as {{player}}, just other name.
Example
This code:
{{team|Orkney Clan|flag=se}} {{team|Ihasnowikipage|flag=us|link=false}}
Returns this:
- Orkney Clan
- Ihasnolink