Difference between revisions of "Template:Cell Port Engine"

From ScummVM :: Wiki
Jump to navigation Jump to search
(Fix the default option, use named arguments and document it)
(Undo revision 13479 (It seems ShowFeature is too unefficient))
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{Switch|
<includeonly>{{Cell|
switch={{ {{{1}}}|switch={{{2}}}}}|
color={{Map|keys=yes#no#wip|values=green#red#gray|key={{#explode:{{{1}}}| }}}}|
yes={{Cell|color=green|text=Yes}}|
text={{#switch:{{#explode:{{{1}}}| }}|
no={{Cell|color=red|text=No}}|
yes={{#ifeq:{{{1}}}|yes|Yes|{{#sub:{{{1}}}|{{#pos:{{{1}}}| }}|0}}}}|
default={{Cell|text={{ {{{1}}}|switch={{{2}}}}}}}
no={{#ifeq:{{{1}}}|no|No|{{#sub:{{{1}}}|{{#pos:{{{1}}}| }}|0}}}}|
}}</includeonly><noinclude>
wip={{#ifeq:{{{1}}}|wip|WIP|{{#sub:{{{1}}}|{{#pos:{{{1}}}| }}|0}}}}|
#default={{{1}}}}}}}</includeonly><noinclude>
This template shows whether a given engine is supported in a port.
This template shows whether a given engine is supported in a port.
=Usage=
=Usage=
<nowiki>{{</nowiki>Cell Port Engine|port=''port template name''|engine=''engine name''<nowiki>}}</nowiki>
<nowiki>{{</nowiki>Cell Port Engine|''status''<nowiki>}}</nowiki>
Status can be:
* '''yes'''
* '''no'''
* '''wip'''
* everything else will be shown as is
[[Category:Information templates]]</noinclude>
[[Category:Information templates]]</noinclude>

Latest revision as of 23:42, 12 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