Difference between revisions of "StoreCreditsLine"
From Sega Retro
m (Text replacement - "Category:Sega Retro templates" to "Category:Templates") |
|||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{#vardefine:j|1}} |
{{#while: | {{#while: | ||
− | | {{# | + | | {{#vardefine:currentName|{{#explode:{{{nameList|}}}|[<!-- -->[|{{#var:j}}}}}}{{#var:currentName}} |
− | + | | {{incvar|j}} | |
− | {{#ifeq:{{# | + | {{#vardefine:currentName|{{#explode:{{#var:currentName}}|]<!-- -->]|0}}}} |
− | {{#cargo_store:_table=credits|role={{{role}}}|name={{#var:currentName}}|game={{#titleparts:{{{game}}}}}|console={{{console|}}}|date={{{date|}}}|pdf={{{pdf|}}}|pdfpage={{{pdfpage|}}}}} | + | {{#if:{{#pos:{{#var:currentName}}|{{!}}}}| |
− | + | {{#vardefine:splitName|{{#explode:{{#var:currentName}}|{{!}}|1}}}} | |
− | }} | + | {{#vardefine:splitName0|{{#explode:{{#var:currentName}}|{{!}}|0}}}} |
− | + | {{#ifeq:{{#var:splitName}}|{{#explode:{{#var:splitName0}}|(|0}}|{{#vardefine:splitName|{{#var:splitName0}}}}}} | |
− | + | {{#if:{{#var:splitName}}|{{#vardefine:currentName|{{#var:splitName}}}}}} | |
+ | }} | ||
+ | {{#if:{{{track|}}} | ||
+ | |{{#cargo_store:_table=trackcredits|role={{FormatSQL|{{{role|}}}}}|name={{FormatSQL|{{#var:currentName}}}}|game={{FormatSQL|{{#titleparts:{{{game|}}}}}}}|console={{{console|}}}|date={{{date|}}}|source={{{source|}}}|pdf={{{pdf|}}}|pdfpage={{{pdfpage|}}}|track={{FormatSQL|{{{track|}}}}}}} | ||
+ | |{{#cargo_store:_table=credits|role={{FormatSQL|{{{role|}}}}}|name={{FormatSQL|{{#var:currentName}}}}|game={{FormatSQL|{{#titleparts:{{{game|}}}}}}}|console={{{console|}}}|date={{{date|}}}|source={{{source|}}}|pdf={{{pdf|}}}|pdfpage={{{pdfpage|}}}}} | ||
+ | }} | ||
+ | }}</includeonly><noinclude> | ||
+ | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 17:04, 1 January 2022