Benutzer:Klabauterin/Vorlage/Sandform: Unterschied zwischen den Versionen

Aus GuildWiki
Wechseln zu:Navigation, Suche
(Achtung Monster! *lol*)
Zeile 1: Zeile 1:
{|style="border:1px solid #eee;background-color:#{{Farbe|Nav|M}}"
+
<includeonly>
|
+
{{#if: {{{manuskript|}}}
{| style="border:0; text-align: center; border-collapse:collapse;"
+
  | {{#if: {{{1|}}}  
{{#if:{{{1|beliebig}}}|
+
    |:''{{{1}}}'' <small>&mdash;&nbsp;
{{pipe}}style="vertical-align:top; width:{{{bildgr|66}}}px; border:1px dotted #444;" align="center"{{pipe}}
+
      {{#switch: {{lc:{{{manuskript}}}}}
<div style="border:1px solid #000; margin:1px; width:{{{bildgr|64}}}px;">{{#dpl: title={{{1|beliebig}}} | includepage={Infobox Fertigkeit} Popup}}{{pipe}}{{{bildgr|64}}}px{{pipe}}{{{1|beliebig}}}]]</font></div>
+
        |prophecies = [http://eu.guildwars.com/images/manual/Prophecies/GW_Manual_DE.pdf Guild&nbsp;Wars&nbsp;Prophecies-Manuskripte]
{{#if: {{{namen|}}}||<span style="font-size:smaller;">[[{{{1|beliebig}}}]]</span>}} }}
+
        |factions = [http://eu.guildwars.com/images/manual/Factions/GWF_Manual_DE.pdf Guild&nbsp;Wars&nbsp;Factions-Manuskripte]
{{#if:{{{2|beliebig}}}|
+
        |nightfall|nf = [http://eu.guildwars.com/images/manual/Nightfall/GWN_Manual_DE.pdf Guild&nbsp;Wars&nbsp;Nightfall-Manuskripte]
{{pipe}}style=" vertical-align:top; width:{{{bildgr|66}}}px; border:1px dotted #444;" align="center" {{pipe}}
+
        |eye of the north|eotn = [http://eu.guildwars.com/images/manual/GWEN/manual-de.pdf Guild&nbsp;Wars&nbsp;Eye&nbsp;of&nbsp;the North-Manuskripte]
<div style="border:1px solid #000; margin:1px; width:{{{bildgr|64}}}px; align:center;">{{#dpl: title={{{2|beliebig}}} | includepage={Infobox Fertigkeit} Popup}} {{pipe}} {{{bildgr|64}}}px {{pipe}} {{{2|beliebig}}}]]</font></div>
+
        |#default=[[Kategorie:Parameterfehler]]
{{#if: {{{namen|}}}||<span style="font-size:smaller;">[[{{{2|beliebig}}}]]</span>}} }}
+
      }}
{{#if:{{{3|beliebig}}}|
+
      </small>
{{pipe}}style=" vertical-align:top; width:{{{bildgr|66}}}px; border:1px dotted #444;" align="center" {{pipe}}
+
    |[[Kategorie:Parameterfehler]]
<div style="border:1px solid #000; margin:1px; width:{{{bildgr|64}}}px; align:center;">{{#dpl: title={{{3|beliebig}}} | includepage={Infobox Fertigkeit} Popup}} {{pipe}} {{{bildgr|64}}}px {{pipe}} {{{3|beliebig}}}]]</font></div>
+
    }}  
{{#if: {{{namen|}}}||<span style="font-size:smaller;">[[{{{3|beliebig}}}]]</span>}} }}
+
  | {{#if: {{{1|}}}  
{{#if:{{{4|beliebig}}}|
+
    | {{#if: {{{2|}}}  
{{pipe}}style=" vertical-align:top; width:{{{bildgr|66}}}px; border:1px dotted #444;" align="center" {{pipe}}  
+
      |:''{{{2}}}'' <small>&mdash;&nbsp;{{#ifexpr: {{#pos: {{{1}}}|[[}} = {{#rpos: {{{1}}} |]]}}  
<div style="border:1px solid #000; margin:1px; width:{{{bildgr|64}}}px; align:center;">{{#dpl: title={{{4|beliebig}}} | includepage={Infobox Fertigkeit} Popup}} {{pipe}} {{{bildgr|64}}}px {{pipe}} {{{4|beliebig}}}]]</font></div>
+
        | {{#if: {{#pos: {{{1}}} | {{pipe}} }}  
{{#if: {{{namen|}}}||<span style="font-size:smaller;">[[{{{4|beliebig}}}]]</span>}} }}
+
          | {{#explode:{{{1}}}|{{pipe}}|0}}{{pipe}}{{#replace:{{#explode:{{{1}}}|{{pipe}}|1}}| |&nbsp;}}
{{#if:{{{5|beliebig}}}|
+
          | {{#replace:{{{1}}}|]]|}}{{pipe}}{{#replace:{{#replace:{{{1}}}| |&nbsp;}}|[[|}}
{{pipe}}style=" vertical-align:top; width:{{{bildgr|66}}}px; border:1px dotted #444;" align="center" {{pipe}}
+
          }}
<div style="border:1px solid #000; margin:1px; width:{{{bildgr|64}}}px; align:center;">{{#dpl: title={{{5|beliebig}}} | includepage={Infobox Fertigkeit} Popup}} {{pipe}} {{{bildgr|64}}}px {{pipe}} {{{5|beliebig}}}]]</font></div>
+
        | {{#ifexpr: {{#pos: {{{1}}}|[}} = {{#rpos: {{{1}}} |]}}
{{#if: {{{namen|}}}||<span style="font-size:smaller;">[[{{{5|beliebig}}}]]</span>}} }}
+
          | [{{#explode:{{#explode:{{#explode:{{{1}}}|]|0}}|[|-1}}| |0}} {{#replace:{{#sub:{{#explode:{{#explode:{{{1}}}|]|0}}|[|-1}} | {{#pos:{{#explode:{{#explode:{{{1}}}|]|0}}|[|-1}}| }} | 0 }} | |&nbsp;}}
{{#if:{{{6|beliebig}}}|
+
          | {{#replace: {{{1}}}| |&nbsp;}}
{{pipe}}style=" vertical-align:top; width:{{{bildgr|66}}}px; border:1px dotted #444;" align="center" {{pipe}}
+
          }}
<div style="border:1px solid #000; margin:1px; width:{{{bildgr|64}}}px; align:center;">{{#dpl: title={{{6|beliebig}}} | includepage={Infobox Fertigkeit} Popup}} {{pipe}} {{{bildgr|64}}}px {{pipe}} {{{6|beliebig}}}]]</font></div>
+
        }}
{{#if: {{{namen|}}}||<span style="font-size:smaller;">[[{{{6|beliebig}}}]]</span>}} }}
+
      |  [[Kategorie:Parameterfehler]]
{{#if:{{{7|beliebig}}}|
+
      }}
{{pipe}}style=" vertical-align:top; width:{{{bildgr|66}}}px; border:1px dotted #444;" align="center" {{pipe}}
+
  | [[Kategorie:Parameterfehler]]
<div style="border:1px solid #000; margin:1px; width:{{{bildgr|64}}}px; align:center;">{{#dpl: title={{{7|beliebig}}} | includepage={Infobox Fertigkeit} Popup}} {{pipe}} {{{bildgr|64}}}px {{pipe}} {{{7|beliebig}}}]]</font></div>
+
}}  
{{#if: {{{namen|}}}||<span style="font-size:smaller;">[[{{{7|beliebig}}}]]</span>}} }}
+
</includeonly><noinclude>
{{#if:{{{8|beliebig}}}|
+
 
{{pipe}}style="vertical-align:top; width:{{{bildgr|66}}}px; border:1px dotted #444;" align="center" {{pipe}}
+
Mit Hilfe dieser Vorlage können Texte zum Beispiel aus dem Guild Wars-Handbuch zitiert werden.
<div style="border:1px solid #000; margin:1px; width:{{{bildgr|64}}}px; align:center;">{{#dpl: title={{{8|beliebig}}} | includepage={Infobox Fertigkeit} Popup}} {{pipe}} {{{bildgr|64}}}px {{pipe}} {{{8|beliebig}}}]]</font></div>
+
 
{{#if: {{{namen|}}}||<span style="font-size:smaller;">[[{{{8|beliebig}}}]]</span>}} }}
+
==Anwendung==
|}
+
<pre>
{{#if: {{{code|}}}|
+
{{Spielzitat|<Quelle>|<Text>}}
{{pipe}}-
+
{{Spielzitat|manuskript=<Kampagne>|<Text>}}
{{pipe}}
+
</pre>
{{{pipe}}style="background:transparent;width:100%;"
+
Für den ersten Parameter werden folgende Angaben akzeptiert (wobei Groß- und Kleinschreibung egal sind):  
{{pipe}}style="width:40%;border:none;"{{pipe}}Vorlagencode:
+
<pre>
{{pipe}}style="width:60%;border:solid black 1px;background-color:white"{{pipe}}{{{code|Code}}}
+
Prophecies
{{pipe}}}
+
Factions
}}
+
Nightfall
|}
+
NF
 +
Eye of the North
 +
EotN
 +
</pre>
 +
Ein anderer Wert führt zu einem [[:Kategorie:Parameterfehler|Parameterfehler]]. Selbiges gilt für fehlende Parameter.
 +
 
 +
</noinclude>
 +
 
 +
[[Kategorie:Vorlage Sandkasten]]

Version vom 28. März 2009, 00:21 Uhr


Mit Hilfe dieser Vorlage können Texte zum Beispiel aus dem Guild Wars-Handbuch zitiert werden.

Anwendung

{{Spielzitat|<Quelle>|<Text>}}
{{Spielzitat|manuskript=<Kampagne>|<Text>}}

Für den ersten Parameter werden folgende Angaben akzeptiert (wobei Groß- und Kleinschreibung egal sind):

Prophecies
Factions
Nightfall
NF
Eye of the North
EotN

Ein anderer Wert führt zu einem Parameterfehler. Selbiges gilt für fehlende Parameter.