Template talk:!

From Fanlore
Jump to: navigation, search

What is this? I assume it has some purpose, but the template page doesn't explain anything. It looks odd in the template list.--RatCreature 09:41, 20 May 2010 (UTC)

Yes, it does have a purpose. When using the ParserFunctions extension for table fields, using the regular | table markup creates a conflict—the extension works with the if something | something | something syntax, "|" indicating "then" and "else," respectively.

Therefore, if I want to write a line of wiki markup in a fanlore template that means: "if the page that includes this template has a 'fandom=' defined, create a row in the table with 'fandom' on one side and the fandom in question on the other," I will write this:

{{#if: {{{fandom|}}} |
! Fandom {{!}} {{!}} {{{fandom}}}
}}

If I were to write that in regular wiki markup, it would be "! Fandom || {{{fandom}}}", yeah? But if I use "|" it will think I mean "else," which will mess things up. Does that make sense to you? :D --ChristyCorr 16:07, 20 May 2010 (UTC)


Request Usage Note

I see there's an explanation up there, which I don't really understand but that's cool. But right now it's user-hostile, and a bad experience for new editors. I'd like to see an explanation added to the template info, as a usage note like the others. And if it could be forced to sort at the end, that would be even better. That way, the experts can use it and the newbies will almost never see it. --Msilfan (talk) 22:59, 28 January 2017 (UTC)