Board Thread:Support Requests - Getting Technical/@comment-26542627-20200726205727/@comment-26542627-20200801220856

HumansCanWinElves wrote: You don't want the links to both wikis to appear anyway, you want the user to be able to create a link only to wiki1 or only to wiki2 No, these are inter-wiki links displayed as icons that appear above an infobox. Think of it like a wiki dedicated to the T.V. show Cheers, and then another to its spinoff Frasier. Similar topics, but big enough to be separate wikis. Some characters are featured in one show and then brought up in the other, so you link the articles with the little icon at the top. The wikis can have a page on a specific character, but they're independent wikis and the page names don't need to match. That's easy enough when one wiki is linking to only another:

But how about a topic large enough to warrant 3+ independent wikis, like a video game series? They may have similar characters, items, locations, etc., but each wiki is informative from that wiki-topic's perspective. Each one may have a page on a character, but each may title the page differently, especially if the character changes their name over the series. So, a template to add multiple inter-wiki link-icons. If the template is to be used, it will always have either:
 * Single icon to wiki1
 * Single icon to wiki2
 * Single icon each to wiki1 and wiki2 (and wiki1's icon always appears before wiki2's icon)

The wikis already link to each other, but do it using 2 templates each (when applicable), and each template is setup like I mentioned in paragraph 1. I'm basically combining the two templates into one, but that complicates the template code because I need to ensure positional parameters display the appropriate link to the appropriate wiki. The reason I'm making this "master inter-wiki template" is because it allows me to format, align, and otherwise change the images/links as a single unit rather than editing 2 templates (or more down the road). It also simplifies it for other article editors, dealing with 1 template rather than 2. Plus, one of these templates is poorly named and I'd rather not go through thousands of pages to change the template name, even if via bot. I also So, I created this master inter-wiki template.

In my solution, I forgot that each image has a tooltip and forced size parameter. Both images use the same image resize but slightly different tooltip messages. I was thinking of using variables to shrink the code down more, especially since the file portions of lines 2-3 are exactly the same, as are lines 5-6.