Template talk:Item infobox

Automatic display titles
Could we please add something like { {DISPLAYTITLE:{ {item name|{ {BASEPAGENAME}}}}}} to this template?

Of course with some fancy if statements and stuff. SackZement &lt;Talk&gt; 14:39, 16 July 2012 (UTC)
 * Ooh, that's an interesting idea. Let me think about it, and consider what special cases we might have. Off the top of my head, it seems like the only if-test would be testing for the Main namespace. Would we (or do we?) ever display multiple item infoboxes on a Main namespace page? Or on a non-item Main namespace pages? --Kroocsiogsi 16:51, 16 July 2012 (UTC)

Maybe this code (shamelessly copied from the TF2wiki, slightly changed) could be helpful for considering the special cases. SackZement &lt;Talk&gt; 11:49, 17 July 2012 (UTC)
 * on both Template:Item infobox and Template:Hero infobox. Let me know about any mishaps or corner cases. I need to think about having a bot clean up existing DISPLAYTITLEs. Thanks for the suggestion. --Kroocsiogsi 22:17, 17 July 2012 (UTC)
 * Thanks for adding. I think the majority of the redundant titles can be removed by removing all displaytitle-templates that equal the displaytitle of the item infobox. User_SackZement_signature.gif SackZement &lt;Talk&gt; 07:52, 18 July 2012 (UTC)
 * Yep. Might get around to it today. --Kroocsiogsi 19:52, 18 July 2012 (UTC)
 * . I didn't even check for correctness, since I recently did an overhaul of Template:Item name using data from the game files. In case there's an instance where the wiki was correct and the game was not: sorry. Also, pages that had excessive whitespace now have even more excessive whitespace. Bah. --Kroocsiogsi 03:38, 19 July 2012 (UTC)