Vorlage:Infobox Interaktives Objekt: Unterschied zwischen den Versionen
Aus GuildWiki
ARTy (Diskussion | Beiträge) |
|||
(17 dazwischenliegende Versionen von 9 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
<includeonly> | <includeonly> | ||
− | {{ #switch: {{lc: {{{typ|}}} }} | + | {{#if: {{{nocat|}}} || |
+ | {{#ifeq: {{NAMESPACE}} | {{ns:0}} | | ||
+ | {{#switch: {{lc: {{{typ|}}} }} | ||
+ | | bündel | ||
+ | | [[bündel]] = [[Kategorie:Bündel]] | ||
| schatz | | schatz | ||
| [[schatz]] = [[Kategorie:Schatz]] | | [[schatz]] = [[Kategorie:Schatz]] | ||
| statue | | statue | ||
− | | [[statue]] = [[Kategorie: | + | | [[statue]] = [[Kategorie:Götterstatue]] |
| truhe | | truhe | ||
| [[truhe]] = [[Kategorie:Truhe]] | | [[truhe]] = [[Kategorie:Truhe]] | ||
Zeile 11: | Zeile 15: | ||
| monument | | monument | ||
| [[monument]] = [[Kategorie:Monument]] | | [[monument]] = [[Kategorie:Monument]] | ||
+ | | [[Kategorie:Interaktives Objekt]] | ||
+ | }} | ||
+ | {{#if: {{{bild| }}} | | {{ ifexist| Bild:{{PAGENAME}}.jpg | | [[Kategorie:Bilder-Stub]] }} }} | ||
+ | }} | ||
}} | }} | ||
− | |||
</includeonly> | </includeonly> | ||
{| style="background-color:#fff; margin: 0 0 0.5em 1em; border:1px solid silver; float:right; font-size:90%; text-align:left;" cellpadding="5" cellspacing="3" align="right" | {| style="background-color:#fff; margin: 0 0 0.5em 1em; border:1px solid silver; float:right; font-size:90%; text-align:left;" cellpadding="5" cellspacing="3" align="right" | ||
− | ! colspan="2" style="font-size:110%; text-align:center; background-color:#fadbd9;" | {{#if: {{{schlüssel|}}} | {{PAGENAME}} [[Bild:{{{schlüssel}}}.png|25px]] | {{PAGENAME}} }} | + | ! colspan="2" style="font-size:110%; text-align:center; background-color:#fadbd9;" | {{#if: {{{schlüssel|}}} | {{PAGENAME}} [[Bild:{{{schlüssel}}} icon.png|25px]] | {{PAGENAME}} }} |
|- | |- | ||
− | ! colspan="2" | [[Bild:{{PAGENAME}}.jpg|center|200px]] | + | ! colspan="2" align="center" | {{{bild|[[Bild:{{PAGENAME}}.jpg|center|200px]]}}} |
|- valign="top" | |- valign="top" | ||
− | ! style="background-color:#fadbd9;" | Typ || [[{{{typ}}}]] | + | ! style="background-color:#fadbd9;" | Typ || {{#if: {{{typ|}}} | [[{{{typ}}}]] | [[Interaktives Objekt]]}} |
|- valign="top" | |- valign="top" | ||
! style="background-color:#fadbd9;" | [[Kampagne]] || [[{{{kampagne}}}]] | ! style="background-color:#fadbd9;" | [[Kampagne]] || [[{{{kampagne}}}]] | ||
|- valign="top" | |- valign="top" | ||
− | {{#if: {{{region|}}} | ! style="background-color:# | + | {{#if: {{{region|}}} | ! style="background-color:#fadbd9;" {{pipe}} Region {{2pipe}} [[{{{region}}}]] | }} |
|- valign="top" | |- valign="top" | ||
− | {{#if: {{{schlüssel|}}} | ! style="background-color:# | + | {{#if: {{{schlüssel|}}} | ! style="background-color:#fadbd9;" {{pipe}} Schlüssel {{2pipe}} {{{schlüssel}}} | }} |
+ | |- valign="top" | ||
+ | {{#if: {{{fertigkeit|}}} | ! style="background-color:#fadbd9;" {{pipe}} Fertigkeit {{2pipe}} {{fertigkeit icon|{{{fertigkeit}}}}} | }} | ||
+ | |- valign="top" | ||
+ | {{#if: {{{wert|}}} | ! style="background-color:#fadbd9;" {{pipe}} Wert {{2pipe}} {{ #switch: {{{wert|}}} | 0 = Nicht verkäuflich | #default = {{Kosten|{{{wert}}}}} }} }} | ||
+ | |- valign="top" | ||
+ | {{#if: {{{standort|}}} | ! style="background-color:#fadbd9;" {{pipe}} Standort {{2pipe}} {{{standort}}} | }} | ||
|- valign="top" | |- valign="top" | ||
− | {{#if: {{{ | + | {{#if: {{{icon|}}} | ! style="background-color:#fadbd9;" {{pipe}} Inventaricon {{2pipe}} {{{icon}}} }} |
|}<noinclude> | |}<noinclude> | ||
[[Kategorie:Vorlage Infobox]] | [[Kategorie:Vorlage Infobox]] | ||
==Einbinden== | ==Einbinden== | ||
− | Die | + | Die Vorlage für Interaktive Objekte bindet man mit folgendem Quelltext ein: |
<pre> | <pre> | ||
{{Infobox Interaktives Objekt | {{Infobox Interaktives Objekt | ||
Zeile 42: | Zeile 55: | ||
</pre> | </pre> | ||
==Die Parameter== | ==Die Parameter== | ||
− | *'''typ''' (Monument, Truhe, Verliestruhe, Bündel, | + | *'''typ''' (Monument, Truhe, Verliestruhe, Bündel, Schatz, Statue) |
*'''kampagne''' (Basis, Prophecies, ...) | *'''kampagne''' (Basis, Prophecies, ...) | ||
*'''region''' (optional, z.B. für Truhen) | *'''region''' (optional, z.B. für Truhen) | ||
*'''schlüssel''' (optional, z.B. ''Ascalon-Schlüssel'') | *'''schlüssel''' (optional, z.B. ''Ascalon-Schlüssel'') | ||
*'''fertigkeit''' (optional, z.B. ''Wachfalle Wachposten'') | *'''fertigkeit''' (optional, z.B. ''Wachfalle Wachposten'') | ||
+ | *'''nocat''' (optional, um automatische Kategorisierung auszuschalten) | ||
+ | *'''wert''' (optional) | ||
+ | *'''icon''' (optional) | ||
</noinclude> | </noinclude> |
Aktuelle Version vom 23. April 2011, 21:30 Uhr
Infobox Interaktives Objekt | |
---|---|
Typ | Interaktives Objekt |
Kampagne | [[{{{kampagne}}}]] |
Einbinden[Bearbeiten]
Die Vorlage für Interaktive Objekte bindet man mit folgendem Quelltext ein:
{{Infobox Interaktives Objekt | typ = Truhe | kampagne = Nightfall | region = Istan | schlüssel = Istan-Schlüssel }}
Die Parameter[Bearbeiten]
- typ (Monument, Truhe, Verliestruhe, Bündel, Schatz, Statue)
- kampagne (Basis, Prophecies, ...)
- region (optional, z.B. für Truhen)
- schlüssel (optional, z.B. Ascalon-Schlüssel)
- fertigkeit (optional, z.B. Wachfalle Wachposten)
- nocat (optional, um automatische Kategorisierung auszuschalten)
- wert (optional)
- icon (optional)