Template talk:Il

From Path of Exile Wiki
Revision as of 16:07, 5 March 2014 by Vinifera7 (talk | contribs)
Jump to navigation Jump to search

This talk page is for discussing Template:Il.

  • Sign your posts using four tildes (~~~~)
  • Start a new topic at the bottom under a ==level 2 heading==
  • Indent replies using colons (:)
  • Keep it civil
  • Assume good faith
  • Don't remove past discussions

Alternate art

Is there a version of this that shows alt art? That'd be kind of neat. TheOneTheOnlyTheMoses (talk)

I just added the optional "Image" parameter to the template:
{{il|Andvarius}}
{{il|Andvarius|image=Andvarius_2.png}}
{{il|Andvarius|image=Andvarius_alt.png}}
{{il|Goldwyrm}}
{{il|Goldwyrm|image=Goldwyrm alt.png}}
Produces:
AndvariusAndvarius
Gold Ring
Requires Level 20(6-15)% increased Rarity of Items found+10 to Dexterity
(50-70)% increased Rarity of Items found
-20% to all Elemental Resistances
Danger is the price of wealth.
Module Error: Item Link: Alternate art with index/name "Andvarius_2.png" not found on page "Andvarius"
Module Error: Item Link: Alternate art with index/name "Andvarius_alt.png" not found on page "Andvarius"
GoldwyrmGoldwyrm
Nubuck Boots
Evasion: (113-126)Requires Level 34, 62 Dex60% increased Mana Regeneration Rate
(14-20)% increased Quantity of Items found
+(40-50)% to Fire Resistance
10% increased Movement Speed
The wyrm draws warmth from the fires of desire.
Module Error: Item Link: Alternate art with index/name "Goldwyrm alt.png" not found on page "Goldwyrm"
Thanks for the suggestion. Chriskang (talk) 00:35, 5 March 2014 (UTC)
Wow, thanks. It's great! TheOneTheOnlyTheMoses (talk)
You're a genius, Chriskang. Your solution is brilliant, but it seems a tad bit hacky. I think I can clean it up a bit and reduce template redundancy. —Vini (t|c) 02:42, 5 March 2014 (UTC)
Wait. Do you suggest that concatenating a link label and a file name in a parameter called "Format" is not hacky? :-) When we have time, we'll add alternate artwork images directly inside the {{item}} template and this day, we'll be able to create something really clean. Good catch on the redundancy though. I was about to do the exact opposite (replace the call to itembox inside {{item/view/inline‎}} by a call to {{item/view/itembox}}). Chriskang (talk) 09:42, 5 March 2014 (UTC)
Good stuff. Iamacyborg (talk) 15:18, 5 March 2014 (UTC)
Well... yeah you got me, it is still pretty hacky. Actually, the entire item templating system is rather unintuitive if you look under the hood. However it works efficiently, so that's why we have it. What I specifically wanted to avoid though was having multiple templates that do essentially the same thing and adding logic to this template. The purpose of this template is only as a shortcut to avoid having to type the somewhat unwieldy page transclusion. —Vini (t|c) 16:07, 5 March 2014 (UTC)