Template talk:SMW query mod

Search for mod name?
I think it's difficult finding the exact modid of an affix. To simplify this I'd like to suggest adding a parameter,, that searches for the exact affix name instead, for example:

Would also yield:

--Illviljan (talk) 11:49, 1 February 2016 (UTC)


 * The reason why I am not doing this is that the mod id is unique while the name is not. It's common 2-3 mods share the same name, and some mods do not have a name at all (anything not a prefix/suffix). The way the query works is that you get the first result which may not be what you want. Remember this just a shortcut to make things a bit easier / less convoluted on the page, I suggest to familiarize yourself with smw:Semantic MediaWiki since you can do what you ask for with regular queries. In particular:




 * You can use the like operation very well to search for mods. If you wanted to search for a particular stat text, you'd use Has stat text::~*Strength* instead of name for example. If you just want to test such things, you can do so in your userpage and with the preview button, which will fetch the results already. --OmegaK2 (t|c) 21:04, 1 February 2016 (UTC)

Blue color for the mods?
Is it possible to make the mod link have the blue color? So it looks something like this:  ? --Illviljan (talk) 11:49, 1 February 2016 (UTC)
 * I added support for that to one of the underlying templates. Is there are particular way you want the link to look other then that? I can add it as "format" to this template. --OmegaK2 (t|c) 00:07, 2 February 2016 (UTC)
 * Great! No, not really. Only thing I could think of is to compress the link further by removing the [?] and then put the stat text in the hover text instead, but this is not particularly high on my wishlist. Another thing I thought of is to display only the values in the stat text, so this query can be used for various numeric examples like on the Stat page.--Illviljan (talk) 00:50, 2 February 2016 (UTC)
 * The problem is that links and abbr tags are a bit problematic, the link title is used first, so it's not possible, example: Stat
 * I'm not sure, but do we really need that atm? It should probably go into it's own template. The values are a bit more complex to retrieve since you'd be asking for subobjects and you also have to ask what stat/value you actually want. I'm not sure how wide spread that would actually be used, but depending on the situation it probably just makes more sense to do it manually then going for the shortcut. For reference, that's how you would do it for a single value:


 * --OmegaK2 (t|c) 01:14, 2 February 2016 (UTC)