Difference between revisions of "Template:Infobox game/row/engine"

From PCGamingWiki, the wiki about fixing PC games
m (added newline between engine build and ref)
(removed Semantic MediaWiki property tagging (migrated to Cargo))
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<tr>
 
<tr>
 
<td class="template-infobox-type">{{{2|}}}</td>
 
<td class="template-infobox-type">{{{2|}}}</td>
<td class="template-infobox-info">[[Uses engine::Engine:{{{1|}}}|{{#formredlink:target=Engine:{{urlencode:{{{1|}}}|WIKI}}|form=Engine page|link text={{{name|{{{1|}}}}}}|existing page link text={{{name|{{{1|}}}}}}}}]]{{#if:{{{build|}}}|{{#vardefine:notes|true}}{{#tag:ref|[[Engine:{{{1|}}}|{{{1|}}}]] engine build: {{{build|}}}[[{{{1|}}} engine build::{{{build|}}}| ]]{{#if:{{{ref|}}}|<br>{{{ref|}}}}}|group=Note}}|{{{ref|}}}}}{{#if: {{{1|}}} | | {{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (infobox game)‎]]}}}}</td>
+
<td class="template-infobox-info">[[Engine:{{{1|}}}|{{#formredlink:target=Engine:{{urlencode:{{{1|}}}|WIKI}}|form=Engine page|link text={{{name|{{{1|}}}}}}|existing page link text={{{name|{{{1|}}}}}}}}]]{{#if:{{{build|}}}|{{#vardefine:notes|true}}{{#tag:ref|[[Engine:{{{1|}}}|{{{1|}}}]] engine build: {{{build|}}}{{{ref|}}}|group=Note}}|{{{ref|}}}}}{{#if: {{{1|}}} | | {{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (infobox game)‎]]}}}}</td>
 
</tr><!-- hidden properties
 
</tr><!-- hidden properties
 
-->{{#switch: {{lc:{{{1|}}}}}
 
-->{{#switch: {{lc:{{{1|}}}}}
 
| unity = {{#vardefine:Unity|true}}
 
| unity = {{#vardefine:Unity|true}}
| scummvm = [[Wrapper::ScummVM| ]]{{#vardefine:ScummVM|true}}
+
| scummvm = {{#vardefine:ScummVM|true}}
}}{{#vardefine:engines|{{#if:{{#var:engines}}|{{#var:engines}},Engine:{{{1}}}|Engine:{{{1}}}}}}}
+
}}{{#arraymap:{{{1|}}}|{{!}}|€€€€€|{{#if:{{#var:current}}||{{#vardefine:engines|{{#if:{{#var:engines}}|{{#var:engines}},Engine:€€€€€|Engine:€€€€€}}}}{{#vardefine:current|true}}}}}}{{#vardefine:current|}}

Latest revision as of 07:16, 3 October 2021

[[Engine:|Engine:]]