Difference between revisions of "Creditstable"
From NEC Retro
Ccawley2011 (talk | contribs) |
|||
Line 1: | Line 1: | ||
− | <includeonly><div style="font-size: 90%">{{{1|}}}</div>{{#if: {{{source|}}} | | + | <includeonly>{{clearvar|i|j}}<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]]}} | |
− | </includeonly><noinclude> | + | {{rep|{{{1|}}}|'''||**|*|var=allLines}}{{#vardefine:i|1}}{{#iferror:{{#var:allLines}}|{{#var:allLines}}| |
+ | {{#while:|{{#vardefine:currentLine|{{#explode:{{#var:allLines}}|*|{{#var:i}}}}}}{{#var:currentLine}} | ||
+ | | {{incvar|i}}{{#vardefine:currentLine2|{{striphtml|1={{#var:currentLine}}|removediv=yes}}}}{{clearvar|currentRole|currentNames}} | ||
+ | {{#if:{{#pos:{{#var:currentLine2}}|:}}|{{let|currentRole={{#explode:{{#var:currentLine2}}|:|0}}|currentNames={{#explode:{{#var:currentLine2}}|:|1}}}} | ||
+ | |{{#vardefine:currentNames|{{#var:currentLine2}}}}}}{{StoreCreditsLine | ||
+ | | role={{#var:currentRole}} | ||
+ | | nameList={{#var:currentNames}} | ||
+ | | game={{#explode:{{PAGENAME}}|/|0}} | ||
+ | | console={{#explode:{{{console|}}}|,|0}} | ||
+ | | date={{{date|}}} | ||
+ | | source={{{source|}}} | ||
+ | | pdf={{first|1={{{pdf|}}}|2={{{file|}}}}} | ||
+ | | pdfpage={{{pdfpage|}}} | ||
+ | }}{{#if:{{#pos:{{{console|}}}|,}} | ||
+ | |{{StoreCreditsLine <!-- second console (e.g. SMS/GG) --> | ||
+ | | role={{#var:currentRole}} | ||
+ | | nameList={{#var:currentNames}} | ||
+ | | game={{#explode:{{PAGENAME}}|/|0}} | ||
+ | | console={{#explode:{{{console|}}}|,|1}} | ||
+ | | date={{{date|}}} | ||
+ | | source={{{source|}}} | ||
+ | | pdf={{first|1={{{pdf|}}}|2={{{file|}}}}} | ||
+ | | pdfpage={{{pdfpage|}}} | ||
+ | }}}} | ||
+ | }}}}{{#if:{{{console|}}}||[[Category:Creditstable with no console field]]}}</includeonly><noinclude> | ||
+ | {{TODO}} | ||
+ | <!-- {{#cargo_declare: | ||
+ | _table=credits | ||
+ | |role=Text | ||
+ | |name=Page | ||
+ | |game=Text | ||
+ | |console=Text | ||
+ | |date=Text | ||
+ | |source=Text | ||
+ | |pdf=File | ||
+ | |pdfpage=Integer | ||
+ | }} --> | ||
==Usage== | ==Usage== | ||
===Example=== | ===Example=== | ||
Line 22: | Line 58: | ||
|source=In-game credits | |source=In-game credits | ||
|console=32X | |console=32X | ||
+ | |pdf=GamePro US 001.pdf | ||
+ | |pdfpage=10 | ||
}} | }} | ||
[[Category:NEC Retro templates]]</noinclude> | [[Category:NEC Retro templates]]</noinclude> |
Revision as of 15:21, 31 December 2021
This task is unfinished This is a wiki task that requires more thought or peer review. An important issue that needs to be solved, which will appear at the top of NEC Retro:Todo until this message is removed. |
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