Template talk:Class infobox

From Team Fortress Wiki
(Redirected from Template talk:Infobox class)
Jump to: navigation, search

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)
Thanks. Unfortunately I'm not very practical with such deep wiki formatting, so if you may direct me to a exhaustive tutorial, I'll be very glad to learn it.--Kid Of The Century 10:54, 20 July 2010 (UTC)
I made a pic to show you how it works. In this example I wanted the site to say "Scout" instead of "Scout/de" (the BASEPAGENAME): click here --Picard 08:46, 30 July 2010 (UTC)
Thanks! Just tried and it works! Again, if you know any source for learning advanced wiki formatting I'll be very glad (and hope I'll bother you less).--Kid Of The Century 09:41, 30 July 2010 (UTC)
Wikipedia is an immense resource to learn this stuff. -- Pilk (talk) 16:42, 30 July 2010 (UTC)

Categorization

Template needs to place articles in Category:Classes/language instead of just dumping them all in Category:Classes. -- Nineaxis Duck Gib.png 23:42, 10 August 2010 (UTC)

Good catch there, Nine. I'll work on it. -- Smashman... (ts) 00:23, 11 August 2010 (UTC)

User pages

This and {{Class bio}} are being used on User pages. I'm going to start putting my foot down. These should only be used on Class pages. So, I'm going to go through the User pages that use these and remove them, and delete any images that they call. -- Smashman... (ts) 00:20, 21 August 2010 (UTC)

Infobox health and speed

My original message on the Talk:Demoman page:
"Just wondering if this variant of the infobox health and speed part may be more informative than the current one. Technically meant for all classes, I posted it here due to the many variables the Demo has.--Kid Of The Century 14:22, 13 August 2010 (UTC)"

I reckon there are many variables on the health nowadays (buffed, with weapon X equipped, buffed + weapon X, etc.) So I'd like to know your thoughts. Is it too much complicated?--Kid Of The Century 08:11, 7 September 2010 (UTC)

Class infobox
Class infobox
Basic Information
Health: 175 / 260
150 / 225 with the Eyelander equipped
225 / 335 with the Eyelander fully charged
Speed: 93%
79% with the Scotsman's Skullcutter equipped
123% with the Eyelander fully charged
I think you would need a better way to indicate that the second value is overhealed, but I like the rest of the changes. -- Pilk (talk) 08:14, 7 September 2010 (UTC)
Thanks. I honestly don't know how to make it clearer. Is the "1" too confusing? Will an asterisk be better? I thought about coloring the overhealed value, but I'm not such a fan of colored text...--Kid Of The Century 08:44, 7 September 2010 (UTC)
Like this maybe? -- Pilk (talk) 08:49, 7 September 2010 (UTC)
"Now that's a fine piece 'a work!". Should I apply the change ASAP or wait for others to comment?--Kid Of The Century 09:08, 7 September 2010 (UTC)
Go right ahead. :) -- Pilk (talk) 09:20, 7 September 2010 (UTC)
Could something like this also be added to "Speed:": Speed: - as there's no clear reference point for those percentages here. -RJackson 09:27, 7 September 2010 (UTC)
More like Speed: xx% / yyyv--Kid Of The Century 10:47, 7 September 2010 (UTC)

I think you should align the 'Health' and 'Speed' labels to the top. So that it's clear what's what.  – Smashman (talk) 09:42, 7 September 2010 (UTC)

Yes, but I'm afraid to mess with the template itself. I could screw all the pages at once.--Kid Of The Century 10:47, 7 September 2010 (UTC)
I'm working on a slight template redesign taking in to consideration Smashman's suggestion. It'll be here when I save it (which I'll do in a few minutes now i've mentioned it). -RJackson 10:55, 7 September 2010 (UTC)

Add voice_actor field?

Every single class appears to have "The <class> is voiced by <voice actor>. What do you guys think of adding a voice_actor field? If you give me the thumbs up, I'll get started when there's been some ample discussion on it. It seems to make much more sense to place it in an infobox than to have it in trivia sections, which we're trying to cut down on anyway. ~ lhavelund (tc) 07:02, 14 October 2010 (UTC)

Pictogram plus.png Support It's useful information found on every class page, no reason not to put it in the infobox. --Subtlefuge 07:05, 14 October 2010 (UTC)
Pictogram plus.png Support I've actually moved all of the voice actor mentions out of the trivia sections and up into the initial summary of the class, but putting it in the infobox would be a much more elegant solution. Conversely, the Bio box might edited instead since it could equally fit in there. --Alex2539 07:17, 14 October 2010 (UTC)
Pictogram plus.png Support Hahaha, I just came here to suggest this. MK 03:29, 8 November 2010 (UTC)
Pictogram plus.png Support Definitely.--Kid Of The Century 11:26, 8 November 2010 (UTC)

I'm wondering now how this will be placed, and what else we can add. Right now the template Basic Information section seems to be reserved for in-game information. Should we be putting the voice actors for every language of the game here? Or would this perhaps be better placed in the bio template? MK 08:47, 17 November 2010 (UTC)

Pictogram plus.png Support I was thinking of this idea. Also include the picture of the voice actor as well? --GeminiViRiS

Hey, a little help here!

Could someone rewrite/fix this part of the code? It does not show what it should for polish articles.

{{!}}-}}
{{#ifexist: File:{{BASEPAGENAME}}VidSplash{{if lang | non-en = _{{SUBPAGENAME}}}}.png | 
! colspan="2" {{!}} {{#switch:{{BASEPAGENAME}}
 | Medic
 | Pyro 
 | #default = <!-- NULL -->
 | Scout
 | Soldier
 | Demoman
 | Heavy
 | Engineer
 | Sniper
 | Spy = [[Meet the {{BASEPAGENAME}}{{if lang}}|{{lang
  | ar = {{Class name|{{BASEPAGENAME}}}} إلتقي ب
  | cs = Meet the {{Class name|{{BASEPAGENAME}}}}
  | de = Der {{Class name|{{BASEPAGENAME}}}} stellt sich vor
  | en = Meet the {{Class name|{{BASEPAGENAME}}}}
  | ja = Meet the {{Class name|{{BASEPAGENAME}}}}
  | ko = {{Class name|{{BASEPAGENAME}}}}를 만나다
  | es = Conoce al {{Class name|{{BASEPAGENAME}}}}
  | fi = Tapaa {{Class name|{{BASEPAGENAME}}}}
  | pl = Poznajcie {{Class name|{{BASEPAGENAME}}}}
  | pt = Conheça o {{Class name|{{BASEPAGENAME}}}}
  | ro = Întâlneşte-l pe {{Class name|{{BASEPAGENAME}}}}
  | ru = Представляем класс {{Class name|{{BASEPAGENAME}}}}
  | sv = Möt {{Classname|{{BASEPAGENAME}}}}
  | zh-hans = 拜见{{Class name|{{BASEPAGENAME}}}}
  | zh-hant = 專訪{{Class name|{{BASEPAGENAME}}}}
  }}]]
}}
{{!}}-
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{BASEPAGENAME}}VidSplash{{if lang | non-en = _{{SUBPAGENAME}}}}.png|300px|link=Meet the {{BASEPAGENAME}}{{if lang}}]]
{{!}}- }}
|}<includeonly>{{#switch:{{NAMESPACE}}
 | User
 | User talk = <!-- null --> 
 | #default = {{#switch:{{lc:{{{game|}}}}}
  | tfc = {{lang cat|Classes (Classic)}}{{lang cat|1={{BASEPAGENAME}}}}
  | #default = {{#ifeq:{{BASEPAGENAME}}|Horseless Headless Horsemann||{{lang cat|Classes}}}}
  }}
 }}</includeonly><noinclude>{{clr}}

Example:

  • "Poznajcie Inżynier" (Meet the Engineer), should be "Poznajcie Inżyniera"
  • "Poznajcie Gruby" (Meet the Heavy), should be "Poznajcie Grubego"

It uses class name template and that is normally correct, but not in this case. I don't know how to fix it, so, skilled editors, please do it, if you can.

This should looks like that (of course without english names between the brackets):

  • "Poznajcie Skauta" (Meet the Scout)
  • "Poznajcie Żołnierza" (Meet the Soldier)
  • "Poznajcie Pyro" (Meet the Pyro)
  • "Poznajcie Demomana" (Meet the Demoman)
  • "Poznajcie Grubego" (Meet the Heavy)
  • "Poznajcie Inżyniera" (Meet the Engineer)
  • "Poznajcie Medyka" (Meet the Medic)
  • "Poznajcie Snajpera" (Meet the Sniper)
  • "Poznajcie Szpiega" (Meet the Spy)
  • "Poznajcie Kanapkę" (Meet the Sandvich) - just in case

-- Szumin (talkcontrib) 19:41, 21 March 2011 (UTC)

Improving TFC/QTF support?

I made a mockup of what I'm proposing. The Template:Item_infobox has support for separate viewmodels in the infobox itself and it looks fairly neat on Nailgun (Classic), for instance. If updated we'd be able to delete some images off of the wiki (that are just combination-images of things we already have separately (File:Scoutclassic.png is just File:Scoutnew_tfc.png and File:Scoutold_tfc.png side by side in the infobox), and it would bring the infobox (as it's used on the TFC pages) more in line style-wise with the TF2 articles. ~Sven~ (talk) 08:11, 9 April 2016 (PDT)

Great idea! The infobox is pretty cluttered, so this might also be a good excuse to clean up some of the QTF/TFC switches in it... or not. Regardless, please post your edit into the Template:Item infobox/Sandbox, and we'll work from there. Darkid (Talk | Contribs) 08:21, 9 April 2016 (PDT)
Whoops, I thought this was a different template! Regardless, you should still sandbox your changes. Here is the correct link. Darkid (Talk | Contribs) 08:24, 9 April 2016 (PDT)
I actually just made my mockup using Paint.Net since the template itself is a bit much to take in all at one time; but I'll be sure to use the sandbox when I get the chance to work through it. But now that you mention it, the item infobox could use some cleaning too (with regards to the QTF/TFC stuff at least). ~Sven~ (talk) 08:59, 9 April 2016 (PDT)