Difference between revisions of "Creditstable"

From Sega Retro

(commas aren't important any more)
Line 10: Line 10:
 
  {{#if:{{#pos:{{#var:currentLine}}|<}}|{{#vardefine:currentLine2|{{striphtml|1={{#var:currentLine}}|removediv=yes}}}}|{{#vardefine:currentLine2|{{#var:currentLine}}}}}}
 
  {{#if:{{#pos:{{#var:currentLine}}|<}}|{{#vardefine:currentLine2|{{striphtml|1={{#var:currentLine}}|removediv=yes}}}}|{{#vardefine:currentLine2|{{#var:currentLine}}}}}}
 
  {{#vardefine:currentRole|{{#explode:{{#var:currentLine2}}|:|0}}}}{{#vardefine:currentNames|{{#explode:{{#var:currentLine2}}|:|1}}}}
 
  {{#vardefine:currentRole|{{#explode:{{#var:currentLine2}}|:|0}}}}{{#vardefine:currentNames|{{#explode:{{#var:currentLine2}}|:|1}}}}
{{#vardefine:currentNames|{{#replace:{{#var:currentNames}}| |&#32;}}}}{{
 
#vardefine:currentNames|{{#replace:{{#var:currentNames}}|&#32;&&#32;|,&#32;}}}}{{
 
#vardefine:currentNames|{{#replace:{{#var:currentNames}}|&#32;and&#32;|,&#32;}}}}{{
 
#vardefine:currentNames|{{#replace:{{#var:currentNames}}|/|,&#32;}}}}{{
 
#vardefine:currentNames|{{#replace:{{#var:currentNames}}|:|,&#32;}}}}{{
 
#vardefine:currentNames|{{#replace:{{#var:currentNames}}|(|,&#32;(}}}}{{
 
#vardefine:currentNames|{{#replace:{{#var:currentNames}}|&#32;|<nowiki> </nowiki>}}}}
 
 
{{#ifexpr:{{#len:{{#var:currentNames}}}} > 0|
 
{{#ifexpr:{{#len:{{#var:currentNames}}}} > 0|
 
{{StoreCreditsLine|role={{#var:currentRole}}|nameList={{#var:currentNames}}|game={{PAGENAME}}|console={{{console|}}}|date={{{date|}}}|pdf={{{pdf|}}}|pdfpage={{{pdfpage|}}}}}
 
{{StoreCreditsLine|role={{#var:currentRole}}|nameList={{#var:currentNames}}|game={{PAGENAME}}|console={{{console|}}}|date={{{date|}}}|pdf={{{pdf|}}}|pdfpage={{{pdfpage|}}}}}

Revision as of 15:57, 9 November 2018

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