Difference between revisions of "Template:Achievement"
From QWiki
(Created page with "<includeonly> | {{{1}}} || {{{2}}} || {{{3}}} || {{{4}}} || {{{5}}} |- </includeonly>") |
m (Added category:Templates) |
||
(108 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | + | |- {{#switch:{{{place|3}}} | |
− | + | | 1 = style="background-color: rgba(255, 215, 57, 0.15);" | |
+ | | 2 = style="background-color: rgba(204, 204, 204, 0.1);" | ||
+ | | 3 = style="background-color: none;" | ||
+ | }} | ||
+ | | style="text-align:center; width:46px" | {{{year}}} | ||
+ | | {{Placement|{{{place}}}}} | ||
+ | | style="text-align:left; padding-left:0.7em" | [[{{{event}}}]] <small>{{{additional|}}}</small> | ||
+ | | style="text-align:center;width:40px" |{{{mode}}} | ||
+ | |{{#if:{{{flag|}}} {{{team|}}}|style="text-align:left; padding-left:0.7em;width:190px;"{{!}}{{player|{{{team}}}|flag={{{flag}}}}}}} | ||
+ | {{#ifeq:{{{prize|}}} | hide ||{{!}} {{!}}{{{prize}}}}} | ||
+ | |- | ||
</includeonly> | </includeonly> | ||
+ | <noinclude>{{Documentation}}[[Category:Templates]]</noinclude> |
Latest revision as of 10:18, 23 November 2020
Documentation (view - edit)
Variables
- year=
- place= see Template:Placement for placings
- event= name including season and number
- additional= written in small text, directly after event, good for displaying "Division X"
- mode= 1on1/2on2/4on4
- flag= two letter country
- team= teamname or name of partner
- prize= amount of money, also add currency. If
|prize=hide
this cell will be hidden.
Example with prize column
{{Achievement table/intro}} {{Achievement|year=2009|place=3|event=QHLAN 12|mode=4on4|flag=se|team=sega gubbar|prize=}}
Year | Place | Event | Mode | With | Prize |
---|---|---|---|---|---|
2009 | 3rd | QHLAN 12 | 4on4 | sega gubbar | $500 |
Example with NO prize column
{{Achievement table/intro|prize=hide}} {{Achievement|year=2009|place=3|event=QHLAN 12|mode=4on4|flag=se|team=sega gubbar|prize=hide}}
Year | Place | Event | Mode | With |
---|---|---|---|---|
2009 | 3rd | QHLAN 12 | 4on4 | sega gubbar |