Template:Config required: Difference between revisions
Jump to navigation
Jump to search
m (Great discovery about the #regexquote) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<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|}}}|/^(.*?, {{!}}.*?)(({{#regexquote:{{{5|}}}}})=.*?{{!}})(, .*{{!}})$/|$3}}|"{{!}}{{{5|}}}|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|}}}|/^(.*?, {{!}}.*?)({{#regexquote:{{{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|}}}|/^(.*?, {{!}}.*?)(({{#regexquote:{{{5|}}}}})=.*?{{!}})(, .*{{!}})$/s|$3}}|"{{!}}{{{5|}}}|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|}}}|/^(.*?, {{!}}.*?)({{#regexquote:{{{5|}}}}}=(.*?){{!}})(, .*{{!}})$/s|$3}}}}</code>}}{{!!}}</includeonly><noinclude>{{documentation}}[[Category:Experimental templates]]<noinclude> |
Revision as of 02:08, 9 February 2022
[edit] [ ] 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 |
The above documentation is transcluded from Template:Config required/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |