Difference between revisions of "Track"
From Sega Retro
(going to need to rethink this) |
|||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <div style=" | + | <includeonly><div style="margin-left:3px;> |
− | {{# | + | {{#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|}}})}} |
− | {{ | ||
− | {| class="{{#if: {{{jp|}}}{{{cn|}}}{{{en|}}}{{{from|}}}{{{ | ||
− | ! style="font-weight:normal; padding:2px; text-align:left" | ||
|- | |- | ||
− | {{#if: {{{jp|}}} | {{!}} style="padding: 0px 0px 0px 20px | + | {{#if:{{{jp|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} {{flag|JP|border=silver}} {{{jp|}}} }} |
|- | |- | ||
− | {{#if: {{{cn|}}} | {{!}} style="padding: 0px 0px 0px 20px | + | {{#if:{{{cn|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} {{flag|CN}} {{{cn|}}} }} |
|- | |- | ||
− | {{#if: {{{en|}}} | {{!}} style="padding: 0px 0px 0px 20px | + | {{#if:{{{en|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''EN:''' {{{en|}}} }} |
|- | |- | ||
− | {{#if: {{{from|}}} | {{!}} style="padding: 0px 0px 0px 20px | + | {{#if:{{{from|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''From:''' {{{from|}}} }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#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|}}} }} | ||
|- | |- | ||
− | {{#if: {{{composer|}}} | {{!}} style="padding: 0px 0px 0px 20px | + | {{#if:{{{composer|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Composed by:''' {{{composer|}}}[[Category:Track credits]] }} |
|- | |- | ||
− | {{#if: {{{vocals|}}} | {{!}} style="padding: 0px 0px 0px 20px | + | {{#if:{{{vocals|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Vocals:''' {{{vocals|}}}[[Category:Track credits]] }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if:{{{arranger|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Arranged by:''' {{{arranger|}}}[[Category:Track credits]] }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if:{{{remix|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Remix by:''' {{{remix|}}} }} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if:{{{performed|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Performed:''' {{{performed|}}} }} |
|- | |- | ||
− | | | + | |}{{#iferror:{{#expr:{{#var:num}}}}|{{let|num=1}}|{{incvar|num}}}}{{#if:{{{time|}}}|{{addvar|time|{{seconds|{{{time|}}}}}}}}}{{#if:{{{artist|}}}|{{StoreCreditsLine |
− | |}{{incvar|num}}{{addvar|time|{{seconds|{{{time| | + | | role=Artist {{#if:{{#var:lastcreditsheader}}|({{#var:lastcreditsheader}})|}} |
− | [[Category: | + | | 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| | ||
+ | {{track|test|artist=artist|time=1:23}} | ||
+ | {{track|test2|time=4:56|en=english|jp=nihongo|cn=mandarin}} | ||
+ | {{track|test3|side=X}} | ||
+ | {{track|data}} | ||
+ | {{track|test4|track=lol|side=none|time=}} | ||
+ | {{track|test|artist=[[Cyberia]]|time=1:23|en=english|credits= | ||
+ | * '''role:''' [[Streets of Rage]] | ||
+ | * '''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:Templates]]</noinclude> |
Latest revision as of 15:08, 17 December 2022
This template defines the table "trackcredits". View table.
Track list
1. artist — test (1:23) |
---|
2. test2 (4:56) |
---|
nihongo |
mandarin |
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