Vorlage:Popup Item: Unterschied zwischen den Versionen

Aus Wiki The-West DE
Zur Navigation springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
<includeonly> <div class="item_container {{#if:{{{bg|}}}|{{#ifexpr:{{{bg|}}}=0|empty|}}|}}">{{#if:{{{img|}}}|[[Datei:{{{img}}}|link=]]|{{Img|{{{1}}}}}}}<div class="popup_window popup{{{3}}}"><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|}}}|[[Datei:{{{img}}}|link=]]|{{Img|{{{1}}}}}}}</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><br/>|<br/>}}|}}<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><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> (Fortkampf Sektorbonus)</p>|}}{{#if:{{{fboffs|}}}|<p>+{{{fboffs|;}}}  <b>Angriff</b> (Fortkampf Sektorbonus)</p>|}}{{#if:{{{fbdmgs|}}}|<p>+{{{fbdmgs|;}}}  <b>Schaden</b> (Fortkampf Sektorbonus)</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_infos">{{#if:{{{spd|}}}|<br/><p class="popup_speed">Geschwindigkeit: +{{{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}}{{{sp|;}}}|<i>Nicht verkaufbar</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">Nicht veredelbar</span>|<span class="popup_txtgreen">Veredelbar</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> <noinclude>
<includeonly> <div class="item_container {{#if:{{{bg|}}}|{{#ifexpr:{{{bg|}}}=0|empty|}}|}}">{{#if:{{{img|}}}|[[Datei:{{{img}}}|link=]]|{{Img|{{{1}}}}}}}<div class="popup_window popup{{{3}}}"><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|}}}|[[Datei:{{{img}}}|link=]]|{{Img|{{{1}}}}}}}</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><br/>|<br/>}}|}}<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><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> (Fortkampf Sektorbonus)</p>|}}{{#if:{{{fboffs|}}}|<p>+{{{fboffs|;}}}  <b>Angriff</b> (Fortkampf Sektorbonus)</p>|}}{{#if:{{{fbdmgs|}}}|<p>+{{{fbdmgs|;}}}  <b>Schaden</b> (Fortkampf Sektorbonus)</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_infos">{{#if:{{{spd|}}}|<br/><p class="popup_speed">Geschwindigkeit: +{{{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}}{{{sp|;}}}|<i>Nicht verkaufbar</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">Nicht veredelbar</span>|<span class="popup_txtgreen">Veredelbar</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> <noinclude>
:* To create a template, create a page entitled "Template:Item [Name]" containing this code :
:* Um diese Vorlage einzubinden, erstelle eine neue Vorlagenseite "Vorlage:Item [Name]" mit diesem Codeinhalt :
<code><nowiki><includeonly>{{Popup Item|[Name]|[Type]|{{{1}}}|bg={{#if:{{{bg|}}}|{{{bg}}}|1}}|nb={{#if:{{{nb|}}}|{{{nb}}}|}}|[optional parameters]}}</includeonly><.noinclude>[[Category:[Category name]]]<center>{{Item [Name]|R}}</center></.noinclude></nowiki></code>
<code><nowiki><includeonly>{{Popup Item|[Name]|[Type]|{{{1}}}|bg={{#if:{{{bg|}}}|{{{bg}}}|1}}|nb={{#if:{{{nb|}}}|{{{nb}}}|}}|[optional parameters]}}</includeonly><.noinclude>[[Category:[Category name]]]<center>{{Item [Name]|R}}</center></.noinclude></nowiki></code>


:* Optional parameters : '''Only fill with values''' (no "''+''" before, etc...)<br/>
:* Optionale Parameter : '''Nur mit Werten füllen''' (kein "''+''" davor oder ähnlichem)<br/>
str=Strength<br/>
str=Stärke<br/>
mob=Mobility<br/>
mob=Beweglichkeit<br/>
dex=Dexterity<br/>
dex=Geschicklichkeit<br/>
cha=Charisma<br/>
cha=Charisma<br/>
con=Construction<br/>
con=Errichten<br/>
vig=Vigor<br/>
vig=Schlagkraft<br/>
tou=Toughness<br/>
tou=Zähigkeit<br/>
sta=Stamina<br/>
sta=Ausdauer<br/>
hea=Health Points<br/>
hea=Lebenspunkte<br/>
rid=Horseback Riding<br/>
rid=Reiten<br/>
ref=Reflex<br/>
ref=Reflex<br/>
dod=Dodging<br/>
dod=Ausweichen<br/>
hid=Hiding<br/>
hid=Verstecken<br/>
swi=Swimming<br/>
swi=Schwimmen<br/>
aim=Aiming<br/>
aim=Zielen<br/>
sho=Shooting<br/>
sho=Schießen<br/>
pit=Setting traps<br/>
pit=Fallen stellen<br/>
fin=Fine Motor Skills<br/>
fin=Fingerfertigkeit<br/>
rep=Repairing<br/>
rep=Reparieren<br/>
lea=Leadership<br/>
lea=Leiten<br/>
tac=Tactics<br/>
tac=Taktik<br/>
tra=Trading<br/>
tra=Handeln<br/>
ani=Animal Instinct<br/>
ani=Mit Tieren umgehen<br/>
app=Appearance<br/>
app=Auftreten<br/>
dmg=Damages (min-max)<br/>
dmg=Basisschaden (min-max)<br/>
dmglvl=Damages per Level<br/>
dmglvl=Schaden per Level<br/>
fbdef=Defense (FB)<br/>
fbdef=Verteidigung (FK)<br/>
fboff=Attack (FB)<br/>
fboff=Angriff (FK)<br/>
fbres=Resistance (FB)<br/>
fbres=Widerstand (FK)<br/>
fbdefs=Defense (FB Sector)<br/>
fbdefs=Verteidigung (FK Sektor)<br/>
fboffs=Attack (FB Sector)<br/>
fboffs=Angriff (FK Sektor)<br/>
fbdmgs=Damages (FB Sector)<br/>
fbdmgs=Schaden (FK Sektor)<br/>
t1=Free text 1<br/>
t1=Freier Text 1<br/>
t2=Free text 2<br/>
t2=Freier Text 2<br/>
t3=Free text 3<br/>
t3=Freier Text 3<br/>
t4=Free text 4<br/>
t4=Freier Text 4<br/>
spd=Speed<br/>
spd=Geschwindigkeit<br/>
set=Set name<br/>
set=Setname<br/>
bp=Buy price<br/>
bp=Einkaufspreis<br/>
sp=Sell price<br/>
sp=Verkaufspreis<br/>
lvl=Required level<br/>
lvl=benötigtes Level<br/>
sex=(0=Male/1=Female)<br/>
sex=(0=männlich/1=weiblich)<br/>
upg=Upgradeable (0/1)<br/>
upg=Veredelbar (0/1)<br/>
id=Item id<br/>
id=Item id<br/>
img=Image name<br/>
img=Bildname<br/>


:* Example :
:* Beispiel :
<code><nowiki><includeonly>{{Popup Item|Lee's rifle|Gun|{{{1}}}|bg={{#if:{{{bg|}}}|{{{bg}}}|1}}|nb={{#if:{{{nb|}}}|{{{nb}}}|}}|mob=0.04|hid=0.08|aim=0.04|tac=0.04|dmglvl=2|dmg=20-40|lvl=1|upg=1|set=Robert Lee's weapons|id=50218000|img=oktoberfest_2016_fort_1}}</includeonly><.noinclude>[[Category:Guns]]<center>{{Item Lee's rifle|R}}</center></.noinclude></nowiki></code>
<code><nowiki><includeonly>{{Popup Item|Lee's rifle|Gun|{{{1}}}|bg={{#if:{{{bg|}}}|{{{bg}}}|1}}|nb={{#if:{{{nb|}}}|{{{nb}}}|}}|mob=0.04|hid=0.08|aim=0.04|tac=0.04|dmglvl=2|dmg=20-40|lvl=1|upg=1|set=Robert Lee's weapons|id=50218000|img=oktoberfest_2016_fort_1}}</includeonly><.noinclude>[[Category:Guns]]<center>{{Item Lee's rifle|R}}</center></.noinclude></nowiki></code>


:* Code to add the item on a page :
:* Code um das Item einer Seite hinzuzufügen :
<code><nowiki>{{Item [Name]|[Position]|[optional parameters]}}</nowiki></code><br/><br/>
<code><nowiki>{{Item [Name]|[Position]|[optional parameters]}}</nowiki></code><br/><br/>
'''Position:''' L=Left / R=Right / LT=Left Top / RT=Right Top<br/>
'''Position:''' L=Left / R=Right / LT=Left Top / RT=Right Top<br/>
'''These parameters are optional :<br/>'''
'''Diese Parameter sind optional :<br/>'''
bg=Display background (0/1)<br/>
bg=Display background (0/1)<br/>
nb=Number of items<br/>
nb=Anzahl Items<br/>


:* Example :
:* Beispiel :
<code><nowiki>{{Item Lees Mantel|RT|nb=2|bg=0}}</nowiki></code>
<code><nowiki>{{Item Lees Mantel|RT|nb=2|bg=0}}</nowiki></code>
{{Item Lees Mantel|RT|nb=2|bg=0}}
{{Item Lees Mantel|RT|nb=2|bg=0}}

Version vom 22. November 2016, 12:54 Uhr

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

<includeonly>{{Popup Item|[Name]|[Type]|{{{1}}}|bg={{#if:{{{bg|}}}|{{{bg}}}|1}}|nb={{#if:{{{nb|}}}|{{{nb}}}|}}|[optional parameters]}}</includeonly><.noinclude>[[Category:[Category name]]]<center>{{Item [Name]|R}}</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
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)
fbdmgs=Schaden (FK Sektor)
t1=Freier Text 1
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=(0=männlich/1=weiblich)
upg=Veredelbar (0/1)
id=Item id
img=Bildname

  • Beispiel :

<includeonly>{{Popup Item|Lee's rifle|Gun|{{{1}}}|bg={{#if:{{{bg|}}}|{{{bg}}}|1}}|nb={{#if:{{{nb|}}}|{{{nb}}}|}}|mob=0.04|hid=0.08|aim=0.04|tac=0.04|dmglvl=2|dmg=20-40|lvl=1|upg=1|set=Robert Lee's weapons|id=50218000|img=oktoberfest_2016_fort_1}}</includeonly><.noinclude>[[Category:Guns]]<center>{{Item Lee's rifle|R}}</center></.noinclude>

  • Code um das Item einer Seite hinzuzufügen :

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

Position: L=Left / R=Right / LT=Left Top / RT=Right Top
Diese Parameter sind optional :
bg=Display background (0/1)
nb=Anzahl Items

  • Beispiel :

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


NB: Remove . in <.noinclude></.noinclude>