×
Create a new article
Write your page title here:
We currently have 3,035 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
3,035Articles

User:Reas/Sandbox/SoundtrackTable: Difference between revisions

No edit summary
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#arraymap:0,1,2,3,4|,|entry|<!-- for each entry (separated by 2 newlines)<!--
{| style="width: 100%;" cellspacing="0" cellpadding="4" border="1"
    -->{{#ifeq:entry|0|<!-- special case for the first row (cuz everything breaks otherwise)
{{#arraymap:{{{1}}}|;|column|{{!}} style="text-align: center; {{#explode:column|,|2}}" {{!}}<u>'''{{#explode:column|,|1}}'''</u>|\n}}
        -->{{!}}rowspan="<!-- determining rowspan
|-
        -->{{#ifeq:{{User:Reas/Soundtrack/GetValue|{{{entries}}}|entry|column|{{{default/column|}}}}}|{{User:Reas/Soundtrack/GetValue|{{{entries}}}|{{#expr:entry+1}}|column|{{{default/column|}}}}}|2|1}}<!--
{{#invoke:TestModule|table
        -->"{{!}}{{User:Reas/Soundtrack/GetValue|{{{entries}}}|entry|column|{{{default/column|}}}}}}}<!-- end of cell
|columns={{#arraymap:{{{1}}}|;|column|{{#explode:column|,}}|,}}
    -->|{{#arraymap:{{{columns}}}|,|column|<!-- for each column
|default/speed=100
        -->{{#ifeq:{{User:Reas/Soundtrack/GetValue|{{{entries}}}|entry|column|{{{default/column|}}}}}|{{User:Reas/Soundtrack/GetValue|{{{entries}}}|{{#expr:entry-1}}|column|{{{default/column|}}}}}||<!-- if previous cell is the same, output nothing
|display/speed=value%
        -->{{!}}rowspan="<!-- determining rowspan
|unique/speed=name,speed
        -->{{#ifeq:{{User:Reas/Soundtrack/GetValue|{{{entries}}}|entry|column|{{{default/column|}}}}}|{{User:Reas/Soundtrack/GetValue|{{{entries}}}|{{#expr:entry+1}}|column|{{{default/column|}}}}}|2|1}}<!--
|unique/file=name,file
        -->"{{!}}{{User:Reas/Soundtrack/GetValue|{{{entries}}}|entry|column|{{{default/column|}}}}}}}<!-- end of cell
|unique/notes=name,notes
    -->|\n}}}} <!-- end for each column
|display/file=[[:File:value|Listen]]
-->|\n{{!}}-\n}} <!--end for each entry -->
|entries={{{2}}}
}}
|}

Latest revision as of 18:33, 11 July 2024

'