Template:Won

From Iwe

(Difference between revisions)
Line 1: Line 1:
-
{| class="wikitable"
+
<noinclude>{| class="wikitable"
|-
|-
-
|style="background: {{
+
|</noinclude>style="background: {{
-
#switch: {{lc:{{{place|Won}}}}}
+
#switch: {{{place|Won}}}
-
   |won = {{{color|<nowiki>#</nowiki>99FF99}}}
+
   |Won = {{{color|<nowiki>#</nowiki>99FF99}}}
-
   |1|1st|gold = {{{color|gold}}}
+
   |1|1st|gold|Gold = {{{color|Gold}}}
-
   |2|2nd|silver = {{{color|silver}}}
+
   |2|2nd|silver|Silver = {{{color|Silver}}}
-
   |3|3rd|bronze = {{{color|<nowiki>#</nowiki>D9A821}}}
+
   |3|3rd|bronze|Bronze = {{{color|<nowiki>#</nowiki>D9A821}}}
-
   |#default = {{{color|<nowiki>#</nowiki>F8EABA}}}
+
   |#default = {{{color|<nowiki>#</nowiki>f8eaba}}}
}}; color: {{{text|black}}}; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="yes table-yes2"|{{{1|{{{place|Won}}}}}}<noinclude>
}}; color: {{{text|black}}}; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="yes table-yes2"|{{{1|{{{place|Won}}}}}}<noinclude>
|}
|}
-
{{Documentation|Template:Table cell templates/doc}}
+
</noinclude>
-
<templatedata>{
+
-
"description": "A table cell template to show the color-coded place in a competition.",
+
-
"params": {
+
-
  "place": {
+
-
    "label": "Place",
+
-
    "description": "values like ‘1’, ‘2’, ‘3’ or ‘gold’, ‘silver’, ‘bronze’ automatically change the background color accordingly and the text displayed, too, unless an anonymous first parameter is specified, other values also show up, but with a default color",
+
-
    "type": "string",
+
-
    "default": "Won",
+
-
    "required": false
+
-
  }
+
-
}}
+

Revision as of 13:43, 9 September 2013

style="background: {{
  1. switch: Won
Won = #99FF99 1st|gold|Gold = Gold 2nd|silver|Silver = Silver 3rd|bronze|Bronze = #D9A821 #default = #f8eaba

}}; color: black; vertical-align: middle; text-align: center; " class="yes table-yes2"|Won

Personal tools