Difference between revisions of "StoreCreditsLine"
From Sega Retro
Line 1: | Line 1: | ||
<div style="display:none;">{{#vardefine:currentName|NULL}}{{#vardefine:j|0}} | <div style="display:none;">{{#vardefine:currentName|NULL}}{{#vardefine:j|0}} | ||
{{#while: | {{#while: | ||
− | | {{#ifexpr:{{#len:{{#var:currentName}}}} > | + | | {{#ifexpr:{{#len:{{#var:currentName}}}} > 1|true|}} |
| {{#vardefine:currentName|{{#explode:{{{nameList}}}|, |{{#var:j}}}}}}{{incvar|j}} | | {{#vardefine:currentName|{{#explode:{{{nameList}}}|, |{{#var:j}}}}}}{{incvar|j}} | ||
+ | {{#sub:{{#var:currentName}}|0|2}} | ||
{{#ifeq:{{#sub:{{#var:currentName}}|0|2}}|[[| | {{#ifeq:{{#sub:{{#var:currentName}}|0|2}}|[[| | ||
{{#cargo_store:_table=credits|role={{{role}}}|name={{#var:currentName}}|game={{#titleparts:{{{game}}}}}|console={{{console|}}}|date={{{date|}}}}} | {{#cargo_store:_table=credits|role={{{role}}}|name={{#var:currentName}}|game={{#titleparts:{{{game}}}}}|console={{{console|}}}|date={{{date|}}}}} | ||
|}} | |}} | ||
}}</div><noinclude>[[Category:Sega Retro templates]]</noinclude> | }}</div><noinclude>[[Category:Sega Retro templates]]</noinclude> |