Template talk:Il

From Path of Exile Wiki
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_3.png}}
{{il|Goldwyrm}}
{{il|Goldwyrm|image=Goldwyrm 2.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_3.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 2.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)

Name conflicts

In the article Palace Map there is an item name conflict between The Twins and The Twins (prophecy) which results in the prophecy getting listed in the divination card section. I tried using {{il|page=The Twins}} because I saw that earlier for maps, but that won't fix it. --aRTyficial (talk) 22:31, 15 September 2016 (UTC)

This is a side effect of the transition period because div card are still on the old template. Until div cards are done you can use {{#invoke:item|itemLink}}, but only use that in cases like this. --OmegaK2 (t|c) 15:10, 16 September 2016 (UTC)
Using an underscore instead of a space also fixes the problem, for whatever odd reason. Not sure if that hints to some technical glitch, because I never saw a wiki function making a difference there, so I wanted to mention that. Anyway, the three relevant map articles now use {{il|The_Twins}}. --aRTyficial (talk) 16:01, 16 September 2016 (UTC)