Difference between revisions of "Template:Crosshair table"

From QWiki
m
m
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><div class="table-responsive">
 
<includeonly><div class="table-responsive">
{|class="wikitable" style="width:300px;text-align:center;margin-bottom:0px;"
+
{|class="wikitable" style="width:300px;text-align:center;margin-bottom:0px;"  
 
!colspan=10|Crosshair settings
 
!colspan=10|Crosshair settings
 
|-
 
|-
!{{abbr|Crosshair|crosshair 1-7}}
+
!{{abbr|Crosshair|crosshair 1 to 7, or 'image'}}
 
!{{abbr|Color|crosshaircolor}}
 
!{{abbr|Color|crosshaircolor}}
 
!{{abbr|Size|crosshairsize}}
 
!{{abbr|Size|crosshairsize}}
 
!{{abbr|Alpha|crosshairalpha}}
 
!{{abbr|Alpha|crosshairalpha}}
|-
+
|-  
|style="height:30px;width:96px;padding:0px;margin:0px;background-color: rgb({{{r}}},{{{g}}},{{{b}}});"|{{#switch:{{{crosshair|4}}}
+
| style=padding:0px | {{#switch:{{{crosshair|6}}}
 
   | 0  
 
   | 0  
 
   | 1
 
   | 1
Line 16: Line 16:
 
   | 5
 
   | 5
 
   | 6
 
   | 6
   | 7 = [[File:Crosshair{{{crosshair|}}}.png]]
+
   | 7 = <div style="background-color: rgb({{{r|255}}},{{{g|255}}},{{{b|50}}});"> [[File:Crosshair{{{crosshair|6}}}.png]]</div>
   | image = <div style="background-color:white;"><code>image</code></div>}}
+
   | image = <div style="padding:0px;background-color:white;"><code>image</code></div>}}
|{{#switch:{{{crosshair|}}}
+
| {{#switch:{{{crosshair|6}}}
 
   | 0
 
   | 0
 
   | 1
 
   | 1
Line 26: Line 26:
 
   | 5
 
   | 5
 
   | 6
 
   | 6
   | 7 = <code>{{{r}}} {{{g}}} {{{b}}}</code>
+
   | 7 = <div style="padding:0px;text-align:center;width:96px;">{{{r}}} {{{g}}} {{{b}}}</div>
   | image = <div style="text-align:center;padding-top:5px;height:30px;width:96px;background-color:white;"><code>image</code></div>}}
+
   | image = <div style="padding:0px;text-align:center;width:96px;background-color:white;">image</div>}}
|<code>{{{size|1}}}</code>
+
|{{{size|1}}}
|<code>{{{alpha|1}}}</code>
+
|{{{alpha|1}}}
 
|}
 
|}
 
</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>

Latest revision as of 07:01, 29 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