Difference between revisions of "Template:Achievement name"

From Team Fortress Wiki
Jump to: navigation, search
m (Replaced with more standard text, replaced invalid template generation with link that looks identical instead to prevent it from being on a bunch of lists)
m (Clarify this also work with class names)
 
(2 intermediate revisions by 2 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...}}
 
<br><br>
 
Achivements that contain a colon '''must''' be replaced with a hyphen:
 
<br>
 
* '''Correct:''' <code><nowiki>{{Achievement name|Halloween|Carnival of Carnage: Step Right Up}}</nowiki></code> generates [[Template:Dictionary/achievements/halloween/carnival of carnage: step right up-title]]
 
* '''Incorrect:''' <code><nowiki>{{Achievement name|Halloween|Carnival of Carnage- Step Right Up}}</nowiki></code> generates {{Achievement name|Halloween|Carnival of Carnage- Step Right Up}}
 
 
 
=== 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]]). A <code>pack</code> is anything that comes after <code>achievements/</code> in the dictionary page (e.g. <code>Template:Dictionary/achievements/halloween</code>).
+
;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.
 
;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