Template talk:Item description

From Guild Wars 2 Wiki
Jump to navigationJump to search

Sigils[edit]

I noticed that using this for Sigils doesn't work, because the actual sigil effect is defined in the `variables` property rather than the `description`, which makes sense of course. I want to avoid hardcoding the description, so I was thinking of addressing this. I think it would make sense that whenever the we call this template with a sigil, it would look at the `variables` instead of `descrption`. Another option would be to create a Sigil description template. I don't have any experience with Mediawiki to make this change myself. Any chance someone could add this, so I can learn from it, or point me in the right direction so I can do this myself? Jorde (talk) 20:02, 26 January 2024 (UTC)

Hey Jorde, not exactly sure where you need this functionality. In this case it is pretty straight forward adapting this template. I replaced "Has game description" with "Has sigil description" which is the property that sigils use, you can check the code on User:Kvothe/Sandbox4. My sandbox should not be used in main space articles. Feel free to create the template if this is needed for main space. You can find "Browse properties" on the side bar (on the page of interest) and search for the property storing the wanted data. —Kvothe (talk) 22:40, 26 January 2024 (UTC)
Hey Kvothe, thanks for helping out. I was thinking of using this for the 'related equipment sections'. For example for this page Interrupt#Upgrade_components_that_trigger_on_interrupt. I had the idea it might be beneficial to show the sigil description after linking the sigil, like we do for example for the related traits on the same page. I don't want to create something that might be unused, so let me know if you think this is a good idea. Jorde (talk) 10:11, 29 January 2024 (UTC)