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>[[Category:{{{1|}}} (Config Required)]]{{Hover|{{{4|}}} ({{#ifeq:{{{3|}}}|boolean|On, Off|{{#regex:{{{6|}}}|/=.*?(,{{!}}$)/|$1}}}})|'''{{{1|}}}'''}}{{!}}style="{{#switch:{{{3|}}}|boolean={{#switch:{{{5|}}}|On="{{!}}On|Off="{{!}}Off|background-color:#fee; color:#900;"{{!}}{{{5|}}}[[Category:Config template misformatted settings]]}}|decimal="{{!}}{{{6|}}}|string={{#if:{{#regex:{{{6|}}}|/^(.*?, {{!}}.*?)(({{{5|}}})=.*?{{!}})(, .*{{!}})$/|$3}}|"|background-color:#fee; color:#900;"}}{{!}}{{{5|}}}[[Category:Config template misformatted settings]]}}{{!!}}{{#if:{{{2|}}}|<code>{{{2|}}} = {{#switch:{{{3|}}}|boolean={{#switch:{{{5|}}}|On=True|Off=False|}}|decimal={{{6|}}}|string={{#regex:{{{6|}}}|/^(.*?, {{!}}.*?)({{{5|}}}=(.*?){{!}})(, .*{{!}})$/|$3}}}}</code>}}{{!!}}</includeonly><noinclude>{{documentation}}[[Category:Experimental templates]]<noinclude>
<includeonly>{{Hover|{{{4|}}} ({{#ifeq:{{{3|}}}|boolean|On, Off|{{#regex:{{{6|}}}|/=.*?(,{{!}}$)/|$1}}}})|'''{{{1|}}}'''}}[[Category:{{{1|}}} (Config Required)]]{{!}}style="{{#switch:{{{3|}}}|boolean={{#switch:{{{5|}}}|On="{{!}}On|Off="{{!}}Off|background-color:#fee; color:#900;"{{!}}{{{5|}}}[[Category:Config template misformatted settings]]}}|decimal="{{!}}{{{6|}}}|string={{#if:{{#regex:{{{6|}}}|/^(.*?, {{!}}.*?)(({{{5|}}})=.*?{{!}})(, .*{{!}})$/|$3}}|"|background-color:#fee; color:#900;"}}{{!}}{{{5|}}}[[Category:Config template misformatted settings]]}}{{!!}}{{#if:{{{2|}}}|<code>{{{2|}}} = {{#switch:{{{3|}}}|boolean={{#switch:{{{5|}}}|On=True|Off=False|}}|decimal={{{6|}}}|string={{#regex:{{{6|}}}|/^(.*?, {{!}}.*?)({{{5|}}}=(.*?){{!}})(, .*{{!}})$/|$3}}}}</code>}}{{!!}}</includeonly><noinclude>{{documentation}}[[Category:Experimental templates]]<noinclude>

Revision as of 04:40, 8 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|style=""|Off||CPUThread = False||Show File Select menus properly
CPU Emulator Engine|style=""|JIT x64||CPUCore = 1||Go easy on CPU