Actions

Template

Difference between revisions of "Creditstable"

From NEC Retro

m (Text replacement - "Category:NEC Retro templates" to "Category:Templates")
Line 1: Line 1:
 
<includeonly>{{clearvar|i|j}}<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]]}}
+
<dt class="creditsource">''Source'':</dt> <dd>''{{{source|}}}''{{#if:{{{pdf|}}}|{{UseFile|{{{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}}|
+
{{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}}
Line 8: Line 8:
 
| role={{#var:currentRole}}
 
| role={{#var:currentRole}}
 
| nameList={{#var:currentNames}}
 
| nameList={{#var:currentNames}}
| game={{#explode:{{PAGENAME}}|/|0}}
+
| game={{#explode:{{PAGENAME}}|/Production credits|0}}
 
| console={{#explode:{{{console|}}}|,|0}}
 
| console={{#explode:{{{console|}}}|,|0}}
 
| date={{{date|}}}
 
| date={{{date|}}}

Revision as of 13:22, 6 May 2023


48
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
Source:
In-game credits[1]