Difference between revisions of "Track"
From Sega Retro
(going to need to rethink this) |
|||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#if:{{{side|}}}|{{let|side={{#switch:{{{side|}}}|none=|{{{side|}}}}}|num=1}}}}{{#if:{{{track|}}}|{{let|num={{{track|}}}}}}} | + | <includeonly><div style="margin-left:3px;> |
− | {| class="{{#if:{{{jp|}}}{{{cn|}}}{{{en|}}}{{{from|}}}{{{credits|}}}{{{composer|}}}{{{vocals|}}}{{{performed|}}}{{{arranger|}}}{{{remix|}}}|mw-collapsible mw-collapsed}}" style="width:auto; padding-left:20px; padding-top:0px; margin:2px; border:0px; background-color:transparent;" | + | {{#if:{{{side|}}}|{{let|side={{#switch:{{{side|}}}|none=|{{{side|}}}}}|num=1}}}}{{#if:{{{track|}}}|{{let|num={{{track|}}}}}}}{| class="{{#if:{{{jp|}}}{{{cn|}}}{{{en|}}}{{{from|}}}{{{credits|}}}{{{composer|}}}{{{vocals|}}}{{{performed|}}}{{{arranger|}}}{{{remix|}}}|mw-collapsible mw-collapsed}}" style="width:auto; padding-left:20px; padding-top:0px; margin:2px; border:0px; background-color:transparent;" |
− | ! style="font-weight:normal; padding:2px; text-align:left"| '''{{#var:side}}{{#var:num}}.''' {{#if:{{{artist|}}}|{{{artist|}}} — }} {{#switch:{{{1|}}}|data=''Data track''|{{{1|}}}}} {{#if:{{{time|}}}|({{{time|}}})}} | + | ! style="font-weight:normal; padding:2px; text-align:left"| '''{{#var:side}}{{#var:num}}.''' {{#if:{{{artist|}}}|{{{artist|}}} — }} {{#switch:{{{1|}}}|data=''Data track''|{{{1|}}}}} {{#if:{{{time|}}}|({{{time|}}})}} |
|- | |- | ||
{{#if:{{{jp|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} {{flag|JP|border=silver}} {{{jp|}}} }} | {{#if:{{{jp|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} {{flag|JP|border=silver}} {{{jp|}}} }} | ||
Line 12: | Line 12: | ||
|- | |- | ||
{{#if:{{{credits|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} | {{#if:{{{credits|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} | ||
+ | {{rep|{{{credits|}}}|'''||**|*|var=allLines}}{{#vardefine:i|1}}{{#iferror:{{#var:allLines}}|{{#var:allLines}}| | ||
+ | {{#while:|{{let|currentLine={{#explode:{{#var:allLines}}|*|{{#var:i}}}}}}{{#var:currentLine}} | ||
+ | | {{incvar|i}}{{clearvar|currentRole|currentNames}} | ||
+ | {{#if:{{#pos:{{#var:currentLine}}|:}}|{{let|currentRole={{#explode:{{#var:currentLine}}|:|0}}|currentNames={{#explode:{{#var:currentLine}}|:|1}}}} | ||
+ | |{{let|currentNames={{#var:currentLine}}}}}}{{StoreCreditsLine | ||
+ | | role={{#var:currentRole}} {{#if:{{#var:lastcreditsheader}}|({{#var:lastcreditsheader}})|}} | ||
+ | | nameList={{#var:currentNames}} | ||
+ | | game={{PAGENAME}} | ||
+ | | track={{{1|}}} | ||
+ | | console={{#var:tracklistconsole}} | ||
+ | | date={{{date|}}} | ||
+ | | source={{{source|}}} | ||
+ | | pdf={{first|{{{pdf|}}}|{{{file|}}}|{{#var:tracklistpdf}}}} | ||
+ | | pdfpage={{first|{{{pdfpage|}}}|{{#var:tracklistpdfpage}}}} | ||
+ | }} | ||
+ | }}}} | ||
{{{credits|}}} }} | {{{credits|}}} }} | ||
|- | |- | ||
− | {{#if:{{{composer|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Composed by:''' {{{composer|}}} }} | + | {{#if:{{{composer|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Composed by:''' {{{composer|}}}[[Category:Track credits]] }} |
|- | |- | ||
− | {{#if:{{{vocals|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Vocals:''' {{{vocals|}}} }} | + | {{#if:{{{vocals|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Vocals:''' {{{vocals|}}}[[Category:Track credits]] }} |
|- | |- | ||
− | {{#if:{{{arranger|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Arranged by:''' {{{arranger|}}} }} | + | {{#if:{{{arranger|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Arranged by:''' {{{arranger|}}}[[Category:Track credits]] }} |
|- | |- | ||
{{#if:{{{remix|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Remix by:''' {{{remix|}}} }} | {{#if:{{{remix|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Remix by:''' {{{remix|}}} }} | ||
Line 24: | Line 40: | ||
{{#if:{{{performed|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Performed:''' {{{performed|}}} }} | {{#if:{{{performed|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Performed:''' {{{performed|}}} }} | ||
|- | |- | ||
− | |}{{#iferror:{{#expr:{{#var:num}}}}|{{let|num=1}}|{{incvar|num}}}}{{addvar|time|{{seconds|{{{time| | + | |}{{#iferror:{{#expr:{{#var:num}}}}|{{let|num=1}}|{{incvar|num}}}}{{#if:{{{time|}}}|{{addvar|time|{{seconds|{{{time|}}}}}}}}}{{#if:{{{artist|}}}|{{StoreCreditsLine |
+ | | role=Artist {{#if:{{#var:lastcreditsheader}}|({{#var:lastcreditsheader}})|}} | ||
+ | | nameList={{{artist|}}} | ||
+ | | game={{PAGENAME}} | ||
+ | | track={{{1|}}} | ||
+ | | console={{#var:tracklistconsole}} | ||
+ | }}}}</div>{{#if:{{{artist|}}}{{{credits|}}}||{{#if:{{NAMESPACE}}||[[Category:Track missing credits]]}}}}</includeonly><noinclude> | ||
+ | {{#cargo_declare: | ||
+ | _table=trackcredits | ||
+ | |role=Text | ||
+ | |name=Text | ||
+ | |game=Text | ||
+ | |track=Text | ||
+ | |console=Text | ||
+ | |date=Text | ||
+ | |source=Text | ||
+ | |pdf=Text | ||
+ | |pdfpage=Integer | ||
+ | }} | ||
+ | ==Track list== | ||
{{tracklist| | {{tracklist| | ||
− | |||
{{track|test|artist=artist|time=1:23}} | {{track|test|artist=artist|time=1:23}} | ||
{{track|test2|time=4:56|en=english|jp=nihongo|cn=mandarin}} | {{track|test2|time=4:56|en=english|jp=nihongo|cn=mandarin}} | ||
{{track|test3|side=X}} | {{track|test3|side=X}} | ||
{{track|data}} | {{track|data}} | ||
− | {{track|test4|track=lol|side=none}} | + | {{track|test4|track=lol|side=none|time=}} |
− | {{track|test|artist= | + | {{track|test|artist=[[Cyberia]]|time=1:23|en=english|credits= |
− | * '''role:''' | + | * '''role:''' [[Streets of Rage]] |
− | * '''role2:''' | + | * '''role2:''' [[Darius Gaiden]]}} |
}} | }} | ||
+ | |||
+ | ===Formatting checks=== | ||
+ | |||
+ | {{tracklist| | ||
+ | {{track|test|artist=artist|time=1:23}} | ||
+ | {{creditsheader|header}} | ||
+ | {{track|test|artist=artist|time=1:23}} | ||
+ | *does it line up | ||
+ | {{track|test|artist=artist|time=1:23}} | ||
+ | *without looking too dumb | ||
}} | }} | ||
− | [[Category: | + | |
+ | [[Category:Templates]]</noinclude> |
Latest revision as of 16:08, 17 December 2022
This template defines the table "trackcredits". View table.
Track list
1. artist — test (1:23) |
---|
2. test2 (4:56) |
---|
![]() |
![]() |
EN: english |
X1. test3 |
---|
X2. Data track |
---|
lol. test4 |
---|
1. Cyberia — test (1:23) |
---|
EN: english |
|
► Running time: 7:42
Formatting checks
1. artist — test (1:23) |
---|
header
2. artist — test (1:23) |
---|
- does it line up
3. artist — test (1:23) |
---|
- without looking too dumb
► Running time: 4:09