Template talk:Prefix selection
I was going to have the parameter strip the 's possessive, but that would require a switch statement similar to prefix attributes to add it when appropriate.--Relyk ~ talk < 01:46, 3 March 2014 (UTC)
- The 's is already taken off by {{Prefix attributes}} anyways. Psycho Robot (talk) 01:47, 3 March 2014 (UTC)
Celestial[edit]
Not sure if a problem with this template or something else going on.
See Trackless Boots (level 70), the celestial section isn't showing the attribute values. For the stat level on the linked item, they should all be +12 --BramStoker (talk, contribs) 00:59, 7 January 2015 (UTC)
- Fixed. That specific type/level/rarity combination had never been seen with celestial stats before, so we simply didn't know the value. On that topic, do you know of any other non-level-80 items with a celestial prefix? —Dr Ishmael 01:15, 7 January 2015 (UTC)
- Bazoinga. —Dr Ishmael 04:39, 7 January 2015 (UTC)
Valkyrie not working?[edit]
Doesn't seem to be pulling the stats for Valkyrie. Seylan (talk) 07:51, 15 December 2015 (UTC)
{{prefix selection|at valkyrie}}
- Example page please? -Chieftain Alex 11:06, 15 December 2015 (UTC)
- Assaulter's Energized Loop - it just seems to be trinkets. Seylan (talk) 11:20, 15 December 2015 (UTC)
- Alright, added "at valkyrie" to Template:Prefix attributes. Thanks. -Chieftain Alex 11:48, 15 December 2015 (UTC)
- Assaulter's Energized Loop - it just seems to be trinkets. Seylan (talk) 11:20, 15 December 2015 (UTC)
New (?) combinations not recognized[edit]
So I'm pulling most of the stats for the new trinkets through from the API, and I get pages such as this where there are stats such as "At berserker's and valkyrie", "At dire and rabid", and "At rabid and apothecary's" (the "At" is added by myself). These stats don't seem to be recognized by this template. Is there another name for them? -Darqam (talk) 16:31, 28 July 2016 (UTC)
- Drop the "and" and the "'s". Also we have documentation on this template which links to Template:Prefix attributes#Full parameter list. -Chieftain Alex 18:03, 28 July 2016 (UTC)
- This has cropped up again on The Wayfarer’s Henge (infused) page. I think we should be using the API or ingame terminology. API documentation can be found here. J.Tesla (talk) 20:54, 21 May 2017 (UTC)
collapsed as default for 10 or more prefixes[edit]
This template bloats pages if there are a lot of prefixes to select from. Suggestion: automatically collapse the list for 10 or more entries. Code that probably will work:
line 4: {{STDT|equip {{#ifeq:{{{collapsed| {{#ifeq:{{{10|x}}}|{{{10|}}}| expandable | n}} }}}|n|collapsible|expandable}}}}
—Nefastu (talk) 03:47, 26 November 2016 (UTC)
- Right, this template only uses one parameter. I've found a solution to my problem and have gone ahead and changed the template by modifying the default value for the
{{{collapsed}}}
parameter fromn
to{{#ifeq:{{#explode:{{{1|Example}}}|,|9}}||n|y}}
. Hopefully I didn't miss any cases in which this change would break stuff. —Nefastu (talk) 22:39, 27 November 2016 (UTC)
Table does not collapse[edit]
Looks like there's a mechanism for collapsing, but it's not working. See Inquest Apparatus, or any other trinket from Season 3/4. I've tried doing so on this template page itself, the collapsed parameter doesn't seem to work, nor does the automatic collapse when more than 9. Vahkris (talk) 17:16, 8 March 2018 (UTC)
All eod trinket[edit]
Regarding today's edit: according to the API only the exotic EoD trinkets have the 38 prefixes that are usual for weapons or armor pieces, while in fact all ascended EoD trinkets have the same 42 prefixes as the legendary trinkets. The exotic trinkets are missing the four trinkets-only prefixes: Berserker's and Valkyrie, Captain's, Dire and Rabid, Rabid and Apothecary's. Thus according to the API the edit, which limited the "all eod trinket" prefixes from 42 to 38, should be reverted. Can anyone confirm this?
Source: Trinket item API and itemstats API --Tolkyria (talk) 16:11, 22 March 2022 (UTC)
Edit: See also this parameter check. --Tolkyria (talk) 16:16, 22 March 2022 (UTC)
Required expansion[edit]
Since the stat selection is locked based on your owned expansions (without HoT you cannot get Wanderer, for example), I propose that we should add that requirement to the relevant tables, something like
Diviner's
(Requires Path of Fire).
This will prevent confusion for people who cannot find a prefix they want when they do not have the expansion, + it will prevent unnecessary edits on dozens of pages. ~Sime 14:01, 16 February 2023 (UTC)
- I think the best way to implement it would be to create Template:Prefix requires. There you copy from code from Template:Prefix display and replace the linked prefix names with required expansion (wrapped with small tags and parentheses like in your example).
- Afterwards, in this template you change the line
{{!}} {{prefix display|@@@}}
to{{!}} {{prefix display|@@@}} {{prefix requires|@@@}}
- Go for it, Sime! --Tolkyria (talk) 14:40, 16 February 2023 (UTC)
- Haha, you have a lot of faith in me! Two issues now: it is affecting legendary equipment, which has all the stats regardless of the expansion, and I would like the requirement be under the prefix name, not next to it. ~Sime 14:58, 16 February 2023 (UTC)
- Why not, with your approach you were nearly there! Let's recap my changes:
- 1. You just missed the <br> infront. I went one step further and added the parameter "wrapped", if this one is set then we get br, small and parentheses, otherwise it's just plaintext. I thought this could be useful in the future.
- 2. Fortunately, we are already specifying if an item is legendary (at least in theory, hopefully a non-legendary item isn't using
{{prefix selection|all legendary}}
, see this wiki search), so to get both "all legendary" and "all legendary trinket", we are checking if the lowercase parameter 1 contains "all legendary", namely with{{#pos: {{lc:{{{1|}}}}}|all legendary}}
. If yes, then we disable the template prefix requires call, else we show it. - You might want to check out mw:Help:Extension:ParserFunctions##switch, the #switch function allows to group several cases by omitting the equal sign to reduce duplicate code. --Tolkyria (talk) 16:57, 16 February 2023 (UTC)
Mists-Charged trinkets[edit]
Apparently the Mist-Charged trinkets are an annoying exception (Mists-Charged Jade Talisman, Mists-Charged Jade Band (Infused), Mists-Charged Jade Pendant, Attuned Mists-Charged Jade Band (Infused)) and offer the Ritualist/Dragon's stats even without the expansions, as confirmed on discord here. ~Sime 23:07, 11 March 2023 (UTC)