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

Revision as of 02:04, 3 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 Invalid False Show File Select menus properly
CPU Emulator Engine Interpreter=0, JIT x64=1, JIT ARM64=4, Cached Interpreter=5 CPUCore = 1 Go easy on CPU