Difference between revisions of "Template:Crosshair table"

From QWiki
m
m
Line 18: Line 18:
 
   | 7 = [[File:Crosshair{{{crosshair|}}}.png]]
 
   | 7 = [[File:Crosshair{{{crosshair|}}}.png]]
 
   | image = <div style="text-align:center;padding-top:5px;height:30px;width:96px;background-color:white;"><code>image</code></div>}}
 
   | image = <div style="text-align:center;padding-top:5px;height:30px;width:96px;background-color:white;"><code>image</code></div>}}
|style="background-color: rgb({{{r}}},{{{g}}},{{{b}}});color:#fff}}"|<code>{{{r}}} {{{g}}} {{{b}}}</code>
+
|{{#switch:{{{crosshair|}}}
 +
  | 0
 +
  | 1
 +
  | 2
 +
  | 3
 +
  | 4
 +
  | 5
 +
  | 6
 +
  | 7 = <div style="background-color: rgb({{{r}}},{{{g}}},{{{b}}});color:#fff}};"><code>{{{r}}} {{{g}}} {{{b}}}</code></div>
 +
  | image = <div style="text-align:center;padding-top:5px;height:30px;width:96px;background-color:white;"><code>image</code></div>}}
 
|<code>{{{size|1}}}</code>
 
|<code>{{{size|1}}}</code>
 
|<code>{{{alpha|1}}}</code>
 
|<code>{{{alpha|1}}}</code>

Revision as of 19:45, 26 March 2017

Documentation (view - edit)

  • crosshair must be set to 1-7, or image.
  • color is not needed if crosshair=image
{{crosshair table
|crosshair=
|color|r= |g= |b=
|size=
|alpha=
}}

Adapted from Liquipedia