Difference between revisions of "Template talk:Class infobox"

From Team Fortress Wiki
Jump to: navigation, search
m (DISPLAYTITLE instead of BASEPAGENAME)
Line 3: Line 3:
 
:Create a new template for your language (eg: [[Template:Infobox_class/es]] for the spanish version), copy this templates source code and change the {{blockquote|<nowiki>! colspan="2" | {{#if:{{{title|}}} | {{{title}}} | {{#titleparts:{{BASEPAGENAME}}|1}}}}</nowiki>}}
 
:Create a new template for your language (eg: [[Template:Infobox_class/es]] for the spanish version), copy this templates source code and change the {{blockquote|<nowiki>! colspan="2" | {{#if:{{{title|}}} | {{{title}}} | {{#titleparts:{{BASEPAGENAME}}|1}}}}</nowiki>}}
 
:into
 
:into
:{{blockquote|<nowiki>! colspan="2" | {{#if:{{{title|}}} | {{{title}}} | {{#titleparts:{{classname}}|1}}}}</nowiki>}}
+
:{{blockquote|<nowiki>! colspan="2" | {{#if:{{{title|}}} | {{{title}}} | {{#titleparts:{{{classname}}}|1}}}}</nowiki>}}
 
:and add  
 
:and add  
 
:{{blockquote|<nowiki>classname=Esploratore</nowiki>}}
 
:{{blockquote|<nowiki>classname=Esploratore</nowiki>}}
 
: to the informations --[[User:Picard|Picard]] 16:02, 18 July 2010 (UTC)
 
: to the informations --[[User:Picard|Picard]] 16:02, 18 July 2010 (UTC)

Revision as of 16:13, 18 July 2010

DISPLAYTITLE instead of BASEPAGENAME

Hi, I'd like to find a way to show the page's displayed title instead of the base page name in this template. Basically I'm translating the Scout's page and I set the displayed title as "Esploratore". Unfortunately the template still uses the original base name of the page "Scout". Is there any way to modify it? --Kid Of The Century 22:15, 14 July 2010 (UTC)

Create a new template for your language (eg: Template:Infobox_class/es for the spanish version), copy this templates source code and change the
! colspan="2" | {{#if:{{{title|}}} | {{{title}}} | {{#titleparts:{{BASEPAGENAME}}|1}}}}
into
! colspan="2" | {{#if:{{{title|}}} | {{{title}}} | {{#titleparts:{{{classname}}}|1}}}}
and add
classname=Esploratore
to the informations --Picard 16:02, 18 July 2010 (UTC)