Open main menu

Difference between revisions of "Template:Cell Port Engine"

Adapt the template to receive the status directly, instead of the port and engine names
m (Add a style for wip engines)
(Adapt the template to receive the status directly, instead of the port and engine names)
Line 1: Line 1:
<includeonly>{{Switch|
<includeonly>{{Switch|
switch={{ {{{port}}}|switch={{{engine}}}}}|
switch={{{1}}}|
yes={{Cell|color=green|text=Yes}}|
yes={{Cell|color=green|text=Yes}}|
no={{Cell|color=red|text=No}}|
no={{Cell|color=red|text=No}}|
wip={{Cell|color=gray|text=WIP}}|
wip={{Cell|color=gray|text=WIP}}|
default={{Cell|text={{ {{{port}}}|switch={{{engine}}}}}}}
default={{Cell|text={{{1}}}}}
}}</includeonly><noinclude>
}}</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>
960

edits