Difference between revisions of "Creditstable"

From Sega Retro

Line 5: Line 5:
 
| {{incvar|i}}{{#vardefine:currentLine2|{{striphtml|1={{#var:currentLine}}|removediv=yes}}}}{{clearvar|currentRole|currentNames}}
 
| {{incvar|i}}{{#vardefine:currentLine2|{{striphtml|1={{#var:currentLine}}|removediv=yes}}}}{{clearvar|currentRole|currentNames}}
 
{{#if:{{#pos:{{#var:currentLine2}}|:}}|{{#vardefine:currentRole|{{#explode:{{#var:currentLine2}}|:|0}}}}{{#vardefine:currentNames|{{#explode:{{#var:currentLine2}}|:|1}}}}
 
{{#if:{{#pos:{{#var:currentLine2}}|:}}|{{#vardefine:currentRole|{{#explode:{{#var:currentLine2}}|:|0}}}}{{#vardefine:currentNames|{{#explode:{{#var:currentLine2}}|:|1}}}}
|{{#vardefine:currentNames|{{#var:currentLine2}}}}}}{{StoreCreditsLine|role={{#var:currentRole}}|nameList={{#var:currentNames}}|game={{PAGENAME}}|console={{{console|}}}|date={{{date|}}}|source={{{source|}}}|pdf={{{pdf|}}}|pdfpage={{{pdfpage|}}}}}
+
|{{#vardefine:currentNames|{{#var:currentLine2}}}}}}{{
 +
#if:{{#pos:{{{console|}}}|,}}
 +
|{{StoreCreditsLine <!-- shared credits (e.g. SMS/GG) -->
 +
| role={{#var:currentRole}}
 +
| nameList={{#var:currentNames}}
 +
| game={{PAGENAME}}
 +
| console={{#explode:{{{console|}}}|,|0}}
 +
| date={{{date|}}}
 +
| source={{{source|}}}
 +
| pdf={{{pdf|}}}
 +
| pdfpage={{{pdfpage|}}}
 +
}}{{StoreCreditsLine
 +
| role={{#var:currentRole}}
 +
| nameList={{#var:currentNames}}
 +
| game={{PAGENAME}}
 +
| console={{#explode:{{{console|}}}|,|1}}
 +
| date={{{date|}}}
 +
| source={{{source|}}}
 +
| pdf={{{pdf|}}}
 +
| pdfpage={{{pdfpage|}}}
 +
}}
 +
|{{StoreCreditsLine <!-- single system credits -->
 +
| role={{#var:currentRole}}
 +
| nameList={{#var:currentNames}}
 +
| game={{PAGENAME}}
 +
| console={{{console|}}}
 +
| date={{{date|}}}
 +
| source={{{source|}}}
 +
| pdf={{{pdf|}}}
 +
| pdfpage={{{pdfpage|}}}
 +
}}}}
 
}}}}{{#if:{{{console|}}}||[[Category:Creditstable with no console field]]}}</includeonly><noinclude>
 
}}}}{{#if:{{{console|}}}||[[Category:Creditstable with no console field]]}}</includeonly><noinclude>
 
{{#cargo_declare:
 
{{#cargo_declare:

Revision as of 04:59, 3 April 2021

This template defines the table "credits". View table.

Usage

Example

{{creditstable|
{{creditsheader|Header}}
* '''Role 1:''' Name
* '''Role 2:''' Name
|source=In-game credits
|console=MD
|pdf=GamePro US 001.pdf
|pdfpage=10
}}
Header
  • Role 1: Name
  • Role 2: Name
Source:
In-game credits