Template talk:Infobox CCG

From Unofficial Homecoming Wiki
Jump to navigation Jump to search

See Also Automatically Added

So this template has four articles added to a "See Also" section that directs readers to other COHCCG pages. That's fine, but for many pages (heroes mostly - e.g. Positron or Flower Knight) the "See Also" really ought to include a link to their main NPC page. Putting it in manually is fine, but time consuming. Is there some sort of "if / then" command that could grab the title of the card, and if it exists as an article in the main wiki space, automatically add that article to the "See Also" section? Felderburg 15:37, 12 December 2013 (UTC)

Go Sekoia! It worked! ....now I just need to remove the manually entered links. Felderburg 02:51, 13 December 2013 (UTC)
There was less than I thought, but I did find one (Radiation Aura) that is essentially the same as the Radiant Aura power. So I put the "ifexist" command at the bottom, so that pages like Radiation Aura have the same order of See Also links. Plus now all the COH CCG things will be first in the See Also section, and the other stuff will follow. Felderburg 04:36, 13 December 2013 (UTC)


So, there may be an issue. I've noticed several COH CCG card titles appearing in the Wanted Pages, despite not actually being linked on those pages (as their titles don't exist, so they don't show up). Removing the new "if exists" stuff out of the template appears to fix the issue, for the limited number of articles I've searched. I believe this is an extension of the issue noted here: Talk:Chief Interrogator Washington and http://www.cohtitan.com/forum/index.php/topic,8183.msg112080.html#msg112080 . In this case, it's not a huge deal, since the few people left editing the wiki will be able to click "what links here" and see it's a CCG page, and realize a "wanted" page is only auto-included from that CCG page. I also think the benefits (of CCG cards linking to their "real" in game power or character) outweigh the issue of proliferation of links on the Wanted Pages page.

A larger issue, however, is with the page(s) like Ricochet - there's a Praetorian contact by that name, and an unrelated CCG card by that name, which now links to the Praetorian. So I'm not sure what to do in that particular case. Felderburg 18:46, 6 January 2014 (UTC)