Pillars of Eternity Wiki
Advertisement
Pillars of Eternity Wiki

The problem with using single quotes for italicisation in templates[]

Just documenting some changes I'm considering adding to all shorthand title templates. Right now to italicise the titles, the templates enclose the name in two single quotes e.g. ''[[name]]''. Doing it this way has issues whenever the template is enclosed in something else that italicises the text, as the parser still takes into account the quotes from the template.

For example:

''This is some text in {{poe2}}''

The user expects:

This is some text in Pillars of Eternity II: Deadfire

But actually gets (Note how the game name is un-italicised, as well as the misplaced trailing single quote):

This is some text in Pillars of Eternity II: Deadfire'

Same thing happens in templates like Template:DisambigMsg, for example:

Disambig.png This article is about something in Pillars of Eternity II: Deadfire. For something, somewhere else, see [[]].

In order to properly format a sentence, the editor is expected to use the following:

''This is some text in'' {{poe2}}
This is some text in Pillars of Eternity II: Deadfire

This effect is obvious - the parser is just doing what it is told. But I think the template should allow itself to be used in whatever situation it's needed in and still maintain italicisation without being influenced by other containers. The usage of single quotes is not immediately obvious to the user, so the formatting should reflect this. An easy fix is to change it to:

<i>[[Pillars of Eternity II: Deadfire]]</i>

Then when using either of the following:

''This is some text in {{poe2}}''
''This is some text in'' {{poe2}}
<i>This is some text in {{poe2}}</i>

It should result in

This is some text in Pillars of Eternity II: Deadfire

This may break instances where the editor has added a "fix" to the article text itself, which makes me a little wary about adding it. For the most part though, it should fix more things than it breaks. So it's a win I guess? Macklin (talk) 09:27, 20 January 2019 (UTC)


Is it expected this way? I always thought, in surrounding italics the title then should use normal styling. I couldn't find anything specific to this on Wikipedia's Manual of Style, only page examples, where e.g. italicized disambiguation headnotes still hold titles in italics, so perhaps I'm wrong. (And I have implemented this feature in so many templates, even started sort of an edit war with Tagaziel on '' vs. <i> … *sigh*) -- UserCCCSig.png -- You talkin' to me? -- cCContributions -- 22:24, 20 January 2019 (UTC)

Wait, so this was intentional? Doesn't make a bit of sense to me if I'm honest, especially since everywhere else we go out of the way to make titles universally in italics. Not to mention it is just plain conflicting with what someone expects to happen when they put their text in double single quotes. What is the intention here? Macklin (talk) 05:18, 21 January 2019 (UTC)
Advertisement