Difference between revisions of "Template:Cell Port Engine"

From ScummVM :: Wiki
Jump to navigation Jump to search
m (Try to use the Map template to select the color)
m (Use just the first word as the color key)
Line 1: Line 1:
<includeonly>{{Cell|color=<!--{{#switch:{{#explode:{{{1}}}| }}|
<includeonly>{{Cell|
yes=green|
color={{Map|keys=yes#no#wip|values=green#red#gray|key={{#explode:{{{1}}}| }}}}|
no=red|
text={{#switch:{{#explode:{{{1}}}| }}|
wip=gray}}
-->{{Map|keys=yes#no#wip|values=green#red#gray|key={{{1}}}}}|text={{#switch:{{#explode:{{{1}}}| }}|
yes={{#ifeq:{{{1}}}|yes|Yes|{{#sub:{{{1}}}|{{#pos:{{{1}}}| }}|0}}}}|
yes={{#ifeq:{{{1}}}|yes|Yes|{{#sub:{{{1}}}|{{#pos:{{{1}}}| }}|0}}}}|
no={{#ifeq:{{{1}}}|no|No|{{#sub:{{{1}}}|{{#pos:{{{1}}}| }}|0}}}}|
no={{#ifeq:{{{1}}}|no|No|{{#sub:{{{1}}}|{{#pos:{{{1}}}| }}|0}}}}|

Revision as of 08:33, 8 April 2010

This template shows whether a given engine is supported in a port.

Usage

{{Cell Port Engine|status}}

Status can be:

  • yes
  • no
  • wip
  • everything else will be shown as is