Vorlage:Liederliste-Stück: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Michi (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Michi (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 107: | Zeile 107: | ||
Magic variables | Magic variables | ||
_key > always contains the text of the key name | _key > always contains the text of the key name | ||
_value > always contains the value of the specific array item | _value > always contains the value of the specific array item | ||
_k OR key var name > contains the text of the key name | _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 | _v OR value var name > contains the value of the specific array item | ||
<tr> | <tr> | ||
Zeile 122: | Zeile 119: | ||
<td>{{{5|}}}</td> | <td>{{{5|}}}</td> | ||
</tr> | </tr> | ||
<td>{{#if: {{{3|}}} | {{#explode |;|{{{3|}}}| abc }}{{#var|abc|0}} | }}</td> | |||
--> | --> | ||
Zeile 132: | Zeile 131: | ||
<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>{{#if: {{{3|}}} | {{#explode |;|{{{3|}}}| abc }}{{#foreach | abc | _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:59 Uhr
Eine Zeile innerhalb einer Mikiwiki-Liederliste.
- Die Vorlage:Liederliste-Kopf erzeugt die Kopfzeile mit den Spaltenbezeichnungen.
- Die Vorlage:Fuss schliesst die Tabelle ab.
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>