Vorlage:Popup Item: Unterschied zwischen den Versionen

Aus Wiki The-West DE
Zur Navigation springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 62: Zeile 62:
:* Example :
:* Example :
<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 Lee's coat|RT|nb=2|bg=0}}
{{Item Lees Mantel|RT|nb=2|bg=0}}




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

Version vom 19. November 2016, 15:04 Uhr

  • To create a template, create a page entitled "Template:Item [Name]" containing this code :

<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>

  • Optional parameters : Only fill with values (no "+" before, etc...)

str=Strength
mob=Mobility
dex=Dexterity
cha=Charisma
con=Construction
vig=Vigor
tou=Toughness
sta=Stamina
hea=Health Points
rid=Horseback Riding
ref=Reflex
dod=Dodging
hid=Hiding
swi=Swimming
aim=Aiming
sho=Shooting
pit=Setting traps
fin=Fine Motor Skills
rep=Repairing
lea=Leadership
tac=Tactics
tra=Trading
ani=Animal Instinct
app=Appearance
dmg=Damages (min-max)
dmglvl=Damages per Level
fbdef=Defense (FB)
fboff=Attack (FB)
fbres=Resistance (FB)
fbdefs=Defense (FB Sector)
fboffs=Attack (FB Sector)
fbdmgs=Damages (FB Sector)
t1=Free text 1
t2=Free text 2
t3=Free text 3
t4=Free text 4
spd=Speed
set=Set name
bp=Buy price
sp=Sell price
lvl=Required level
sex=(0=Male/1=Female)
upg=Upgradeable (0/1)
id=Item id
img=Image name

  • Example :

<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 to add the item on a page :

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

Position: L=Left / R=Right / LT=Left Top / RT=Right Top
These parameters are optional :
bg=Display background (0/1)
nb=Number of items

  • Example :

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


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