Difference between revisions of "Template:Crosshair table"

From QWiki
m
m
Line 7: Line 7:
 
!{{abbr|Color|crosshaircolor}}
 
!{{abbr|Color|crosshaircolor}}
 
!{{abbr|Alpha|crosshairalpha}}
 
!{{abbr|Alpha|crosshairalpha}}
{{#if:{{{nopreview|1}}}||
 
  ! colspan=2 {{!}} {{abbr|Preview|Taken on a native 1280x720 resolution. Note that crosshair proportions vary depending on the user's resolution setting.}} {{#ifexist:File:Crosshair {{{name|{{#var:id}}}}}.png||<span class="plainlinks">''<sup>[{{fullurl:lpcommons:Special:Upload|wpDestFile=Crosshair%20{{urlencode:{{{name|{{#var:id}}}}}}}.png&wpUploadDescription=%5B%5BCategory%3ACrosshairs%5D%5D}} [upload&#93;]</sup>''</span>}}}}
 
|- style=height:32px
 
|{{#switch:{{{crosshair|4}}}
 
  | 0 = <code>{{abbr|0|''Global Offensive'' dynamic}}</code>
 
  | 1 = <code>{{abbr|1|''Global Offensive'' static}}</code>
 
  | 2 = <code>{{abbr|2|Classic dynamic}}</code>
 
  | 3 = <code>{{abbr|3|Classic fully dynamic}}</code>
 
  | 4 = <code>{{abbr|4|Classic static}}</code>
 
  | 5 = <code>{{abbr|5|Classic 1.6-style dynamic}}</code>
 
  | 6 = <code>{{abbr|6|Classic semi-dynamic}}</code>}}
 
|<code>{{{size|5}}}</code>
 
 
|style="background-color: rgb({{{r}}},{{{g}}},{{{b}}});color:#fff}}"|{{{r}}} {{{g}}} {{{b}}}
 
|style="background-color: rgb({{{r}}},{{{g}}},{{{b}}});color:#fff}}"|{{{r}}} {{{g}}} {{{b}}}
|<code>{{{alpha|255}}}</code>
+
|<code>{{{alpha|1}}}</code>
{{#if:{{{nopreview|}}}||
 
  {{!}}[[File:Crosshair {{{name|{{#var:id}}}}}.png]]
 
  {{!}} style="background-color:#222" {{!}} [[File:Crosshair {{{name|{{#var:id}}}}}.png]]}}
 
 
|}
 
|}
 
{| class="mw-collapsible mw-collapsed wikitable" style="width:{{{width|{{#if:{{{nopreview|}}}|567px|660px}}}}};margin-top:0px;"
 
{| class="mw-collapsible mw-collapsed wikitable" style="width:{{{width|{{#if:{{{nopreview|}}}|567px|660px}}}}};margin-top:0px;"

Revision as of 06:47, 20 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