Template:Mouse settings: Difference between revisions

Template page
(Created page with "<!--Put calculations at the start for code readability--><!-- -->{{#vardefine:accelparsed| {{#switch:{{{acceleration|}}} |0=0|Off=0|off=0|OFF=0|None=0|none=0|NONE=0|No=0|no=0|NO=0 |Windows=W|windows=W|WINDOWS=W |#default={{{acceleration|}}} }} }}<!-- -->{{#vardefine:winscalar| {{#switch:{{#var:accelparsed|}} |W={{#expr:(({{{windows|}}}-1)/5)}} |#default= {{#switch:{{{windows|...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 76: Line 76:


--><table class="wikitable" style="text-align:center; margin:0;" data-toggle-area-content="1">
--><table class="wikitable" style="text-align:center; margin:0;" data-toggle-area-content="1">
<tr><th colspan="13"><span  style="vertical-align:middle">{{#ifexist:Mouse Settings|[[Mouse Settings]]|Mouse Settings}} {{#ifeq:{{{ref|}}}|player|[[Category:Player Submitted Settings]] <sup><i><b><small><small><abbr title="{{#var:id|{{PAGENAME}}}} has submitted their own settings to Liquipedia">player submitted</abbr></small></small></b></i></sup>|{{{ref|}}} }}<small> ([[List of player mouse settings|list of]])</small></span>
<tr><th colspan="13"><span  style="vertical-align:middle">{{#ifexist:Mouse Settings|[[Mouse Settings]]|Mouse Settings}} {{#ifeq:{{{ref|}}}|player|[[Category:Player Submitted Settings]] <sup><i><b><small><small><abbr title="{{#var:id|{{PAGENAME}}}} has submitted their own settings to Liquipedia">player submitted</abbr></small></small></b></i></sup>|{{{ref|}}} }}</span>
<div style="float:right"><span class="toggle-area-button btn btn-theme-light" style="padding: 3px 12px" data-toggle-area-btn="2">Advanced</span></div></th></tr><!--
<div style="float:right"><span class="toggle-area-button btn btn-theme-light" style="padding: 3px 12px" data-toggle-area-btn="2">Advanced</span></div></th></tr><!--


Line 120: Line 120:


--><table class="wikitable" style="text-align:center; margin:0;" data-toggle-area-content="2">
--><table class="wikitable" style="text-align:center; margin:0;" data-toggle-area-content="2">
<tr><th colspan="13"><span  style="vertical-align:middle">{{#ifexist:Mouse Settings|[[Mouse Settings]]|Mouse Settings}} {{#ifeq:{{{ref|}}}|player|[[category:Player Submitted Settings]] <sup><i><b><small><small><abbr title="{{#var:id|{{PAGENAME}}}} has submitted their own settings to Liquipedia">Player Submitted</abbr></small></small></b></i></sup>|{{{ref|}}} }}<small> ([[List of player mouse settings|list of]]){{#if:{{#var:mpi}}|&nbsp;([https://jscalc.io/calc/RTCJTLMts42GYfWf#%7B%222%22:%220.022%22,%223%22:{{{sensitivity}}},%224%22:{{#expr:({{{dpi}}}*{{#var:rfactor|}})}}{{#ifeq:{{{yaw}}}|0.022||,%228%22:true,%229%22:{{{yaw|}}}}}%7D calculate])}}</small></span>
<tr><th colspan="13"><span  style="vertical-align:middle">{{#ifexist:Mouse Settings|[[Mouse Settings]]|Mouse Settings}} {{#ifeq:{{{ref|}}}|player|[[category:Player Submitted Settings]] <sup><i><b><small><small><abbr title="{{#var:id|{{PAGENAME}}}} has submitted their own settings to Liquipedia">Player Submitted</abbr></small></small></b></i></sup>|{{{ref|}}} }}</span>
<div style="float: right;"><span class="toggle-area-button btn btn-theme-light" style="padding: 3px 12px" data-toggle-area-btn="1">Simple</span></div></th></tr><!--
<div style="float: right;"><span class="toggle-area-button btn btn-theme-light" style="padding: 3px 12px" data-toggle-area-btn="1">Simple</span></div></th></tr><!--


Line 182: Line 182:
SMW
SMW


-->{{#ifeq:{{NAMESPACE}}||{{#set:
--><noinclude>{{#ifeq:{{NAMESPACE}}||{{#set:
|has mouse settings=true
|has mouse settings=true
|has mouse={{{mouse|}}}
|has mouse={{{mouse|}}}
Line 213: Line 213:
|has mouse reference={{#if:{{{ref|}}}|true}}
|has mouse reference={{#if:{{{ref|}}}|true}}
|has sorted id={{lc:{{#var:id|{{PAGENAME}}}}}}
|has sorted id={{lc:{{#var:id|{{PAGENAME}}}}}}
}}}}<!--
}}}}</noinclude><!--


-->{{#if:{{{pad-brand|}}} {{{pad-model|}}}|{{#vardefine:pdc|1}}}}<!--
-->{{#if:{{{pad-brand|}}} {{{pad-model|}}}|{{#vardefine:pdc|1}}}}<!--


-->}}<noinclude>{{documentation}} [[Category:Hardware Templates]][[Category:Templates]]</noinclude>
-->}}<noinclude>{{documentation}} [[Category:Hardware Templates]][[Category:Templates]]</noinclude>

Latest revision as of 22:10, 4 September 2022