Difference between revisions of "Track"

From Sega Retro

(going to need to rethink this)
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="display:none">{{#if: {{{side|}}} | {{#vardefine:side|{{{side}}}}} {{#vardefine:num|1}} | }}
+
<includeonly><div style="margin-left:3px;>
{{#if: {{{num|}}} | {{#vardefine:num|{{{num}}}}} | }}
+
{{#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;"
{{#ifeq: {{#var:hidetimeall}} | 1 | {{#vardefine:hidetime|yes}} | }}
+
! style="font-weight:normal; padding:2px; text-align:left"| '''{{#var:side}}{{#var:num}}.''' {{#if:{{{artist|}}}|{{{artist|}}} &mdash; }} {{#switch:{{{1|}}}|data=''Data track''|{{{1|}}}}} {{#if:{{{time|}}}|({{{time|}}})}}&nbsp;
{{#if: {{{hidetime|}}} | {{#vardefine:hidetime|yes}} | }}</div>
 
{| class="{{#if: {{{jp|}}}{{{en|}}}{{{from|}}}{{{artist|}}}{{{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"| {{#if: {{{num_replace|}}}| '''{{{num_replace}}}.''' | '''{{#var:side}}{{#var:num}}.'''}} {{{1}}} {{#ifeq: {{#var:hidetime}} | yes | | ({{{time}}}) }}
 
 
|-
 
|-
{{#if: {{{jp|}}} | {{!}} style="padding-left:20px" {{!}} <span style="background:pink; font-family:Courier; font-size:80%; padding:2px;">'''JP:'''</span> {{{jp}}} | }}
+
{{#if:{{{jp|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} {{flag|JP|border=silver}} {{{jp|}}} }}
 
|-
 
|-
{{#if: {{{en|}}} | {{!}} style="padding-left:20px" {{!}} <span style="background:gold; font-family:Courier; font-size:80%; padding:2px;">'''EN:'''</span> {{{en}}} | }}
+
{{#if:{{{cn|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} {{flag|CN}} {{{cn|}}} }}
 
|-
 
|-
{{#if: {{{from|}}} | {{!}} style="padding-left:20px" {{!}} '''From:''' {{{from}}} | }}
+
{{#if:{{{en|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''EN:''' {{{en|}}} }}
 
|-
 
|-
{{#if: {{{artist|}}} | {{!}} style="padding-left:20px" {{!}} '''Artist:''' {{{artist}}} | }}
+
{{#if:{{{from|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''From:''' {{{from|}}} }}
 
|-
 
|-
{{#if: {{{performed|}}} | {{!}} style="padding-left:20px" {{!}} '''Performed:''' {{{performed}}} | }}
+
{{#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: {{{arranger|}}} | {{!}} style="padding-left:20px" {{!}} '''Arranged by:''' {{{arranger}}} | }}
+
{{#if:{{{composer|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Composed by:''' {{{composer|}}}[[Category:Track credits]] }}
 
|-
 
|-
{{#if: {{{remix|}}} | {{!}} style="padding-left:20px" {{!}} '''Remix by:''' {{{remix}}} | }}
+
{{#if:{{{vocals|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Vocals:''' {{{vocals|}}}[[Category:Track credits]] }}
|}
+
|-
<div style="display:none">{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}
+
{{#if:{{{arranger|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Arranged by:''' {{{arranger|}}}[[Category:Track credits]] }}
{{#vardefine:time|{{#expr:{{#var:time}}+{{seconds|{{{time|0:00}}}}}}}}}
+
|-
{{#vardefine:hidetime|no}}</div><noinclude>
+
{{#if:{{{remix|}}}| {{!}}style="padding:0px 0px 0px 20px"{{!}} '''Remix by:''' {{{remix|}}} }}
[[Category:Sega Retro templates]]</noinclude>
+
|-
 +
{{#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
 +
| 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|
 +
{{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) 
Japan nihongo
China 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