Difference between revisions of "Creditstable"
From Sega Retro
(commas aren't important any more) |
|||
(31 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{ | + | <includeonly><div style="font-size: 90%">{{{1|}}}</div>{{#if: {{{source|}}} | |
− | <div style=" | + | : ''Source: {{{source}}}''{{#if: {{{pdf|}}} |{{fileref|{{{pdf}}}|page={{{pdfpage|}}}}}| [[Category:Credits without reference]] }} | [[Category:Credits without source]] }} |
+ | <div style="display:none;"> | ||
+ | {{#vardefine:currentLine|NULL}}{{#vardefine:i|1}} | ||
+ | {{#vardefine:allLines|{{#replace:{{#replace:{{{1|}}}|'''}}|**|*}}}} | ||
+ | {{#while: | ||
+ | | {{#ifexpr:{{#len:{{#var:currentLine}}}} > 3|true|}} | ||
+ | | {{#vardefine:currentLine|{{#explode:{{#var:allLines}}|*|{{#var:i}}}}}}{{incvar|i}} | ||
+ | |||
+ | {{#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}}}} | ||
+ | {{#ifexpr:{{#len:{{#var:currentNames}}}} > 0| | ||
+ | {{StoreCreditsLine|role={{#var:currentRole}}|nameList={{#var:currentNames}}|game={{PAGENAME}}|console={{{console|}}}|date={{{date|}}}|pdf={{{pdf|}}}|pdfpage={{{pdfpage|}}}}} | ||
+ | |}} | ||
+ | }}{{#if:{{{console|}}}||[[Category:Creditstable with no console field]]}}</div></includeonly><noinclude> | ||
+ | {{#cargo_declare:_table=credits|role=Text|name=Page|game=Text|console=Text|date=Text|pdf=File|pdfpage=Integer}} | ||
==Usage== | ==Usage== | ||
===Example=== | ===Example=== | ||
Line 9: | Line 23: | ||
* '''Role 2:''' Name | * '''Role 2:''' Name | ||
|source=In-game credits | |source=In-game credits | ||
+ | |console=MD | ||
+ | |pdf=GamePro US 001.pdf | ||
+ | |pdfpage=10 | ||
}} | }} | ||
</pre> | </pre> | ||
Line 17: | Line 34: | ||
* '''Role 2:''' Name | * '''Role 2:''' Name | ||
|source=In-game credits | |source=In-game credits | ||
+ | |console=32X | ||
}} | }} | ||
[[Category:Sega Retro templates]]</noinclude> | [[Category:Sega Retro templates]]</noinclude> |
Revision as of 16: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