Year of the Dragon: Through April 23rd, claim the adventure pack Slice of Life for free! Speak to Xatheral in the Hall of Heroes.

Game mechanicsNewbie guideIn developmentDDO StoreSocial Media


ChallengesClassesCollectablesCraftingEnhancementsEpic DestiniesFavorFeats

GlossaryItemsMapsMonstersPlacesQuestsRacesReincarnationSkillsSpells


Please create an account or log in to build a reputation and unlock more editing privileges, and then visit DDO wiki's IRC Chat/Discord if you need any help!

Template talk:Weapon

From DDO wiki
Jump to navigation Jump to search

Simple, Greensteel, Epics[edit]

Would only work for normal weapons, greensteel and epics have a higher dice Neouni 06:24, March 28, 2011 (EDT)

My next planned step is to add another switch on the end something like {{#ifeq:{{uc:{{{3}}}}}|GS|(1d6+{{{2}}} 20/2x)|(1d4+{{{2}}} 20/2x)}} or maybe (1d{{#ifeq:{{uc:{{{3}}}}}|GS|6|4}} 20/2x)}} or perhaps since there may be more than two options in the future {{#switch:{{uc:{{{3}}}}}|GS=(1d6+{{{2}}} 20/2x)|EPIC=(2d4+{{{2}}} 20/2x)|#default=(1d4+{{{2}}} 20/2x)}} ShoeMaker 12:37, April 3, 2011 (EDT)
Maybe a simple override like {{{3|1d4}}}, when a 3th argument is used, it changes the dice
you never know what crazy weapons the developers will get up with 3d7 or something ? Neouni 12:56, April 3, 2011 (EDT)
After doing some research it appears that Epic items change 1d(Sides) to 2d(Sides) UNLESS weapon is 2d(Sides) to start with, then it becomes 2d(2*Sides).. Greensteel on the other hand has no set formula it seems some 1d10 items become 2d8 and 2d4 on others becomes 2d6 and 2d6 becomes 3d6 on yet others... {{#switch:{{uc:{{{3}}}}}|GS=(1d6+{{{2}}} 20/2x)|EPIC=(2d4+{{{2}}} 20/2x)|#default=(1d4+{{{2}}} 20/2x)}} seems to be the best bet and I am working on implementing it at this time.. :) ShoeMaker 13:30, April 3, 2011 (EDT)

Capitalization[edit]

{{{1}}} (weapon type) is case sensitive as well? hmm... how do we handle capitalization with this template? --yoko5000 12:15, April 2, 2011 (EDT)

If I am understanding your question... It should be taken care of by using {{ucfirst:{{lc:{{{2}}}}}}}}} From inside out = weAPon becomes weapon with {{lc: feature which then becomes Weapon with {{ucfirst: feature. ShoeMaker 12:37, April 3, 2011 (EDT)

Epic items are a plague..[edit]

There are some cases where there are more than one unique item that have more than one set of damage stats per type of an item.

How should I deal with these?

  • Should I use...
    • |(Item class) = {{#switch:{{uc:{{{3}}}}}|GS=...|EPIC=('''Conflicting Data''' - ''Please '''DO NOT''' use template for this item'')|#default=...}}
    • |(Item class) = {{#switch:{{uc:{{{3}}}}}|GS=...|EPIC=({{{4|2}}}d{{{5|(Sides for non-epic)}}} +{{{1}}} (Critical hit range))|#default=...}}

New Line somewhere[edit]

See Category:The Taken reward items - Neouni 18:22, April 29, 2011 (EDT)

I fixed your link.. I was baffled at first until I thought to myself that there must be something else there I couldn't see.. Then I found you were trying to link to a Category.. The wiki system doesn't like that as much so it requires an extra : in front of the word Category in the link.. [[:Category:The Taken reward items]] vs. [[Category:The Taken reward items]].
To address your concern, I think I have already corrected the problem that seemed to stem from User:Taurolyon's use of <includeonly> instead of <onlyinclude> when he added

<noinclude>
==Usage==
<big>'''<nowiki>{{Long_popup|Text|Tooltip information here}}'''</big>

You may also [[Link]] the text, as well as has the tooltip popup.
</noinclude>
<includeonly></nowiki>

original content

</includeonly>

to Template:Long_popup.

common problem with wiki's, the spelling for that tag seems to be different for certain wiki's.
I think some fix it by accepting both, but I have never looked too deep in the php of the wiki's
It's still used wrongly throughout this wiki in old code, but on places where it's totally useless Neouni 22:02, April 29, 2011 (EDT)

Broken[edit]

lots of pages that use this template is broken now, what the f... heck is going on? --yoko5000 08:33, May 8, 2011 (EDT)

Can you link a couple of examples yoko5000? May have just been the modification to the long popup template I was trying to make... It failed at this point, but I have made something similar work in another place, so I will revisit after some rest.. If that is the case, It should be fine right now.. I reverted all of my edits to that template until I can get the math/logic figured out.. So tired I forgot my sig... ShoeMaker 08:51, May 8, 2011 (EDT)
rewards list categories mainly, it seems that was the case. things seem fine now. GJ. --yoko5000 10:59, May 8, 2011 (EDT)