Vorlage:Popup Item: Unterschied zwischen den Versionen

Aus Wiki The-West DE
Zur Navigation springen
KKeine Bearbeitungszusammenfassung
KKeine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
<includeonly><div class="item_container {{{wear|}}}{{#if:{{{bg|}}}|{{#ifexpr:{{{bg|}}}=0|empty|}}|}}">{{#if:{{{wear|}}}|[[Datei:Wear_{{{3}}}.png|link=]]|[[Datei:{{{3}}}.png|link=]]}}<div class="popup_window "><div class="popup_front"><div class="tw_bg_tl"></div><div class="tw_bg_tr"></div><div class="tw_bg_bl"></div><div class="tw_bg_br"></div></div><div class="popup_contents"><div class="popup_image">[[Datei:{{{3}}}.png|link=]]</div>[[Datei:TrennerVorlage.png|center|100px|link=]]<p class="popup_name">{{{1}}}</p><p class="popup_type">{{{2}}}</p><br>{{#if:{{{dmg|}}}|<p class="popup_dmg">{{{dmg}}} Basisschaden</p>{{#if:{{{dmglvl|}}}|<p class="popup_dmg">+<span class="calc" id="{{{dmglvl}}}">{{{dmglvl}}}</span> Schaden <span class="per_level"></span></p>|}}|}}<div class="popup_stats">{{#if:{{{str|}}}|<p class="popup_attribute">{{Popup bonus|{{{str}}}|Stärke}}</p>|}}{{#if:{{{mob|}}}|<p class="popup_attribute">{{Popup bonus|{{{mob}}}|Beweglichkeit}}</p>|}}{{#if:{{{dex|}}}|<p class="popup_attribute">{{Popup bonus|{{{dex}}}|Geschicklichkeit}}</p>|}}{{#if:{{{cha|}}}|<p class="popup_attribute">{{Popup bonus|{{{cha}}}|Charisma}}</p>|}}{{#if:{{{con|}}}|<p class="popup_skill">{{Popup bonus|{{{con}}}|Errichten}}</p>|}}{{#if:{{{vig|}}}|<p class="popup_skill">{{Popup bonus|{{{vig}}}|Schlagkraft}}</p>|}}{{#if:{{{tou|}}}|<p class="popup_skill">{{Popup bonus|{{{tou}}}|Zähigkeit}}</p>|}}{{#if:{{{sta|}}}|<p class="popup_skill">{{Popup bonus|{{{sta}}}|Ausdauer}}</p>|}}{{#if:{{{hea|}}}|<p class="popup_skill">{{Popup bonus|{{{hea}}}|Lebenspunkte}}</p>|}}{{#if:{{{rspkt|}}}|<p class="popup_skill">{{Popup bonus|{{{rspkt}}}|Respekt}}</p>|}}{{#if:{{{rid|}}}|<p class="popup_skill">{{Popup bonus|{{{rid}}}|Reiten}}</p>|}}{{#if:{{{ref|}}}|<p class="popup_skill">{{Popup bonus|{{{ref}}}|Reflex}}</p>|}}{{#if:{{{dod|}}}|<p class="popup_skill">{{Popup bonus|{{{dod}}}|Ausweichen}}</p>|}}{{#if:{{{hid|}}}|<p class="popup_skill">{{Popup bonus|{{{hid}}}|Verstecken}}</p>|}}{{#if:{{{swi|}}}|<p class="popup_skill">{{Popup bonus|{{{swi}}}|Schwimmen}}</p>|}}{{#if:{{{aim|}}}|<p class="popup_skill">{{Popup bonus|{{{aim}}}|Zielen}}</p>|}}{{#if:{{{sho|}}}|<p class="popup_skill">{{Popup bonus|{{{sho}}}|Schießen}}</p>|}}{{#if:{{{pit|}}}|<p class="popup_skill">{{Popup bonus|{{{pit}}}|Fallen stellen}}</p>|}}{{#if:{{{fin|}}}|<p class="popup_skill">{{Popup bonus|{{{fin}}}|Fingerfertigkeit}}</p>|}}{{#if:{{{rep|}}}|<p class="popup_skill">{{Popup bonus|{{{rep}}}|Reparieren}}</p>|}}{{#if:{{{lea|}}}|<p class="popup_skill">{{Popup bonus|{{{lea}}}|Leiten}}</p>|}}{{#if:{{{tac|}}}|<p class="popup_skill">{{Popup bonus|{{{tac}}}|Taktik}}</p>|}}{{#if:{{{tra|}}}|<p class="popup_skill">{{Popup bonus|{{{tra}}}|Handeln}}</p>|}}{{#if:{{{ani|}}}|<p class="popup_skill">{{Popup bonus|{{{ani}}}|Mit Tieren umgehen}}</p>|}}{{#if:{{{app|}}}|<p class="popup_skill">{{Popup bonus|{{{app}}}|Auftreten}}</p>|}}</div><div class="popup_specbon">{{#if:{{{sb1|}}}|<p>{{{sb1}}}</p>|}}{{#if:{{{sb2|}}}|<p>{{{sb2}}}</p>|}}{{#if:{{{sb3|}}}|<p>{{{sb3}}}</p>|}}{{#if:{{{sb4|}}}|<p>{{{sb4}}}</p>|}}</div><br><div class="popup_fb_stats">{{#if:{{{fbdef|}}}|<p>+{{{fbdef}}} <b>Verteidigung</b> (MPI)</p>|}}{{#if:{{{fboff|}}}|<p>+{{{fboff}}} <b>Angriff</b> (MPI)</p>|}}{{#if:{{{fbres|}}}|<p>+{{{fbres}}} <b>Widerstand</b> (Fortkampfbonus)</p>|}}{{#if:{{{fbdefs|}}}|<p>+{{{fbdefs}}} <b>Verteidigung</b> (Fortkampfsektorbonus)</p>|}}{{#if:{{{fboffs|}}}|<p>+{{{fboffs}}} <b>Angriff</b> (Fortkampfsektorbonus)</p>|}}{{#if:{{{fbdams|}}}|<p>+{{{fbdams}}} <b>Schaden</b> (Fortkampfsektorbonus)</p>|}}</div><div class="popup_text">{{#if:{{{t1|}}}|<br><p>{{{t1}}}</p>|}}{{#if:{{{t2|}}}|<p>{{{t2}}}</p>|}}{{#if:{{{t3|}}}|<p>{{{t3}}}</p>|}}{{#if:{{{t4|}}}|<p>{{{t4}}}</p>|}}</div>{{#if:{{{ub|}}}|<br><div class="popup_bonus">Effekt:{{{ub|}}}</div>|}}{{#if:{{{job1|}}}|<div style="text-align:center;"><table class="popup_job"><tr><td>{{Img|{{{job1|}}}}}</td><td><span>&nbsp;&nbsp;{{{jobn1|}}}&nbsp;{{{jobt1|}}}</span></td></tr>{{#if:{{{job2|}}}|<tr><td>{{Img|{{{job2|}}}}}</td><td><span>&nbsp;&nbsp;{{{jobn2|}}}&nbsp;{{{jobt2|}}}</span></td></tr>|}}{{#if:{{{job3|}}}|<tr><td>{{Img|{{{job3|}}}}}</td><td><span>&nbsp;&nbsp;{{{jobn3|}}}&nbsp;{{{jobt3|}}}</span></td></tr>|}}</table></div>|}}{{#if:{{{craft|}}}|<div style="text-align:center;"><table class="popup_crafteditem"><tr><td>{{Img|profsymbol_{{{craft}}}_small}}</td><td><table><tr>{{#if:{{{craft1|}}}|<td>{{Img|{{{craft1|}}}|36}}</td>|}}{{#if:{{{craft2|}}}|<td>{{Img|{{{craft2|}}}|36}}</td>|}}{{#if:{{{craft3|}}}|<td>{{Img|{{{craft3|}}}|36}}</td>|}}{{#if:{{{craft4|}}}|<td>{{Img|{{{craft4|}}}|36}}</td>|}}{{#if:{{{craft5|}}}|<td>{{Img|{{{craft5|}}}|36}}</td>|}}</tr><tr>{{#if:{{{craftnb1|}}}|<td><span>{{{craftnb1|}}}x</span></td>|}}{{#if:{{{craftnb2|}}}|<td><span>{{{craftnb2|}}}x</span></td>|}}{{#if:{{{craftnb3|}}}|<td><span>{{{craftnb3|}}}x</span></td>|}}{{#if:{{{craftnb4|}}}|<td><span>{{{craftnb4|}}}x</span></td>|}}{{#if:{{{craftnb5|}}}|<td><span>{{{craftnb5|}}}x</span></td>|}}</tr></table></td></tr></table></div>|}}<div class="popup_infos">{{#if:{{{spd|}}}|<br><p class="popup_speed">Geschwindigkeit: +{{{spd}}}%</p><br>|}}{{#if:{{{set|}}}|<p class="popup_set">{{{set}}}</p><br>|}}{{#if:{{{bp|}}}|
<includeonly> <div class="item_container {{{wear|}}} {{#if:{{{bg|}}}|{{#ifexpr:{{{bg|}}}=0|empty|}}|}}">{{#if:{{{wear|}}}|[[File:Wear_{{{1}}}.png|link=]]|{{#if:{{{img|}}}|[[File:{{{img}}}|link=]]|[[File:{{{1}}}.png|link=]]}}}}<div class="popup_window"><div class="popup_front"><div class="tw_bg_tl"></div><div class="tw_bg_tr"></div><div class="tw_bg_bl"></div><div class="tw_bg_br"></div></div><div class="popup_contents"> <div class="popup_image"> {{#if:{{{img|}}}|[[File:{{{img}}}|link=]]|{{Img|{{{1}}}}}}}</div>[[File:Divider.png|center|100px|link=]]<p class="popup_name">{{{1}}}</p><p class="popup_type">{{{2}}}</p><br/>{{#if:{{{dmg|}}}|<p class="popup_dmg">{{{dmg|;}}} Damages</p>{{#if:{{{dmglvl|}}}|<p class="popup_dmg">+<span class="calc" id="{{{dmglvl|;}}}">{{{dmglvl|;}}}</span> Damages <span class="per_level"></span></p><br/>|<br/>}}|}}<div class="popup_stats"> {{#if:{{{str|}}}|<p class="popup_attribute">{{Popup bonus|{{{str}}}|Strength}}</p>|}} {{#if:{{{mob|}}}|<p class="popup_attribute">{{Popup bonus|{{{mob}}}|Mobility}}</p>|}} {{#if:{{{dex|}}}|<p class="popup_attribute">{{Popup bonus|{{{dex}}}|Dexterity}}</p>|}} {{#if:{{{cha|}}}|<p class="popup_attribute">{{Popup bonus|{{{cha}}}|Charisma}}</p>|}} {{#if:{{{con|}}}|<p class="popup_skill">{{Popup bonus|{{{con}}}|Construction}}</p>|}} {{#if:{{{vig|}}}|<p class="popup_skill">{{Popup bonus|{{{vig}}}|Vigor}}</p>|}} {{#if:{{{tou|}}}|<p class="popup_skill">{{Popup bonus|{{{tou}}}|Toughness}}</p>|}} {{#if:{{{sta|}}}|<p class="popup_skill">{{Popup bonus|{{{sta}}}|Stamina}}</p>|}} {{#if:{{{hea|}}}|<p class="popup_skill">{{Popup bonus|{{{hea}}}|Health Points}}</p>|}} {{#if:{{{rspkt|}}}|<p class="popup_skill">{{Popup bonus|{{{rspkt}}}|Respecks}}</p>|}} {{#if:{{{rid|}}}|<p class="popup_skill">{{Popup bonus|{{{rid}}}|Horseback Riding}}</p>|}} {{#if:{{{ref|}}}|<p class="popup_skill">{{Popup bonus|{{{ref}}}|Reflex}}</p>|}} {{#if:{{{dod|}}}|<p class="popup_skill">{{Popup bonus|{{{dod}}}|Dodging}}</p>|}} {{#if:{{{hid|}}}|<p class="popup_skill">{{Popup bonus|{{{hid}}}|Hiding}}</p>|}} {{#if:{{{swi|}}}|<p class="popup_skill">{{Popup bonus|{{{swi}}}|Swimming}}</p>|}} {{#if:{{{aim|}}}|<p class="popup_skill">{{Popup bonus|{{{aim}}}|Aiming}}</p>|}} {{#if:{{{sho|}}}|<p class="popup_skill">{{Popup bonus|{{{sho}}}|Shooting}}</p>|}} {{#if:{{{pit|}}}|<p class="popup_skill">{{Popup bonus|{{{pit}}}|Setting Traps}}</p>|}} {{#if:{{{fin|}}}|<p class="popup_skill">{{Popup bonus|{{{fin}}}|Fine Motor Skills}}</p>|}} {{#if:{{{rep|}}}|<p class="popup_skill">{{Popup bonus|{{{rep}}}|Repairing}}</p>|}} {{#if:{{{lea|}}}|<p class="popup_skill">{{Popup bonus|{{{lea}}}|Leadership}}</p>|}} {{#if:{{{tac|}}}|<p class="popup_skill">{{Popup bonus|{{{tac}}}|Tactics}}</p>|}} {{#if:{{{tra|}}}|<p class="popup_skill">{{Popup bonus|{{{tra}}}|Trading}}</p>|}} {{#if:{{{ani|}}}|<p class="popup_skill">{{Popup bonus|{{{ani}}}|Animal Instinct}}</p>|}} {{#if:{{{app|}}}|<p class="popup_skill">{{Popup bonus|{{{app}}}|Appearance}}</p>|}} </div><br/><div class="popup_fb_stats">{{#if:{{{fbdef|}}}|<p>+{{{fbdef|;}}} <b>Defense</b> (Fort battle bonus)</p>|}}{{#if:{{{fboff|}}}|<p>+{{{fboff|;}}} <b>Attack</b> (Fort battle bonus)</p>|}}{{#if:{{{fbres|}}}|<p>+{{{fbres|;}}} <b>Resistance</b> (Fort battle bonus)</p>|}}{{#if:{{{fbdefs|}}}|<p>+{{{fbdefs|;}}} <b>Defense</b> (Fort battle sector bonus)</p>|}}{{#if:{{{fboffs|}}}|<p>+{{{fboffs|;}}} <b>Attack</b> (Fort battle sector bonus)</p>|}}{{#if:{{{fbdmgs|}}}|<p>+{{{fbdmgs|;}}} <b>Damages</b> (Fort battle sector bonus)</p>|}}</div><div class="popup_text">{{#if:{{{t1|}}}|<br/><p>{{{t1|}}}</p>|}}{{#if:{{{t2|}}}|<p>{{{t2|}}}</p>|}}{{#if:{{{t3|}}}|<p>{{{t3|}}}</p>|}}{{#if:{{{t4|}}}|<p>{{{t4|}}}</p>|}}</div><div class="popup_bonus">{{#if:{{{b1|}}}|<br/><p>{{{b1|}}}</p>|}}{{#if:{{{b2|}}}|<p>{{{b2|}}}</p>|}}{{#if:{{{b3|}}}|<p>{{{b3|}}}</p>|}}{{#if:{{{b4|}}}|<p>{{{b4|}}}</p>|}}</div><br/>{{#if:{{{job1|}}}|<div style="text-align:center;"><table class="popup_job"><tr><td>{{Img|{{{job1|}}}}}</td><td><span>&nbsp;&nbsp;{{{job1|}}}</span></td></tr>{{#if:{{{job2|}}}|<tr><td>{{Img|{{{job2|}}}}}</td><td><span>&nbsp;&nbsp;{{{job2|}}}</span></td></tr>|}}{{#if:{{{job3|}}}|<tr><td>{{Img|{{{job3|}}}}}</td><td><span>&nbsp;&nbsp;{{{job3|}}}</span></td></tr>|}}</table></div>|}}{{#ifeq:{{{crafted|}}}|1|<div style="text-align:center;"><table class="popup_crafteditem"><tr><td>{{Img|{{{crafted_profession|}}}|}}</td><td><table><tr>{{#if:{{{crafted_m1|}}}|<td>{{Img|{{{crafted_m1|}}}|36}}</td>|}}{{#if:{{{crafted_m2|}}}|<td>{{Img|{{{crafted_m2|}}}|36}}</td>|}}{{#if:{{{crafted_m3|}}}|<td>{{Img|{{{crafted_m3|}}}|36}}</td>|}}{{#if:{{{crafted_m4|}}}|<td>{{Img|{{{crafted_m4|}}}|36}}</td>|}}{{#if:{{{crafted_m5|}}}|<td>{{Img|{{{crafted_m5|}}}|36}}</td>|}}</tr><tr>{{#if:{{{crafted_nb1|}}}|<td><span>x{{{crafted_nb1|}}}</span></td>|}}{{#if:{{{crafted_nb2|}}}|<td><span>x{{{crafted_nb2|}}}</span></td>|}}{{#if:{{{crafted_nb3|}}}|<td><span>x{{{crafted_nb3|}}}</span></td>|}}{{#if:{{{crafted_nb4|}}}|<td><span>x{{{crafted_nb4|}}}</span></td>|}}{{#if:{{{crafted_nb5|}}}|<td><span>x{{{crafted_nb5|}}}</span></td>|}}</tr></table></td></tr></table></div>|}}<div class="popup_infos">{{#if:{{{spd|}}}|<br/><p class="popup_speed">Speed: +{{{spd|;}}}%</p><br/>|}}{{#if:{{{set|}}}|<p class="popup_set">{{{set|;}}}</p><br/>|}}{{#if:{{{sp|}}}|{{Img|Buy price}}{{{bp|;}}}&nbsp;&nbsp;&nbsp;&nbsp;{{Img|Sell price}}&nbsp;{{{sp|;}}}|<i>Unsalable</i>}}<br/><br/>{{#if:{{{lvl|}}}|Level <b>{{{lvl|;}}}</b>|}}{{#if:{{{sex|}}}|&nbsp;&nbsp;&nbsp;{{#ifexpr:{{{sex|}}}=0|{{Img|Gender_m}}|}}{{#ifexpr:{{{sex|}}}=1|{{Img|Gender_f}}|}}|}} {{#if:{{{upg|}}}|&nbsp;&nbsp;&nbsp;<p class="popup_upgradeable">{{#ifexpr:{{{upg|}}}=0|<span class="popup_txtred">Not upgradeable</span>|<span class="popup_txtgreen">Upgradeable</span>}}</p>|}}{{#if:{{{id|}}}|<p class="popup_id"><br/>ID: <b>{{{id|;}}}</b></p>|}}</div> </div></div>{{#if:{{{nb|}}}|<div class="item_number">{{{nb}}}</div>|}}</div></includeonly>
{{Img|Buy price}}${{{bp}}}&nbsp;&nbsp;{{Img|Sell price}}${{{sp}}}|}}{{#if:{{{sell|}}}|&nbsp;&nbsp;&nbsp;<p>{{#ifexpr:{{{sell|}}}=0|<i>Nicht verkaufbar</i>|<i class="popup_txtgreen">Verkaufbar</i>}}</p>|}}<br>{{#if:{{{lvl|}}}|Level <b>{{{lvl}}}</b>|}}{{#if:{{{sex|}}}|&nbsp;&nbsp;&nbsp;{{Img|gender_{{{sex}}}}}|}}{{#if:{{{auc|}}}|&nbsp;&nbsp;&nbsp;<p>{{#ifexpr:{{{auc|}}}=0|<span class="popup_txtred">Nicht auktionierbar</span>|<span class="popup_txtgreen">Auktionierbar</span>}}</p>|}}{{#if:{{{upg|}}}|&nbsp;&nbsp;&nbsp;<p class="popup_upgradeable">{{#ifexpr:{{{upg|}}}=0|<span class="popup_txtred">Nicht veredelbar</span>|<span class="popup_txtgreen">Veredelbar</span>}}</p>|}}{{#if:{{{id|}}}|<p class="popup_id">ID: <b>{{{id}}}</b></p>|}}</div></div></div>
{{#if:{{{nb|}}}|<div class="item_number">{{{nb}}}</div>|}}</div></includeonly>


<noinclude>
<noinclude>

Version vom 14. Mai 2017, 14:59 Uhr


  • Um diese Vorlage einzubinden, erstelle eine neue Vorlagenseite "Vorlage:Item [Name]" mit diesem Codeinhalt :

<includeonly>{{Popup Item|[Name]|[Description/Type]|[Img]|bg={{{bg|1}}}|nb={{{nb|}}}|[optional parameters]}}</includeonly><.noinclude>[[Category:[Type]]]<center>{{Item [Name itemId]}}</center></.noinclude>

  • Optionale Parameter : Nur mit Werten füllen (kein "+" davor oder ähnlichem)

str=Stärke
mob=Beweglichkeit
dex=Geschicklichkeit
cha=Charisma
con=Errichten
vig=Schlagkraft
tou=Zähigkeit
sta=Ausdauer
hea=Lebenspunkte
rid=Reiten
ref=Reflex
dod=Ausweichen
hid=Verstecken
swi=Schwimmen
aim=Zielen
sho=Schießen
pit=Fallen stellen
fin=Fingerfertigkeit
rep=Reparieren
lea=Leiten
tac=Taktik
tra=Handeln
ani=Mit Tieren umgehen
app=Auftreten
sb1-sb4=Glück,Arbeitspunkte,Beten usw.
dmg=Basisschaden (min-max)
dmglvl=Schaden per Level
fbdef=Verteidigung (FK)
fboff=Angriff (FK)
fbres=Widerstand (FK)
fbdefs=Verteidigung (FK Sektor)
fboffs=Angriff (FK Sektor)
fbdams=Schaden (FK Sektor)
t1=Charakterklasse/Beruf
t2=Freier Text 2
t3=Freier Text 3
t4=Freier Text 4
spd=Geschwindigkeit
set=Setname
bp=Einkaufspreis
sp=Verkaufspreis
lvl=benötigtes Level
sex=m/f
sell=Verkaufbar (0/1)
auc=Auktioniearbar (0/1)
upg=Veredelbar (0/1)
id=Item id
wear=nimmt das Wear-Bild wearM:medium,wearL:large
ub=Buff-Effekte,mit<.br>aufgelistet
job1-job3=shortname des Jobs
jobn1-jobn3=Name des Jobs
jobt1-jobt3=Fundchance oder auch benötigte AP
craft=Wenn hergestellt, ist zugleich der Beruf (1-4)
craft1-craft5=Benötigte Produkte
craftnb1-craftnb5=Anzahl

  • Beispiel :

<includeonly>{{Popup Item|Lees Gewehr |Gewehr|oktoberfest_2016_fort_1|bg={{{bg|1}}}|nb={{{nb|}}}|mob=0.04|hid=0.08|aim=0.04|tac=0.04|fboff=3|t1=Charakterklasse: Arbeiter|dmglvl=2|dmg=20-40|sb1=+20% Glück|bp=5000|sp=2500|lvl=10|set=Robert Lees Waffen|job1=swine|jobn1=Schweine hüten|job2=sugar|jobn2=Zuckerrohr schlagen|jobt2=150%|sex=f|ub=<br>+20 Schaden im Duell<br>+150 Arbeitspunkte|spd=200|sell=0|auc=1|upg=0|id=50218000|craft=4|craft1=iron|craftnb1=15|craft2=sledgehammer|craftnb2=2}}</includeonly><.noinclude>[[Category:Gewehr]]<center>{{Item Lees Gewehr 50218}}</center></.noinclude>

Datei:Lees Gewehr.png


  • Code um das Item einer Seite hinzuzufügen :

{{Item [Name]|[optional parameters]}}

Diese Parameter sind optional:
bg=0 (wenn kein Hintergrund)
nb=Anzahl Items

  • Beispiel :

{{Item Lees Mantel|nb=2|bg=0}} Vorlage:Item Lees Mantel

{{Item Lees Mantel}} Vorlage:Item Lees Mantel


Wichtig: Die Punkte müssen noch entfernt werden bei <.noinclude></.noinclude>