Template:Italic title: Difference between revisions

From Terraria Wiki
Jump to navigation Jump to search
Westgrass bot (talk | contribs)
m ({{language info}} en=?)
m (Displaytitle handling is now handled by {{common}} which should be present on off-wiki language wikis as well.)
 
Line 1: Line 1:
<includeonly><!--
<includeonly><!--


-->{{#vardefine:__global__is_italic_title|y}}<!-- used by
-->{{#vardefine:__global__is_italic_title|y}}<!-- used by {{common}}


-->{{#if:{{#or:{{langList|isOffWiki|{{lang|}}}}|{{bool|{{{force|}}}}}}}|<!-- if we're on an own language wiki, or if $force is set to a positive value
-->{{#if:{{bool|{{{force|}}}}}|<!--
-->{{DISPLAYTITLE:{{#ifeq:{{NAMESPACENUMBER}}|0||{{NAMESPACE}}:}}<i>{{PAGENAME}}</i>}}<!-- don't italicize the namespace
-->{{DISPLAYTITLE:{{#ifeq:{{NAMESPACENUMBER}}|0||{{NAMESPACE}}:}}<i>{{PAGENAME}}</i>}}<!-- don't italicize the namespace
-->}}<!--
-->}}<!--

Latest revision as of 18:15, 24 June 2022

Template-info.svg Documentation The documentation below is transcluded from Template:Italic title/doc. (edit | history)

Put this template at the top of a page to make the page's title appear in italics. The namespace will not be italicized.

Usage

ParameterDescriptionTypeStatus
Force italicsforce
By default, the template will only work if there is also a {{common}} template call on the page (which should be the case for every mainspace article). Use this parameter to force an italic title even if {{common}} is not called.
Auto value:
True (1/y/yes)
Boolean
optional