Difference between revisions of "Creditstable"
From Sega Retro
Line 1: | Line 1: | ||
<includeonly><div style="font-size: 90%">{{{1|}}}</div>{{#if: {{{source|}}} | | <includeonly><div style="font-size: 90%">{{{1|}}}</div>{{#if: {{{source|}}} | | ||
− | <dt class="creditsource">''Source'':</dt> <dd>''{{{source|}}}''{{#if: {{{pdf|}}} |{{fileref|{{{pdf|}}}|page={{{pdfpage|}}}}}| [[Category:Credits without | + | <dt class="creditsource">''Source'':</dt> <dd>''{{{source|}}}''{{#if:{{{pdf|}}}|{{fileref|{{{pdf|}}}|page={{{pdfpage|}}}}}}}{{#if:{{{file|}}}|{{fileref|{{{file|}}}}}}}{{#if:{{{ref|}}}|{{ref|1={{{ref|}}}}}}} | [[Category:Credits without source]] }}</dd>{{#if:{{{pdf|}}}{{{file|}}}{{{ref|}}}||[[Category:Credits without reference]]}} |
{{#vardefine:allLines|{{#replace:{{#replace:{{{1|}}}|'''}}|**|*}}}}{{#vardefine:i|1}}{{#iferror:{{#var:allLines}}|{{#var:allLines}}| | {{#vardefine:allLines|{{#replace:{{#replace:{{{1|}}}|'''}}|**|*}}}}{{#vardefine:i|1}}{{#iferror:{{#var:allLines}}|{{#var:allLines}}| | ||
{{#while:|{{#vardefine:currentLine|{{#explode:{{#var:allLines}}|*|{{#var:i}}}}}}{{#var:currentLine}} | {{#while:|{{#vardefine:currentLine|{{#explode:{{#var:allLines}}|*|{{#var:i}}}}}}{{#var:currentLine}} | ||
| {{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}}}}}} | + | |{{#vardefine:currentNames|{{#var:currentLine2}}}}}}{{StoreCreditsLine |
− | |||
− | |||
| role={{#var:currentRole}} | | role={{#var:currentRole}} | ||
| nameList={{#var:currentNames}} | | nameList={{#var:currentNames}} | ||
Line 14: | Line 12: | ||
| date={{{date|}}} | | date={{{date|}}} | ||
| source={{{source|}}} | | source={{{source|}}} | ||
− | | pdf={{{pdf|}}} | + | | pdf={{first|1={{{pdf|}}}|2={{{file|}}}}} |
| pdfpage={{{pdfpage|}}} | | pdfpage={{{pdfpage|}}} | ||
− | }}{{StoreCreditsLine | + | }}{{#if:{{#pos:{{{console|}}}|,}} |
+ | |{{StoreCreditsLine <!-- second console (e.g. SMS/GG) --> | ||
| role={{#var:currentRole}} | | role={{#var:currentRole}} | ||
| nameList={{#var:currentNames}} | | nameList={{#var:currentNames}} | ||
Line 23: | Line 22: | ||
| date={{{date|}}} | | date={{{date|}}} | ||
| source={{{source|}}} | | source={{{source|}}} | ||
− | | pdf={{ | + | | pdf={{first|1={{{pdf|}}}|2={{{file|}}}}} |
− | | | ||
− | |||
− | |||
− | | | ||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
| pdfpage={{{pdfpage|}}} | | pdfpage={{{pdfpage|}}} | ||
}}}} | }}}} |
Revision as of 21:43, 1 June 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