|
|
| Line 1: |
Line 1: |
| <includeonly><div class="eraicon filtericon">{{#arraydefine:preset|2013,2020,2027,v3,red,2077,edge,pl}}{{#arraydefine:input|{{#forargs: | | <!-- Silent GameIcon --> |
| |key
| | {{#arraydefine:allowed|2013,2020,2027,v3,red,2077,edge,pl}} |
| |value
| | {{#arraydefine:__in| |
| |{{#switch:{{lc:{{#var:value}} }}
| | {{#forargs: |k |v | |
| |2013|cp2013|cyberpunk 2013|cyberpunk2013 = 2013,
| | {{#vardefine:__v|{{#invoke:String|trim|s={{#var:v}} }} }} |
| |2020|cp2020|cyberpunk 2020|cyberpunk2020 = 2020,
| | {{#if:{{#var:__v}}| |
| |2027|cybergen|cybergeneration|cg = 2027,
| | {{#switch:{{lc:{{#var:__v}}}} |
| |203X|3.0|cp3.0|cyberpunk v3.0|cyberpunk 3.0|cyberpunkv3.0|cyberpunkv3|v3|v3.0 = v3,
| | |2013|2020|2027|v3|red|2077|edge|pl= |
| |2045|red|cpred|cyberpunk red|cyberpunkred = red,
| | |#default= |
| |2077|cp2077|cyberpunk 2077|cyberpynk2077 = 2077,
| | }} |
| |edge|edgerunners = edge,
| | |}} |
| |pl|phantom liberty|phantom = pl,
| | }} |
| |#default = {{#vardefine:errorMsg
| | }} |
| |<span style="color:#FF0000">ERROR AT '''{{#var:value}}''' IN GameIcon TEMPLATE. INVALID INPUT.</span>[[Category:Pages with template errors]]
| |
| }}
| |
| }}
| |
| }}
| |
| }}{{#if:{{#var:errorMsg}}
| |
| |{{#var:errorMsg}}
| |
| |{{#arraydefine:{{#arrayintersect:output|preset|input}}}}
| |
| {{#vardefine:arrayLength|{{#arraysize:output}}}}
| |
| {{#vardefine:i|0}}{{#while:
| |
| |{{#ifexpr:{{#var:i}}<{{#var:arrayLength}}|true}}
| |
| |{{GIC|{{#arrayindex:output|{{#var:i}}}}}}
| |
| {{#vardefine:i|{{#expr:{{#var:i}}+ 1}}
| |
| }}
| |
| }} | |
| }}</div></includeonly><noinclude> | |
| {{Documentation}}
| |
| <!--Categories-->
| |
| [[Category:Icon templates]]
| |
| </noinclude>
| |