Difference between revisions of "Template:Crosshair table"

From QWiki
m
m
Line 1: Line 1:
 
<includeonly><div class="table-responsive">
 
<includeonly><div class="table-responsive">
{|class="wikitable" style="width:{{{width|{{#if:{{{nopreview|}}}|567px|660px}}}}};text-align:center;margin-bottom:0px;"
+
{|class="wikitable" style="width:660px;text-align:center;margin-bottom:0px;"
 
!colspan=10|Crosshair settings
 
!colspan=10|Crosshair settings
 
|-
 
|-
 
!{{abbr|Crosshair|crosshair 1-6}}
 
!{{abbr|Crosshair|crosshair 1-6}}
 +
!{{abbr|Color|crosshaircolor}}
 
!{{abbr|Size|crosshairsize}}
 
!{{abbr|Size|crosshairsize}}
!{{abbr|Color|crosshaircolor}}
 
 
!{{abbr|Alpha|crosshairalpha}}
 
!{{abbr|Alpha|crosshairalpha}}
 
|-
 
|-
 
|<code>{{{crosshair|1}}}</code>
 
|<code>{{{crosshair|1}}}</code>
 +
|style="background-color: rgb({{{r}}},{{{g}}},{{{b}}});color:#fff}}"|{{{r}}} {{{g}}} {{{b}}}
 
|<code>{{{size|1}}}</code>
 
|<code>{{{size|1}}}</code>
|style="background-color: rgb({{{r}}},{{{g}}},{{{b}}});color:#fff}}"|{{{r}}} {{{g}}} {{{b}}}
 
 
|<code>{{{alpha|1}}}</code>
 
|<code>{{{alpha|1}}}</code>
 
|}
 
|}
{| class="mw-collapsible mw-collapsed wikitable" style="width:{{{width|{{#if:{{{nopreview|}}}|567px|660px}}}}};margin-top:0px;"
 
! align="center" style=font-size:85%;padding:5px | ''Click "Expand" for a code to copy and paste into your console.''
 
|-
 
| style=font-size:85%;padding:5px | <code>cl_crosshairalpha {{{alpha|255}}}; cl_crosshaircolor {{#switch:{{{color|1}}}|5w|5=5|#default={{{color|1}}}}}; {{#ifeq:{{{color}}}|5|cl_crosshaircolor_b {{{b}}}; cl_crosshaircolor_r {{{r}}}; cl_crosshaircolor_g {{{g}}};|}}cl_crosshairdot {{{dot|0}}}; cl_crosshairgap {{{gap|1}}}; cl_crosshairsize {{{size|5}}}; cl_crosshairstyle {{{style|4}}}; cl_crosshairusealpha {{#if:{{{alpha}}}|1|0}}; cl_crosshairthickness {{{thickness|0.5}}}; {{#ifeq:{{{outlinethickness|0}}}|0||cl_crosshair_outlinethickness {{{outlinethickness|0}}};}} cl_crosshair_drawoutline {{#switch:{{{outlinethickness|0}}}|0=0|#default=1}};</code>
 
|}{{#if:{{{nocat|}}}||[[Category:Players with crosshair info]]{{#if:{{{nopreview|}}}|[[Category:Players with no crosshair preview]]}}}}
 
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>
 
{{Documentation}}[[Category:Table templates]] [[Category:Hardware Templates]][[Category:Templates]]</noinclude>
 
{{Documentation}}[[Category:Table templates]] [[Category:Hardware Templates]][[Category:Templates]]</noinclude>

Revision as of 11:23, 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