Template:Retitle/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(Created page with "'''{{tlx|{{PAGENAME}}}}''' is a template that allows you to change the way a page title is displayed. For ordinary story titles, you should be using {{tlx|title dab away}}, i...")
 
(Added a description of the new functionality of support for other namespaces. Also, The Doctor no longer uses a quoted title, if that's the same page this was talking about, so changed this to another example.)
Tags: Mobile edit Mobile web edit
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''{{tlx|{{PAGENAME}}}}''' is a template that allows you to change the way a page title is displayed.  For ordinary story titles, you should be using {{tlx|title dab away}}, instead, as that template automatically handles proper italicisation for you.  This template is for those cases where something ''other'' that simple italicisation of the part of the title before the ([[dab term]]) is required.  Most often, this means that you want to be able to put the page title in quotation marks, as is done at "[[the Doctor]]" and "[[River Song]]".  
'''{{tlx|{{PAGENAME}}}}''' is a template that allows you to change the way a page title is displayed.  For ordinary story titles, you should be using {{tlx|title dab away}}, instead, as that template automatically handles proper italicisation for you.  This template is for those cases where something ''other'' that simple italicisation of the part of the title before the ([[dab term]]) is required.  Most often, this means that you want to be able to put the page title in quotation marks, as is done at "[[Twist at the End]]".  


Usage is straightforward:
Usage is straightforward:
<pre>{{retitle|"{{PAGENAME}}"}}</pre> would put the PAGENAME in visible quotation marks.  
<pre>{{retitle|"{{PAGENAME}}"}}</pre> would put the PAGENAME in visible quotation marks.  
But it can also be done useful when italicising only ''part'' of a title, as in this case:
<pre>{{retitle|SS ''Bernice''}}</pre>
To use this template in a namespace other than the main one, set the first parameter to '''any value''' and the ''second'' parameter to the display title, like so: <pre>{{retitle|Talk|SS ''Bernice''}}</pre>
== Under the hood ==
Although this template has some commonality with the old {{tlx|title}} template, it is powered quite differently under the hood.  It uses <nowiki>{{DISPLAYTITLE}}</nowiki> at its core, and therefore will not cause issues with SEO or the MyWikia app like that older template.


<noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude>
<noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 17:37, 18 May 2024

{{Retitle/doc}} is a template that allows you to change the way a page title is displayed. For ordinary story titles, you should be using {{title dab away}}, instead, as that template automatically handles proper italicisation for you. This template is for those cases where something other that simple italicisation of the part of the title before the (dab term) is required. Most often, this means that you want to be able to put the page title in quotation marks, as is done at "Twist at the End".

Usage is straightforward:

{{retitle|"{{PAGENAME}}"}}

would put the PAGENAME in visible quotation marks.

But it can also be done useful when italicising only part of a title, as in this case:

{{retitle|SS ''Bernice''}}

To use this template in a namespace other than the main one, set the first parameter to any value and the second parameter to the display title, like so:

{{retitle|Talk|SS ''Bernice''}}


Under the hood[[edit source]]

Although this template has some commonality with the old {{title}} template, it is powered quite differently under the hood. It uses {{DISPLAYTITLE}} at its core, and therefore will not cause issues with SEO or the MyWikia app like that older template.