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 3: Line 3:
== "stacking" items are also "tack" ==
== "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 this by doing a some logic where we first check for tack, and then for stacking like follows:
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 ([https://elanthipedia.play.net/mediawiki/index.php?title=Template:ItemProperties&curid=9613&diff=442671&oldid=438535 diff]) this by doing a some logic where we first check for tack, and then for stacking like follows:


<pre><nowiki>
<pre><nowiki>

Revision as of 21:14, 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 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? - padhg (talk) 22:08, 11 May 2016 (CDT)