Vorlage:Liederliste-Stück: Unterschied zwischen den Versionen

Aus Mikiwiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 98: Zeile 98:
<td>{{{5|}}}</td>
<td>{{{5|}}}</td>
</tr>
</tr>
{{#foreach | array  || expression }}
{{#foreach | array  || value var name ||expression }}
{{#foreach | array  || key var name || value var name ||expression }}
The expression will be evaluated for each value contained within the array. During each iteration certain "magic variables" will be set. The names of those variables depend on if value var name and key var name are set.
Magic variables
_key                ---> always contains the text of the key name
_value              ---> always contains the value of the specific array item
_k OR key var name  ---> contains the text of the key name
_v OR value var name ---> contains the value of the specific array item


-->
-->
Zeile 108: Zeile 124:
<td>{{{1|}}}</td>
<td>{{{1|}}}</td>
<td><b>{{#ifexist: Lied "{{{2|}}}" ({{{3|}}}) | [[Lied "{{{2|}}}" ({{{3|}}}) | {{{2|}}}]] | {{{2|}}} }}</b></td>
<td><b>{{#ifexist: Lied "{{{2|}}}" ({{{3|}}}) | [[Lied "{{{2|}}}" ({{{3|}}}) | {{{2|}}}]] | {{{2|}}} }}</b></td>
<td>{{#if: {{{3|}}} | {{#explode |;|{{{3|}}}| abc }} | }}</td>
<td>{{#if: {{{3|}}} | {{#explode |;|{{{3|}}}| abc }}{{#foreach | abc | {{#ifexist: _value | [[_value]] | _value }} }} | }}</td>
<td><small>{{{4|}}}</small></td>
<td><small>{{{4|}}}</small></td>
<td>{{{5|}}}</td>
<td>{{{5|}}}</td>
</tr></includeonly>
</tr></includeonly>

Version vom 30. September 2011, 10:47 Uhr

Eine Zeile innerhalb einer Mikiwiki-Liederliste.

Kopiervorlage

{{Liederliste-Stück|||||
}}

Beschreibung

Spalte Para-
meter
Inhalt
Dauer 1 Dauer des Lieds.
Titel 2 Titel des Lieds.
Autor 3 Der Name des oder der Autoren.
Datum 4 Veröffentlichungsdaten.
Anmerkungen 5 Anmerkungen.

Wiki-Syntax

<tr>
<td>{{{1|}}}</td>
<td><b>{{#ifexist: Lied "{{{2|}}}" ({{{3|}}}) | [[Lied "{{{2|}}}" ({{{3|}}}) | {{{2|}}}]] | {{{2|}}} }}</b></td>
<td>{{#if: {{{3|}}} | {{#if: {{#explode: {{{3|}}}|;|0}} | {{#vardefine:a | {{#explode:{{{3|}}}|;|0}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{#var:a}} | [[{{#var:a}}]] }} }} | {{#var:a}} }} | }} {{#if: {{#explode: {{{3|}}}|;|1}} | {{#vardefine:a | {{#explode:{{{3|}}}|;|1}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{;}} {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{;}} {{#var:a}} | {{;}} [[{{#var:a}}]] }} }} | {{;}} {{#var:a}} }} | }} {{#if: {{#explode: {{{3|}}}|;|2}} | {{#vardefine:a | {{#explode:{{{3|}}}|;|2}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{;}} {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{;}} {{#var:a}} | {{;}} [[{{#var:a}}]] }} }} | {{;}} {{#var:a}} }} | }} | {{{3|}}} }}</td>
<td><small>{{{4|}}}</small></td>
<td>{{{5|}}}</td>
</tr>
always contains the text of the key name

_value ---> always contains the value of the specific array item _k OR key var name ---> contains the text of the key name _v OR value var name ---> contains the value of the specific array item


-->