Template talk:ItemProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
m (→‎"stacking" items are also "tack": added link to change/diff)
Line 11: Line 11:
}}</nowiki></pre>
}}</nowiki></pre>


This works by itself on my sandbox page, however the item page linked above still seems to be broken. Any thoughts? Another alternative would be to just rename "tack" to "horse" or "mount" and avoid the issue. Does my change break the way the "Edit with Form" enumerates the different Item Types? - [[User:RY4NPW|padhg]] ([[User talk:RY4NPW|talk]]) 22:08, 11 May 2016 (CDT)
This works, however, will my change break the way the "Edit with Form" enumerates the different Item Types? - [[User:RY4NPW|padhg]] ([[User talk:RY4NPW|talk]]) 22:08, 11 May 2016 (CDT)

Revision as of 21:20, 11 May 2016

Can we add a new template option for items that is separate from "hood"? I think "hood" should be reserved for items that hide features, and a new option should be added for concealing items. Lets call it "conceal"? This would prevent questions from people like me when they see the phrase "hides features OR items", not knowing which it does or both. --Juugcatm 22:54, 6 April 2011 (UTC)

"stacking" items are also "tack"

I added the "stacking" type to Item:Iron lockpick ring and it was getting both the tack and the stacking messaging. Looking at the code, this is because "stacking" matches "tack" as well. Now, I tried to fix (diff) this by doing a some logic where we first check for tack, and then for stacking like follows:

{{IfMatch | tack | {{{special}}} | true={{
  IfMatch | stacking | {{{special}}} | true=*This item reduces the inventory count and/or weight of its contents.
                                     | false=*This item is designed to be worn by or used on a horse or mount.}}
}}

This works, however, will my change break the way the "Edit with Form" enumerates the different Item Types? - padhg (talk) 22:08, 11 May 2016 (CDT)