Vorlage:Stück: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Michi (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Michi (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
(59 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
<noinclude> | <noinclude> | ||
Eintrag | Eintrag eines Stücks innerhalb einer Mikiwiki-Stückeliste über die [[Vorlage:Stückeliste]], wo auch die Inhalte der einzelnen Spalten bestimmt werden. | ||
<b> | {| class=wiki width=100% | ||
! Spalte !! Para-<br>meter !! Inhalt !! Anmerkungen zum Stückeintrag | |||
|- | |||
| <b>Stück</b> || 1 || Positionsbezeichnung. || Plattenseiten werden mit Grossbuchstaben, die genaue Position darauf mit zweistelligen Zahlen bezeichnet. Das sechste Lied auf der zweiten Seite wird demnach mit "B 06" bezeichnet. | |||
|- | |||
| <b>Dauer</b> || 2 || Dauer des Stücks. || Angabe in Minuten und Sekunden, dargestellt in der Form "NN:NN", z. B. "03:45" für eine Dauer von 3 Minuten und 45 Sekunden. | |||
|- | |||
| <b>Interpret</b> || 3 || Name des Interpreten. || Falls der Interpretenname nicht dem Seitentitel entspricht, so wird gesucht ob es im Mikiwiki einen Artikel mit dem Interpretennamen gibt und darauf verlinkt. | |||
|- | |||
| <b>Titel</b> || 4 || Der Titel des Stücks. || Falls im Mikiwiki ein Artikel mit dem Titel <b>Lied "<i>Liedtitel</i>" (<i>Autor</i>)</b> besteht, so wird darauf verlinkt. | |||
|- | |||
| <b>Autor</b> || 5 || Der Autor des Stücks. || Falls der Autorenname nicht dem Seitentitel entspricht, so wird gesucht ob es im Mikiwiki einen Artikel mit dem Autorennamen gibt und darauf verlinkt. | |||
|- | |||
| <b>Anmerkungen</b> || 6 || Anmerkungen zum Stück. | |||
|- | |||
| <b>Version</b> || version || Versionsbezeichnung. || Die Versionsbezeichnung wird (sofern vorhanden) in eckigen Klammern an den Titel angehängt. | |||
|} | |||
== Wiki-Syntax == | |||
<pre class=wiki> | <pre class=wiki> | ||
Zeile 8: | Zeile 26: | ||
<td width=5%>{{{1|}}}</td> | <td width=5%>{{{1|}}}</td> | ||
<td width=5%>{{{2|}}}</td> | <td width=5%>{{{2|}}}</td> | ||
<td width=20%>{{# | <td width=20%>{{#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 width=25%><b>{{#ifexist: Lied "{{{4|}}}" ({{{5|}}}) | [[Lied "{{{4|}}}" ({{{5|}}})|{{{4|}}}]] | {{{4|}}} }}</b></td> | <td width=25%><b>{{#ifexist: Lied "{{{4|}}}" ({{{5|}}}) | [[Lied "{{{4|}}}" ({{{5|}}})|{{{4|}}}]] | {{{4|}}} }}</b> {{#if: {{{version|}}} | [{{{version|}}}] | }}</td> | ||
<td width= | <td width=25%>{{#if: {{{5|}}} | {{#if: {{#explode: {{{5|}}}|;|0}} | {{#vardefine:a | {{#explode:{{{5|}}}|;|0}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{#var:a}} | [[{{#var:a}}]] }} }} | {{#var:a}} }} | }} {{#if: {{#explode: {{{5|}}}|;|1}} | {{#vardefine:a | {{#explode:{{{5|}}}|;|1}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{;}} {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{;}} {{#var:a}} | {{;}} [[{{#var:a}}]] }} }} | {{;}} {{#var:a}} }} | }} {{#if: {{#explode: {{{5|}}}|;|2}} | {{#vardefine:a | {{#explode:{{{5|}}}|;|2}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{;}} {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{;}} {{#var:a}} | {{;}} [[{{#var:a}}]] }} }} | {{;}} {{#var:a}} }} | }} {{#if: {{#explode: {{{5|}}}|;|3}} | {{#vardefine:a | {{#explode:{{{5|}}}|;|3}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{;}} {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{;}} {{#var:a}} | {{;}} [[{{#var:a}}]] }} }} | {{;}} {{#var:a}} }} | }} {{#if: {{#explode: {{{5|}}}|;|4}} | {{#vardefine:a | {{#explode:{{{5|}}}|;|4}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{;}} {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{;}} {{#var:a}} | {{;}} [[{{#var:a}}]] }} }} | {{;}} {{#var:a}} }} | }} | {{{5|}}} }}</td> | ||
<td width= | <td width=20%>{{{6|}}}</td> | ||
</tr> | </tr> | ||
</pre> | </pre> | ||
<b>Anmerkung:</b> Die Feldbreite für jedes einzelne Feld anzugeben ist nicht wirklich schön, aber leider habe ich es über die [[Vorlage:Stückeliste]] (welche in Diskografien verwendet wird) nicht auf befriedigende Weise geschafft... | |||
Die Struktur der Parameter 3 und 5 sieht wie folgt aus: | |||
< | <pre class=wiki> | ||
{{#if: {{{5|}}} | |||
| {{#if: {{#explode: {{{5|}}}|;|0}} | |||
| {{#vardefine:a | {{#explode:{{{5|}}}|;|0}} }} | |||
{{#ifexist: {{#var:a}} | |||
| {{#ifeq: {{#var:a}} | {{PAGENAME}} | |||
| {{#var:a}} | |||
| {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | |||
| {{#var:a}} | |||
| [[{{#var:a}}]] | |||
}} | |||
}} | |||
| {{#var:a}} | |||
}} | |||
| | |||
}} | |||
{{#if: {{#explode: {{{5|}}}|;|1}} | |||
| {{#vardefine:a | {{#explode:{{{5|}}}|;|1}} }} | |||
{{#ifexist: {{#var:a}} | |||
| {{#ifeq: {{#var:a}} | {{PAGENAME}} | |||
| {{;}} {{#var:a}} | |||
| {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | |||
| {{;}} {{#var:a}} | |||
| {{;}} [[{{#var:a}}]] | |||
}} | |||
}} | |||
| {{;}} {{#var:a}} | |||
}} | |||
| | |||
}} | |||
| {{{5|}}} | |||
}} | |||
</pre> | |||
{{cat|Vorlage}} | {{cat|Vorlage}} | ||
{{cat|UNFERTIG}} | |||
</noinclude> | </noinclude> | ||
<includeonly><tr> | <includeonly><tr> | ||
<td width=5%>{{#ifexist: {{{1|}}} | [[{{{1|}}}]] | {{{1|}}} }}</td> | <td width=5%>{{#ifexist: {{{1|}}} | [[{{{1|}}}]] | {{{1|}}} }}</td> | ||
<td width=5%>{{{2|}}}</td> | <td width=5%>{{{2|}}}</td> | ||
<td width=20%>{{# | <td width=20%>{{#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}} }} | }} {{#if: {{#explode: {{{3|}}}|;|3}} | {{#vardefine:a | {{#explode:{{{3|}}}|;|3}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{;}} {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{;}} {{#var:a}} | {{;}} [[{{#var:a}}]] }} }} | {{;}} {{#var:a}} }} | }} | {{{3|}}} }}</td> | ||
<td width=25%><b>{{#ifexist: Lied "{{{4|}}}" ({{{5|}}}) | [[Lied "{{{4|}}}" ({{{5|}}})|{{{4|}}}]] | {{{4|}}} }}</b></td> | <td width=25%><b>{{#ifexist: Lied "{{{4|}}}" ({{{5|}}}) | [[Lied "{{{4|}}}" ({{{5|}}})|{{{4|}}}]] | {{{4|}}} }}</b> {{#if: {{{version|}}} | [{{{version|}}}] | }}</td> | ||
<td width= | <td width=25%>{{#if: {{{5|}}} | {{#if: {{#explode: {{{5|}}}|;|0}} | {{#vardefine:a | {{#explode:{{{5|}}}|;|0}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{#var:a}} | [[{{#var:a}}]] }} }} | {{#var:a}} }} | }} {{#if: {{#explode: {{{5|}}}|;|1}} | {{#vardefine:a | {{#explode:{{{5|}}}|;|1}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{;}} {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{;}} {{#var:a}} | {{;}} [[{{#var:a}}]] }} }} | {{;}} {{#var:a}} }} | }} {{#if: {{#explode: {{{5|}}}|;|2}} | {{#vardefine:a | {{#explode:{{{5|}}}|;|2}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{;}} {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{;}} {{#var:a}} | {{;}} [[{{#var:a}}]] }} }} | {{;}} {{#var:a}} }} | }} {{#if: {{#explode: {{{5|}}}|;|3}} | {{#vardefine:a | {{#explode:{{{5|}}}|;|3}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{;}} {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{;}} {{#var:a}} | {{;}} [[{{#var:a}}]] }} }} | {{;}} {{#var:a}} }} | }} {{#if: {{#explode: {{{5|}}}|;|4}} | {{#vardefine:a | {{#explode:{{{5|}}}|;|4}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{;}} {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{;}} {{#var:a}} | {{;}} [[{{#var:a}}]] }} }} | {{;}} {{#var:a}} }} | }} | {{{5|}}} }}</td> | ||
<td width= | <td width=20%>{{{6|}}}</td> | ||
</tr></includeonly> | </tr></includeonly> |
Aktuelle Version vom 24. September 2011, 15:23 Uhr
Eintrag eines Stücks innerhalb einer Mikiwiki-Stückeliste über die Vorlage:Stückeliste, wo auch die Inhalte der einzelnen Spalten bestimmt werden.
Spalte | Para- meter |
Inhalt | Anmerkungen zum Stückeintrag |
---|---|---|---|
Stück | 1 | Positionsbezeichnung. | Plattenseiten werden mit Grossbuchstaben, die genaue Position darauf mit zweistelligen Zahlen bezeichnet. Das sechste Lied auf der zweiten Seite wird demnach mit "B 06" bezeichnet. |
Dauer | 2 | Dauer des Stücks. | Angabe in Minuten und Sekunden, dargestellt in der Form "NN:NN", z. B. "03:45" für eine Dauer von 3 Minuten und 45 Sekunden. |
Interpret | 3 | Name des Interpreten. | Falls der Interpretenname nicht dem Seitentitel entspricht, so wird gesucht ob es im Mikiwiki einen Artikel mit dem Interpretennamen gibt und darauf verlinkt. |
Titel | 4 | Der Titel des Stücks. | Falls im Mikiwiki ein Artikel mit dem Titel Lied "Liedtitel" (Autor) besteht, so wird darauf verlinkt. |
Autor | 5 | Der Autor des Stücks. | Falls der Autorenname nicht dem Seitentitel entspricht, so wird gesucht ob es im Mikiwiki einen Artikel mit dem Autorennamen gibt und darauf verlinkt. |
Anmerkungen | 6 | Anmerkungen zum Stück. | |
Version | version | Versionsbezeichnung. | Die Versionsbezeichnung wird (sofern vorhanden) in eckigen Klammern an den Titel angehängt. |
Wiki-Syntax
<tr> <td width=5%>{{{1|}}}</td> <td width=5%>{{{2|}}}</td> <td width=20%>{{#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 width=25%><b>{{#ifexist: Lied "{{{4|}}}" ({{{5|}}}) | [[Lied "{{{4|}}}" ({{{5|}}})|{{{4|}}}]] | {{{4|}}} }}</b> {{#if: {{{version|}}} | [{{{version|}}}] | }}</td> <td width=25%>{{#if: {{{5|}}} | {{#if: {{#explode: {{{5|}}}|;|0}} | {{#vardefine:a | {{#explode:{{{5|}}}|;|0}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{#var:a}} | [[{{#var:a}}]] }} }} | {{#var:a}} }} | }} {{#if: {{#explode: {{{5|}}}|;|1}} | {{#vardefine:a | {{#explode:{{{5|}}}|;|1}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{;}} {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{;}} {{#var:a}} | {{;}} [[{{#var:a}}]] }} }} | {{;}} {{#var:a}} }} | }} {{#if: {{#explode: {{{5|}}}|;|2}} | {{#vardefine:a | {{#explode:{{{5|}}}|;|2}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{;}} {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{;}} {{#var:a}} | {{;}} [[{{#var:a}}]] }} }} | {{;}} {{#var:a}} }} | }} {{#if: {{#explode: {{{5|}}}|;|3}} | {{#vardefine:a | {{#explode:{{{5|}}}|;|3}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{;}} {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{;}} {{#var:a}} | {{;}} [[{{#var:a}}]] }} }} | {{;}} {{#var:a}} }} | }} {{#if: {{#explode: {{{5|}}}|;|4}} | {{#vardefine:a | {{#explode:{{{5|}}}|;|4}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{;}} {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{;}} {{#var:a}} | {{;}} [[{{#var:a}}]] }} }} | {{;}} {{#var:a}} }} | }} | {{{5|}}} }}</td> <td width=20%>{{{6|}}}</td> </tr>
Anmerkung: Die Feldbreite für jedes einzelne Feld anzugeben ist nicht wirklich schön, aber leider habe ich es über die Vorlage:Stückeliste (welche in Diskografien verwendet wird) nicht auf befriedigende Weise geschafft...
Die Struktur der Parameter 3 und 5 sieht wie folgt aus:
{{#if: {{{5|}}} | {{#if: {{#explode: {{{5|}}}|;|0}} | {{#vardefine:a | {{#explode:{{{5|}}}|;|0}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{#var:a}} | [[{{#var:a}}]] }} }} | {{#var:a}} }} | }} {{#if: {{#explode: {{{5|}}}|;|1}} | {{#vardefine:a | {{#explode:{{{5|}}}|;|1}} }} {{#ifexist: {{#var:a}} | {{#ifeq: {{#var:a}} | {{PAGENAME}} | {{;}} {{#var:a}} | {{#ifeq: {{#var:a}} | {{#titleparts: {{PAGENAME}} | 1}} | {{;}} {{#var:a}} | {{;}} [[{{#var:a}}]] }} }} | {{;}} {{#var:a}} }} | }} | {{{5|}}} }}