Vorlage:Infobox Waffe: Unterschied zwischen den Versionen

Aus GuildWiki
Wechseln zu:Navigation, Suche
Zeile 1: Zeile 1:
<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"
 +
! colspan="3" style="font-size:110%; text-align:center; background-color:#f99;" | {{{name|{{PAGENAME}}}}}
 +
|-
 +
| colspan="3" align="center" | {{{bild|[[Bild:{{PAGENAME}}.jpg|{{ #switch: {{lc: {{{typ|}}} }}
 +
| axt
 +
| bogen
 +
| dolche
 +
| hammer
 +
| schwert
 +
| sense
 +
| speer
 +
| bogen
 +
| stab
 +
| zauberstab = 300x300px
 +
| fokus
 +
| fokus-Gegenstand
 +
| schild = 200x400px
 +
}}]]}}}
 +
|- valign="top"
 +
! style="background-color:#f99;" | Waffenart
 +
| [[{{{typ|Waffe}}}]]
 +
| rowspan="5" valign="middle" style="text-align:center; padding: 0 0 0 0.3em;"| {{#ifexist:Bild:{{PAGENAME}}_icon.png|[[Bild:{{PAGENAME}}_icon.png|Inventaricon]]|}}
 +
{{pipe}}- valign="top"
 +
! style="background-color:#f99;" | Erfordert
 +
| {{#if: {{{attribut|}}}|{{{attribut}}}|Anforderungslos}}
 +
{{pipe}}- valign="top"
 +
{{ #switch: {{lc: {{{typ|}}} }}
 +
| axt
 +
| bogen
 +
| dolche
 +
| hammer
 +
| schwert
 +
| sense
 +
| speer
 +
| bogen
 +
| stab
 +
| zauberstab = ! style="background-color:#f99;" {{pipe}} [[Schaden|Schadenstyp]]
 +
{{pipe}} {{#if: {{{schadenstyp|}}}|{{{schadenstyp}}}|Typenlos}}
 +
}}
 +
|- valign="top"
 +
{{ #if: {{{bogenklasse|}}} |
 +
    ! style="background-color:#f99;" {{pipe}} Bogenklasse
 +
    {{pipe}} {{{bogenklasse|}}}
 +
}}
 +
|- valign="top"
 +
! style="background-color:#f99;" | [[Kampagne]]
 +
| {{{kampagne|[[Basis]]}}}
 +
|- valign="top"
 +
! style="background-color:#f99;" {{pipe}} [[Gebräuchliches Handwerksmaterial|Normal]]
 +
    {{pipe}} {{{normal|}}}
 +
|- valign="top"
 +
! style="background-color:#f99;" {{pipe}} [[Seltenes Handwerksmaterial|Selten]]
 +
    {{pipe}} {{{selten|}}} {{{profi|}}}
 +
|}
 +
<includeonly><div style="display:none;">
 +
<!-- Start:Autokategorisierung -->
 +
{{ #switch: {{lc: {{{typ|}}} }}
 +
| [[axt]] = [[Kategorie:Axt]]
 +
| [[dolche]] = [[Kategorie:Dolche]]
 +
| [[hammer]] = [[Kategorie:Hammer]]
 +
| [[schwert]] = [[Kategorie:Schwert]]
 +
| [[sense]] = [[Kategorie:Sense]]
 +
| [[speer]] = [[Kategorie:Speer]]
 +
| [[bogen]] = [[Kategorie:Bogen]]
 +
| [[stab]] = [[Kategorie:Stab]]
 +
| [[zauberstab]] = [[Kategorie:Zauberstab]]
 +
| [[schild]] = [[Kategorie:Schild]]
 +
| [[fokus]] = [[Kategorie:Fokus-Gegenstand]]
 +
| [[fokus-gegenstand]] = [[Kategorie:Fokus-Gegenstand]]
 +
| axt = [[Kategorie:Axt]]
 +
| dolche = [[Kategorie:Dolche]]
 +
| hammer = [[Kategorie:Hammer]]
 +
| schwert = [[Kategorie:Schwert]]
 +
| sense = [[Kategorie:Sense]]
 +
| speer = [[Kategorie:Speer]]
 +
| bogen = [[Kategorie:Bogen]]
 +
| stab = [[Kategorie:Stab]]
 +
| zauberstab = [[Kategorie:Zauberstab]]
 +
| schild = [[Kategorie:Schild]]
 +
| fokus = [[Kategorie:Fokus-Gegenstand]]
 +
| fokus-gegenstand = [[Kategorie:Fokus-Gegenstand]]
 +
}}
 +
<!--
 +
{{ #switch: {{lc: {{{bogenklasse|}}} }}
 +
| langbogen = [[Kategorie:Langbogen]]
 +
| flachbogen = [[Kategorie:Flachbogen]]
 +
| hornbogen = [[Kategorie:Hornbogen]]
 +
| recurvebogen = [[Kategorie:Recurvebogen]]
 +
| kurzbogen = [[Kategorie:Kurzbogen]]
 +
| [[langbogen]] = [[Kategorie:Langbogen]]
 +
| [[flachbogen]] = [[Kategorie:Flachbogen]]
 +
| [[hornbogen]] = [[Kategorie:Hornbogen]]
 +
| [[recurvebogen]] = [[Kategorie:Recurvebogen]]
 +
| [[kurzbogen]] = [[Kategorie:Kurzbogen]]
 +
}}
 +
-->
 
{{ #if: {{{bild| }}} |  | {{ #ifexist: Bild:{{PAGENAME}}.jpg |  | [[Kategorie:Bilder-Stub]] }} }}
 
{{ #if: {{{bild| }}} |  | {{ #ifexist: Bild:{{PAGENAME}}.jpg |  | [[Kategorie:Bilder-Stub]] }} }}
{{ #switch: {{{typ}}}
+
<!--Ende der Kategoriesierung -->
|Axt=[[Kategorie:Axt]]
+
</div></includeonly>
|Dolche=[[Kategorie:Dolche]]
+
<noinclude>
|Hammer=[[Kategorie:Hammer]]
+
{{clear}}
|Schwert=[[Kategorie:Schwert]]
+
==Benutzung==
|Sense=[[Kategorie:Sense]]
+
für alle Waffen einschliesslich Schilde und Fokusse
|Speer=[[Kategorie:Speer]]
+
 
|Bogen=[[Kategorie:Bogen]]
+
==Parameter==
|Stab=[[Kategorie:Stab]]
 
|Zauberstab=[[Kategorie:Zauberstab]]
 
}}</includeonly>
 
{| style="margin-left:10px; border:1px solid #000; background: #fff; border-collapse:collapse; float:right; clear:right;"
 
|- style="text-align:center;"
 
| style="background: #F99;" colspan="3" | '''{{PAGENAME}}'''
 
|-
 
| colspan="3" style="text-align:center;"| {{{bild|[[Bild:{{PAGENAME}}.jpg|300x300px]]}}}
 
|- style="text-align:center; border-bottom: 1px solid #000;"
 
| style="background: #F99;" colspan="3" | '''Waffen Details'''
 
|-
 
| style="padding-left:10px;" |Erfordert:
 
| {{#if: {{{attribut|}}}|{{{attribut}}}|Anforderungslos}}
 
| rowspan="3" style="text-align:center; padding: 0 0 0 0.3em;"| {{#ifexist:Bild:{{PAGENAME}}_icon.png|[[Bild:{{PAGENAME}}_icon.png|Inventaricon]]|}}
 
|-
 
| style="padding-left:10px;"|[[Schaden|Schadenstyp]]:
 
| {{#if: {{{schadenstyp|}}}|{{{schadenstyp}}}|Typenlos}}
 
|-
 
| style="padding-left:10px;"|[[Waffe|Waffenart]]:
 
| [[{{{typ}}}]]
 
|- style="text-align:center; border: 1px solid #000;"
 
! style="background: #F99;" colspan="3" | '''[[Wiederverwertung]]'''
 
|-
 
| style="padding-left:10px;" | '''Normal'''
 
| colspan="2" | {{#if: {{{normal|}}}|{{{normal}}}|Nicht bekannt}}
 
|-
 
| style="padding-left:10px;"| '''Profi'''
 
| colspan="2" | {{#if: {{{profi|}}}|{{{profi}}}|Nicht bekannt}}
 
|}<noinclude>
 
[[Kategorie:Vorlage Infobox]]
 
==Einbinden==
 
Die Waffenvorlage bindet man in einen Waffenartikel mit folgendem Quelltext ein:
 
 
<pre>
 
<pre>
 
{{Infobox Waffe
 
{{Infobox Waffe
  | typ = Hammer
+
  | typ =  
  | attribut = [[Hammerbeherrschung]]
+
  | attribut =  
  | schadenstyp = [[Stumpf-Schaden]]
+
  | schadenstyp = (bei Schild,Fokus weglassen)
  | normal = [[Eisenbarren]]
+
| bogenklasse = (nur bei Bogen)
  | profi = [[Stahlbarren]]
+
| kampagne =
 +
  | normal =
 +
  | selten =
 
}}
 
}}
 
</pre>
 
</pre>
==Die Parameter==
+
; name : Optional. Standard ist: <code><nowiki>{{PAGENAME}}</nowiki></code>
*'''typ''' um welchen Waffentyp handelt es sich? (Hammer, Axt, Schwert, Stab usw.)
+
; bild : Optional. Standard ist: <code><nowiki>{{PAGENAME}}.jpg</nowiki></code>
*'''attribut''' welches Attribut steigert den Schadenswert der Waffe?
+
: Kann man auch benutzen um mehrere Bilder einzubinden.
*'''schadenstyp''' welche Art Schaden verursacht die Waffe?
+
; typ : Muss immer angegeben werden, da hierüber die Kategorie eingetragen wird.
*'''normal''' welches Handwerksmaterial bekommt man mit einem normalen [[Wiederverwertungswerkzeug]]?
+
; attribut : welches Attribut erfordert die Waffe?
*'''profi''' welches Handwerksmaterial bekommt man mit einem [[Profi-Wiederverwertungswerkzeug]]?
+
; schadenstyp : welche Art Schaden verursacht die Waffe?  
*'''bild''' optional, bei Waffen, für die man mehrere Bilder dringend benötigt oder einen zusätzlichen Text einfügen will ([[Qual-Stab]]).
+
; kampagne: Standard ist [[Basis]]
 +
; bogenklasse : Nur für Bögen
 +
; normal: Optional. Welches Gebräuchliche Handwerksmaterial kann man wiederverwerten ?
 +
; selten: Optional. Welches Seltene Handwerksmaterial kann man wiederverwerten ?
 
</noinclude>
 
</noinclude>

Version vom 24. September 2007, 00:27 Uhr

Infobox Waffe
[[Bild:Infobox Waffe.jpg|]]
Waffenart Waffe
Erfordert Anforderungslos
Kampagne Basis
Normal
Selten


Benutzung

für alle Waffen einschliesslich Schilde und Fokusse

Parameter

{{Infobox Waffe
 | typ = 
 | attribut = 
 | schadenstyp = (bei Schild,Fokus weglassen)
 | bogenklasse = (nur bei Bogen)
 | kampagne = 
 | normal =
 | selten =
}}
name 
Optional. Standard ist: {{PAGENAME}}
bild 
Optional. Standard ist: {{PAGENAME}}.jpg
Kann man auch benutzen um mehrere Bilder einzubinden.
typ 
Muss immer angegeben werden, da hierüber die Kategorie eingetragen wird.
attribut 
welches Attribut erfordert die Waffe?
schadenstyp 
welche Art Schaden verursacht die Waffe?
kampagne
Standard ist Basis
bogenklasse 
Nur für Bögen
normal
Optional. Welches Gebräuchliche Handwerksmaterial kann man wiederverwerten ?
selten
Optional. Welches Seltene Handwerksmaterial kann man wiederverwerten ?