Vorlage:Table Choice

Aus Minecraft Gameserver Wiki
Version vom 7. September 2013, 02:35 Uhr von Kato-San (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „<includeonly>style="{{#if: {{{style|}}} | {{{style}}}; }} background: #{{#switch: {{#if: {{{1|}}} | {{lc: {{{1}}} }} | n/a }} | ja = C6EFCE; color: #006100"…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche


{{#vardefine: nodoc | {{{nodoc}}} }}{{#vardefine: baddoc | {{{baddoc}}} }}{{#if: | {{#ifeq: Table Choice | doc | |

}} }}

[[File:Template-{{#if: | no | {{#if: | bad }} }}info.png|50px]] Dokumentation
{{#if: | 'Diese Vorlage hat keine Dokumentation. Wenn du dir sicher bist wie diese Vorlage arbeitet, kannst du sie hinzufügen.{{#ifeq: Table Choice | doc | |}} |{{#if: | Die Dokumentation dieser Vorlage ist unzureichend. Wenn du weißt wie diese Vorlage arbeitet, bitte erweitere diese.{{#ifeq: Table Choice | doc | |}}}} }}
{{#if: |
}}{{#if: |
}}{{#if: |
CommentCSS.png
}}{{#if: | [[File:{{{image}}}|{{#if: | {{{imagesize}}} | {{#if: | 16px | 32px }} }}|text-top]]
}}
{{#if:
CommentCSS.png
Hinweis: |
CommentCSS.png
Hinweis:
{{#if: | Diskussion }} }}{{#if: Zum Gebrauch von Vorlagen siehe die Vorlagen-Hilfe | {{#if:
CommentCSS.png
Hinweis: |
Zum Gebrauch von Vorlagen siehe die Vorlagen-Hilfe
| Zum Gebrauch von Vorlagen siehe die Vorlagen-Hilfe }} }}
{{#ifeq: Vorlage | Template | }}
Abkürzung{{#if
| en }}

{{#if: Tc |

Tc}}{{
  1. if: |
{{{2}}}}}{{
  1. if: |
{{{3}}}}}{{
  1. if: |
{{{4}}}}}{{
  1. if: |
{{{5}}}}}{{
  1. if: |
{{{6}}}}}{{
  1. if: |
{{{7}}}}}{{
  1. if: |
{{{8}}}}}{{
  1. if: |
{{{9}}}}}

Diese Vorlage färbt den Hintergrund einer Tabellenzelle und den Text je nach Eingabe.

Anwendung[Bearbeiten]

{{Table Choice|Auswahl|Gestaltung}}

Parameter[Bearbeiten]

Parameter Bedeutung
Auswahl Bestimmt, in welcher Farbe die Zelle gefärbt werden soll. Siehe dazu die Tabelle weiter unten.
Gestaltung style= kann verwendet werden, um die Zelle zusätzlich zu gestalten.

Auswahlmöglichkeiten[Bearbeiten]

Parameter Example
Ja {{{style}}}; }} background: #{{#switch: {{#if: Ja | ja | n/a }} {{#if: | {{{2}}} | Ja }} {{#if: | {{{2}}} | Nein }} {{#if: | {{{2}}} | Niemals }} {{#if: | {{{2}}} | Neutral }} {{#if: | {{{2}}} | Teilweise }} {{#if: | {{{2}}} | Geplant }} {{#if: | {{{2}}} | Unbekannt }} {{#if: | {{{2}}} | N/A }} Ungültig

}}

Nein {{{style}}}; }} background: #{{#switch: {{#if: Nein | nein | n/a }} {{#if: | {{{2}}} | Ja }} {{#if: | {{{2}}} | Nein }} {{#if: | {{{2}}} | Niemals }} {{#if: | {{{2}}} | Neutral }} {{#if: | {{{2}}} | Teilweise }} {{#if: | {{{2}}} | Geplant }} {{#if: | {{{2}}} | Unbekannt }} {{#if: | {{{2}}} | N/A }} Ungültig

}}

Niemals {{{style}}}; }} background: #{{#switch: {{#if: Niemals | niemals | n/a }} {{#if: | {{{2}}} | Ja }} {{#if: | {{{2}}} | Nein }} {{#if: | {{{2}}} | Niemals }} {{#if: | {{{2}}} | Neutral }} {{#if: | {{{2}}} | Teilweise }} {{#if: | {{{2}}} | Geplant }} {{#if: | {{{2}}} | Unbekannt }} {{#if: | {{{2}}} | N/A }} Ungültig

}}

Neutral {{{style}}}; }} background: #{{#switch: {{#if: Neutral | neutral | n/a }} {{#if: | {{{2}}} | Ja }} {{#if: | {{{2}}} | Nein }} {{#if: | {{{2}}} | Niemals }} {{#if: | {{{2}}} | Neutral }} {{#if: | {{{2}}} | Teilweise }} {{#if: | {{{2}}} | Geplant }} {{#if: | {{{2}}} | Unbekannt }} {{#if: | {{{2}}} | N/A }} Ungültig

}}

Teilweise {{{style}}}; }} background: #{{#switch: {{#if: Teilweise | teilweise | n/a }} {{#if: | {{{2}}} | Ja }} {{#if: | {{{2}}} | Nein }} {{#if: | {{{2}}} | Niemals }} {{#if: | {{{2}}} | Neutral }} {{#if: | {{{2}}} | Teilweise }} {{#if: | {{{2}}} | Geplant }} {{#if: | {{{2}}} | Unbekannt }} {{#if: | {{{2}}} | N/A }} Ungültig

}}

Geplant {{{style}}}; }} background: #{{#switch: {{#if: Geplant | geplant | n/a }} {{#if: | {{{2}}} | Ja }} {{#if: | {{{2}}} | Nein }} {{#if: | {{{2}}} | Niemals }} {{#if: | {{{2}}} | Neutral }} {{#if: | {{{2}}} | Teilweise }} {{#if: | {{{2}}} | Geplant }} {{#if: | {{{2}}} | Unbekannt }} {{#if: | {{{2}}} | N/A }} Ungültig

}}

Unbekannt {{{style}}}; }} background: #{{#switch: {{#if: Unbekannt | unbekannt | n/a }} {{#if: | {{{2}}} | Ja }} {{#if: | {{{2}}} | Nein }} {{#if: | {{{2}}} | Niemals }} {{#if: | {{{2}}} | Neutral }} {{#if: | {{{2}}} | Teilweise }} {{#if: | {{{2}}} | Geplant }} {{#if: | {{{2}}} | Unbekannt }} {{#if: | {{{2}}} | N/A }} Ungültig

}}

Beispiele[Bearbeiten]

{|class="wikitable" style="margin: 0px"|{{tc|Ja}}|}

Ergibt:

{{{style}}}; }} background: #{{#switch: {{#if: Ja | ja | n/a }} {{#if: | {{{2}}} | Ja }} {{#if: | {{{2}}} | Nein }} {{#if: | {{{2}}} | Niemals }} {{#if: | {{{2}}} | Neutral }} {{#if: | {{{2}}} | Teilweise }} {{#if: | {{{2}}} | Geplant }} {{#if: | {{{2}}} | Unbekannt }} {{#if: | {{{2}}} | N/A }} Ungültig

}}

{| class="wikitable" style="margin: 0px"
| {{tc|Unbekannt|Nicht sicher|style=text-decoration:underline}}
|}

Ergibt:

text-decoration:underline; }} background: #{{#switch: {{#if: Unbekannt | unbekannt | n/a }} {{#if: Nicht sicher | Nicht sicher | Ja }} {{#if: Nicht sicher | Nicht sicher | Nein }} {{#if: Nicht sicher | Nicht sicher | Niemals }} {{#if: Nicht sicher | Nicht sicher | Neutral }} {{#if: Nicht sicher | Nicht sicher | Teilweise }} {{#if: Nicht sicher | Nicht sicher | Geplant }} {{#if: Nicht sicher | Nicht sicher | Unbekannt }} {{#if: Nicht sicher | Nicht sicher | N/A }} Ungültig

}}


{{#ifeq: Table Choice | doc |

Dies ist die Dokumentation und wird auf der Vorlagenseite eingebunden.

|

Die obige Dokumentation ist unter Vorlage:Table Choice/doc zu finden. (Bearbeiten | Versionsgeschichte)

}}
{{#switch:|subgroup|child=

|none=|#default=

}}

{{#ifeq: Vorlage:Table Choice | Vorlage:Navbox-Formatierung | |}}