Difference between revisions of "Track"
From Sega Retro
(going to need to rethink this) |
|||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#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;" | + | <includeonly><div style="margin-left:3px;> |
− | ! 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:{{{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|}}})}} | ||
|- | |- | ||
{{#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 16: | Line 17: | ||
{{#if:{{#pos:{{#var:currentLine}}|:}}|{{let|currentRole={{#explode:{{#var:currentLine}}|:|0}}|currentNames={{#explode:{{#var:currentLine}}|:|1}}}} | {{#if:{{#pos:{{#var:currentLine}}|:}}|{{let|currentRole={{#explode:{{#var:currentLine}}|:|0}}|currentNames={{#explode:{{#var:currentLine}}|:|1}}}} | ||
|{{let|currentNames={{#var:currentLine}}}}}}{{StoreCreditsLine | |{{let|currentNames={{#var:currentLine}}}}}}{{StoreCreditsLine | ||
− | | role={{#var:currentRole}} | + | | role={{#var:currentRole}} {{#if:{{#var:lastcreditsheader}}|({{#var:lastcreditsheader}})|}} |
| nameList={{#var:currentNames}} | | nameList={{#var:currentNames}} | ||
| game={{PAGENAME}} | | game={{PAGENAME}} | ||
Line 40: | Line 41: | ||
|- | |- | ||
|}{{#iferror:{{#expr:{{#var:num}}}}|{{let|num=1}}|{{incvar|num}}}}{{#if:{{{time|}}}|{{addvar|time|{{seconds|{{{time|}}}}}}}}}{{#if:{{{artist|}}}|{{StoreCreditsLine | |}{{#iferror:{{#expr:{{#var:num}}}}|{{let|num=1}}|{{incvar|num}}}}{{#if:{{{time|}}}|{{addvar|time|{{seconds|{{{time|}}}}}}}}}{{#if:{{{artist|}}}|{{StoreCreditsLine | ||
− | | role=Artist | + | | role=Artist {{#if:{{#var:lastcreditsheader}}|({{#var:lastcreditsheader}})|}} |
| nameList={{{artist|}}} | | nameList={{{artist|}}} | ||
| game={{PAGENAME}} | | game={{PAGENAME}} | ||
| track={{{1|}}} | | track={{{1|}}} | ||
| console={{#var:tracklistconsole}} | | console={{#var:tracklistconsole}} | ||
− | }}}}</includeonly><noinclude> | + | }}}}</div>{{#if:{{{artist|}}}{{{credits|}}}||{{#if:{{NAMESPACE}}||[[Category:Track missing credits]]}}}}</includeonly><noinclude> |
{{#cargo_declare: | {{#cargo_declare: | ||
_table=trackcredits | _table=trackcredits | ||
Line 69: | Line 70: | ||
* '''role2:''' [[Darius Gaiden]]}} | * '''role2:''' [[Darius Gaiden]]}} | ||
}} | }} | ||
− | [[Category: | + | |
+ | ===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