Template talk:Dofficon/doc

Not user friendly
Hi,

if possible, we should replace the first parameter with the last. We can use semantic wiki to fetch the image name from the doff article. That way, the template would work much like the icon templates for skills and items. I didn't want to change it right away because of the interdependencies with the doffpage template.

Regards, --RachelGarrett 09:10, 30 October 2011 (UTC)


 * While I nitpicked Eyes about the needed changes because of the generic headshots he correctly pointed out that it might be better to use named variables instead of numbered ones. If there is additional work needed it might be easier to start from scratch? --Dukedom 09:27, 30 October 2011 (UTC)


 * Well, it is not so much of a hazle. The doff articles set up the connection between doff names and the numbered images. Using semantic wiki we can automate this template to substitute the doff name with the correct image, given that the corresponding doff article already exists. So that would only be a small change in both templates. --RachelGarrett 09:34, 30 October 2011 (UTC)


 * If we're going to do it that way and get the image name through a semantic query, then it's probably best that we put a separate (and probably simpler) implementation right into doffpage rather than have it use this template. Otherwise, we face the problem of setting the property on the same page we're querying it on, and that can lead to issues where you have to save the page twice to get it to fully update. While we can use complex parser logic to avoid that situation, dofficon is already expensive, especially with #ifexist calls. Supporting both use cases with a single template could add a lot of weight to a page load where this template is called heavily. &mdash;  Eyes  [[Image:User-Eyes-Sig.png|link=User talk:Eyes]] 09:43, 30 October 2011 (UTC)