Difference between revisions of "Template:Achievement name"

From Team Fortress Wiki
Jump to: navigation, search
m
m (Clarify this also work with class names)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly>{{Dictionary/achievements/{{lc:{{{1|}}}}}/{{lc:{{{2|}}}}}-title}}</includeonly><noinclude>{{doc begin}}
 
<includeonly>{{Dictionary/achievements/{{lc:{{{1|}}}}}/{{lc:{{{2|}}}}}-title}}</includeonly><noinclude>{{doc begin}}
=== Example ===
 
<code><nowiki>{{Achievement name|General|With Friends Like These...}}</nowiki></code> generates {{Achievement name|General|With Friends Like These...}}
 
 
 
=== Syntax ===
 
=== Syntax ===
 
<code><nowiki>{{Achievement name|pack|achievement}}</nowiki></code>
 
<code><nowiki>{{Achievement name|pack|achievement}}</nowiki></code>
  
;pack: The '''English''' name of the pack (see [[Template:Dictionary]])
+
;pack: The '''English''' name of the pack. A <code>pack</code> is anything that comes after <code>achievements/</code> in the [[Template:Dictionary|dictionary]] (e.g. <code>Template:Dictionary/achievements/halloween</code>) or the name of a class. Colons in achievement names '''must''' be replaced with a hyphen.
;achievement: The '''English''' name of the achievement (comas must be replaced with dashes)
+
;achievement: The '''English''' name of the achievement.
 +
 
 +
=== Examples ===
 +
* <code><nowiki>{{Achievement name|General|With Friends Like These...}}</nowiki></code> generates {{Achievement name|General|With Friends Like These...}}
 +
* <code><nowiki>{{Achievement name|Scout|Artful Dodger}}</nowiki></code> generates {{Achievement name|Scout|Artful Dodger}}
 +
* <code><nowiki>{{Achievement name|Halloween|Carnival of Carnage- Step Right Up}}</nowiki></code> generates {{Achievement name|Halloween|Carnival of Carnage- Step Right Up}}
  
 
[[Category:Template dictionary|Achievement]]</noinclude>
 
[[Category:Template dictionary|Achievement]]</noinclude>

Latest revision as of 16:06, 5 February 2023

Documentation for Achievement name

Syntax

{{Achievement name|pack|achievement}}

pack
The English name of the pack. A pack is anything that comes after achievements/ in the dictionary (e.g. Template:Dictionary/achievements/halloween) or the name of a class. Colons in achievement names must be replaced with a hyphen.
achievement
The English name of the achievement.

Examples

  • {{Achievement name|General|With Friends Like These...}} generates With Friends Like These...
  • {{Achievement name|Scout|Artful Dodger}} generates Artful Dodger
  • {{Achievement name|Halloween|Carnival of Carnage- Step Right Up}} generates Carnival of Carnage: Step Right Up