Difference between revisions of "Template:TablatureList"

From MansonWiki, the Marilyn Manson encyclopedia
Jump to: navigation, search
m
 
(39 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><center>
+
<includeonly><table class="maintable odd-even-rows-table" style="width: 100%;">
<table>
+
<tr><th>Song</th><th>Lyrics</th><th>Guitar</th><th>Bass</th><th>Keyboard</th><th>Drums</th><th>Tempo</th></tr>
 +
{{#vardefine: ROW | 0}}
 
{{#vardefine: COLUMN | 0}}
 
{{#vardefine: COLUMN | 0}}
 
{{#vardefine: ARTICLE | }}
 
{{#vardefine: ARTICLE | }}
 
{{#fornumargs: K | V
 
{{#fornumargs: K | V
 
   | <nowiki/>
 
   | <nowiki/>
   {{#ifeq: {{#expr: {{#var: COLUMN}} mod 6 }} | 0
+
   {{#ifeq: {{#expr: {{#var: COLUMN}} mod 7 }} | 0
 
   | {{#vardefine: LBRPOS1 | {{#pos: {{#var: V}} | [}}}}      <!-- double left bracket cannot be parsed -->
 
   | {{#vardefine: LBRPOS1 | {{#pos: {{#var: V}} | [}}}}      <!-- double left bracket cannot be parsed -->
 
     {{#vardefine: LBRPOS2 | {{#pos: {{#var: V}} | [ | 1 }}}}
 
     {{#vardefine: LBRPOS2 | {{#pos: {{#var: V}} | [ | 1 }}}}
Line 12: Line 13:
 
         and ({{#var: LBRPOS1}} + 1 = {{#var: LBRPOS2}})
 
         and ({{#var: LBRPOS1}} + 1 = {{#var: LBRPOS2}})
 
         and {{#var: RBRPOS}} <> -1 |
 
         and {{#var: RBRPOS}} <> -1 |
       {{#sub: {{#var: V}} | {{#expr: {{#var: LBRPOS1}} + 2}} }}
+
       {{#vardefine: TOKEN | {{#sub: {{#var: V}} | {{#expr: {{#var: LBRPOS1}} + 2}} | {{#expr: {{#var: RBRPOS}} - {{#var: LBRPOS1}} - 2}} }} }}
 +
      {{#vardefine: REF | {{#explode: {{#var: TOKEN}} | {{!}} | 0}}}}
 
     }}
 
     }}
 
   }}
 
   }}
   {{#switch: {{#expr: {{#var: COLUMN}} mod 6 }}
+
   {{#switch: {{#expr: {{#var: COLUMN}} mod 7 }}
     | 0 = <tr><td style="border: solid 1px gray; text-align: center;">{{#var: V}}</td>
+
     | 0 = {{#vardefine: ROW | {{#expr: {{#var: ROW}} + 1}}}}<tr ><td class="stretch">{{#var: V}}</td>
     | 1 = <td style="border: solid 1px gray; text-align: center;">{{#var: V}}</td>
+
     | 1 = <td>{{#ifeq: {{#var: V}} | + | [[{{#var: REF}}#Lyrics|lyrics]] | &mdash;}}</td>
     | 2 = <td style="border: solid 1px gray; text-align: center;">{{#var: V}}</td>
+
     | 2 = <td>{{#ifeq: {{#var: V}} | + | [[Tablature:{{#var: REF}}#Guitar|guitar]] | &mdash;}}</td>
     | 3 = <td style="border: solid 1px gray; text-align: center;">{{#var: V}}</td>
+
     | 3 = <td>{{#ifeq: {{#var: V}} | + | [[Tablature:{{#var: REF}}#Bass|bass]] | &mdash;}}</td>
     | 4 = <td style="border: solid 1px gray; text-align: center;">{{#var: V}}</td>
+
     | 4 = <td>{{#ifeq: {{#var: V}} | + | [[Tablature:{{#var: REF}}#Keyboard|keyboard]] | &mdash;}}</td>
     | 5 = <td style="border: solid 1px gray; text-align: center;">{{#var: V}}</td></tr>
+
    | 5 = <td>{{#ifeq: {{#var: V}} | + | [[Tablature:{{#var: REF}}#Drums|drums]] | &mdash;}}</td>
 +
     | 6 = <td style="font-size: smaller; text-align: right;">{{#if: {{#var: V}} | {{#var: V}} | &mdash;}}</td></tr>
 
   }}
 
   }}
 
   {{#vardefine: COLUMN | {{#expr: {{#var: COLUMN}} + 1}} }}
 
   {{#vardefine: COLUMN | {{#expr: {{#var: COLUMN}} + 1}} }}
 
}}
 
}}
 
</table>
 
</table>
</center></includeonly>
+
</includeonly>

Latest revision as of 12:21, 24 February 2018