When I use templates as individual lines in a table, it mostly seems to work perfectly, except for one spot where it keeps eating the first word of the second column, and I don't know why.
Background: I have a small MediaWiki, just large enough to need several navigation lists, which I then want to group together at the bottom of pages as a sitemap.
So on an individual page I use the template Template:Core_Links
'''[[Main Page]]''' || [[FAQ]] | [[Groups]] | [[Other Stuff]]
I have identically formatted Region_Links, Leadership_Links, etc. to use as headers on the relevant pages.
Then I have Template:Sitewide_Links, which does this:
{| class="wikitable"
|+ '''Site at a Glance'''
!Core pages
!More information
|-
| {{Core Links}}
|-
| {{Leadership Links}}
|-
| {{Unfinished Links}}
|-
| {{Good to Know Links}}
|-
| '''Webmaster''' || {{Webmaster}}
|}
I get a nice table, with the double-pipe in the smaller templates acting as a column delimiter. It works great.
Except on the Template:Unfinished_Links in the middle there. I haven't actually linked the words following the double-pipe, which could be the problem.
Here's the code of Template:Unfinished_Links
'''[[Bad Portal]]''' || Add | Links | Like | This
And when it is included as itself, all of those words show up like they're supposed to.
But when it's included as part of the Sitewide table template, that line looks like... (assume the double-pipe is a column divider)
'''[[Bad Portal]]''' || Links | Like | This
It ate the word "Add" and the following pipe. I tried changing it to different words, looked for extra spaces, any tiny syntax error that would cause this.
The only difference I can see is that they are not links yet, but nothing in what I've read of table markup suggests that should make a difference.
I know this is, in general, a brittle solution. The answer could be "just import Navbox from Wikipedia." However I'm pretty new at this and I'm daunted by all the potential debugging and digging into css or javascript that might entail. If I can make this or something similar work Good Enough, I'd like to.
'''[[Bad Portal]]''' || Add <nowiki>|</nowiki> Links <nowiki>|</nowiki> Like <nowiki>|</nowiki> This
?