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|}}}}}}}{{#if:{{{file|}}}|{{fileref|{{{file|}}}}}}}{{#if:{{{ref|}}}|{{ref|1={{{ref|}}}}}}} | [[Category:Credits without source]] }}</dd>{{#if:{{{pdf|}}}{{{file|}}}{{{ref|}}}||[[Category:Credits without reference]]}} | <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]]}} | ||
− | {{ | + | {{rep|{{{1|}}}|'''||**|*|var=allLines}}{{#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}}|:}}|{{ | + | {{#if:{{#pos:{{#var:currentLine2}}|:}}|{{let|currentRole={{#explode:{{#var:currentLine2}}|:|0}}|currentNames={{#explode:{{#var:currentLine2}}|:|1}}}} |
|{{#vardefine:currentNames|{{#var:currentLine2}}}}}}{{StoreCreditsLine | |{{#vardefine:currentNames|{{#var:currentLine2}}}}}}{{StoreCreditsLine | ||
| role={{#var:currentRole}} | | role={{#var:currentRole}} |
Revision as of 20:32, 1 July 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