Template:Config required: Difference between revisions

From Dolphin Emulator Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>{{#vardefine:stderr|background-color:#fee; color:#900;"{{!}}{{{5|}}}[[Category:Config template misformatted settings]]}}{{Hover|{{{4|}}} ({{#ifeq:{{{3|}}}|boolean|On, Off|{{#regex:{{{6|}}}|/=.*?(,{{!}}$)/|$1}}}})|'''{{{1|}}}'''{{#if:{{#var:isdoc}}||[[Category:{{{1|}}} (Config Required)]]}}}}{{!}}style="{{#switch:{{{3|}}}|boolean={{#switch:{{{5|}}}|On="{{!}}On|Off="{{!}}Off|{{#var:stderr}}}}|decimal={{#ifeq:{{{5|}}}|Unlimited|"{{!}}Unlimited|{{#iferror:{{#ifexpr:{{#regex:{{{6|}}}|/(\d+?)-(\d+?)%.*/|$1<={{#explode:{{{5|}}}|%|0}} and {{#explode:{{{5|}}}|%|0}}<=$2}}|"{{!}}{{{5|}}}|{{#var:stderr}}}}|{{#var:stderr}}}}}}|string={{#if:{{#regex:{{{6|}}}|/^(.*?, {{!}}.*?)(({{#regexquote:{{{5|}}}}})=.*?{{!}})(, .*{{!}})$/|$3}}|"{{!}}{{{5|}}}|{{#var:stderr}}}}}}{{!!}}{{#if:{{{2|}}}|<code>{{{2|}}} = {{#switch:{{{3|}}}|boolean={{#switch:{{{5|}}}|On=True|Off=False|}}|decimal={{#ifeq:{{{5|}}}|Unlimited|0|{{#iferror:{{#expr:{{#explode:{{{5|}}}|%|0}}/100}}}}}}|string={{#regex:{{{6|}}}|/^(.*?, {{!}}.*?)({{#regexquote:{{{5|}}}}}=(.*?){{!}})(, .*{{!}})$/|$3}}}}</code>}}{{!!}}</includeonly><noinclude>{{documentation}}[[Category:Experimental templates]]<noinclude>
<includeonly>{{#vardefine:stderr|background-color:#fee; color:#900;"{{!}}{{{5|}}}[[Category:Config template misformatted settings]]}}{{Hover|{{{4|}}} ({{#ifeq:{{{3|}}}|boolean|On, Off|{{#regex:{{{6|}}}|/=.*?(,{{!}}$)/|$1}}}})|'''{{{1|}}}'''{{#if:{{#var:isdoc}}||[[Category:{{{1|}}} (Config Required)]]}}}}{{!}}style="{{#switch:{{{3|}}}|boolean={{#switch:{{{5|}}}|On="{{!}}On|Off="{{!}}Off|{{#var:stderr}}}}|decimal={{#ifeq:{{{5|}}}|Unlimited|"{{!}}Unlimited|{{#if:{{#iferror:{{#ifexpr:{{#regex:{{{6|}}}|/(\d+?)-(\d+?)%.*/|$1<={{#explode:{{{5|}}}|%|0}} and {{#explode:{{{5|}}}|%|0}}<=$2}}|true}}{{#regex:{{{5|}}}|/(\d)+%.*/|}}|"{{!}}{{{5|}}}|{{#var:stderr}}}}|{{#var:stderr}}}}}}|string={{#if:{{#regex:{{{6|}}}|/^(.*?, {{!}}.*?)(({{#regexquote:{{{5|}}}}})=.*?{{!}})(, .*{{!}})$/|$3}}|"{{!}}{{{5|}}}|{{#var:stderr}}}}}}{{!!}}{{#if:{{{2|}}}|<code>{{{2|}}} = {{#switch:{{{3|}}}|boolean={{#switch:{{{5|}}}|On=True|Off=False|}}|decimal={{#ifeq:{{{5|}}}|Unlimited|0|{{#iferror:{{#expr:{{#explode:{{{5|}}}|%|0}}/100}}}}}}|string={{#regex:{{{6|}}}|/^(.*?, {{!}}.*?)({{#regexquote:{{{5|}}}}}=(.*?){{!}})(, .*{{!}})$/|$3}}}}</code>}}{{!!}}</includeonly><noinclude>{{documentation}}[[Category:Experimental templates]]<noinclude>

Revision as of 02:36, 14 February 2022

[edit] [purge] Template documentation

Helper template used by Template:Config/sandbox to expand set of cells into table.

Example

{|class="wikitable" style="font-size:90%; text-align:left;" cellspacing="0" cellpadding="3"
!Config!!Setting!![[GameINI]]!!Notes
|-
|{{Config required|Enable Dual Core|CPUThread|boolean|Good|Off}}Show File Select menus properly
|-
|{{Config required|CPU Emulator Engine|CPUCore|string|Saint|JIT x64|{{#vardefineecho:=|Interpreter=0, JIT x64=1, JIT ARM64=4, Cached Interpreter=5}}}}Go easy on CPU
|}

Produces

Config Setting GameINI Notes
Enable Dual Core Off CPUThread = False Show File Select menus properly
CPU Emulator Engine JIT x64 CPUCore = 1 Go easy on CPU