Difference between revisions of "Template:Strange rank name"

From Team Fortress Wiki
Jump to: navigation, search
(Fallback using the basepagename for the (most common) use case of weapon pages.)
m
Line 211: Line 211:
 
}}<!--
 
}}<!--
 
-->{{#if:{{{kills|}}}||[[Category:Strange rank name ERROR|2]]}}<!--
 
-->{{#if:{{{kills|}}}||[[Category:Strange rank name ERROR|2]]}}<!--
--></includeonly><noinclude>
+
--></includeonly><noinclude>{{Documentation}}</noinclude>
{{Doc begin}}
 
This template returns the correct (language-translated and killcount-accurate) strange rank name. For example, a rocket launcher with 750 kills is 'Positively Inhumane'. This is primarily used for {{tl|Backpack item}}.
 
 
 
Pages which misuse this template will be placed into [[:Category:Strange rank name ERROR]].
 
 
 
== Usage ==
 
As this is primarily intended for use with backpack item, it doesn't have complex paramaters.
 
* <code>rankson</code> - The primary switched value, indicates what action causes the strange item to rank up. For example, [[sapper]]s rank up on <code>buildings sapped</code>.
 
* <code>item-name</code> - As a fall-back, when rankson is not provided, we can look up the ranking action for a few known items.
 
* <code>kills</code> - Required, this is used to pick the correct prefix name, as many items have different rank-up thresholds.
 
 
 
== Examples ==
 
{{tlx|Strange rank name/Sandbox|2=rankson=Opponents Flattened|3=kills=100}}
 
{{Strange rank name/Sandbox|rankson=Opponents Flattened|kills=100}}
 
 
 
{{tlx|Strange rank name/Sandbox|2=item-name=Mantreads|3=kills=100}}
 
{{Strange rank name/Sandbox|item-name=Mantreads|kills=100}}
 
 
 
{{tlx|Strange rank name/Sandbox|2=rankson=Opponents Flattened|3=item-name=Gunboats|4=kills=100}}
 
{{Strange rank name/Sandbox|rankson=Opponents Flattened|item-name=Gunboats|kills=100}}
 
 
 
{{tlx|Strange rank name/Sandbox|2=item-name=Gunboats|3=kills=100}}
 
{{Strange rank name/Sandbox|item-name=Gunboats|kills=100}}
 
 
 
</noinclude>
 

Revision as of 01:44, 8 February 2023

Template documentation [view] [edit] [history] [purge]

This template returns the correct (language-translated and killcount-accurate) strange rank name. For example, a rocket launcher with 750 kills is 'Positively Inhumane'. This is primarily used for {{Backpack item}}.

Pages which misuse this template will be placed into Category:Strange rank name ERROR.

Usage

As this is primarily intended for use with backpack item, it doesn't have complex paramaters.

  • rankson - The primary switched value, indicates what action causes the strange item to rank up. For example, sappers rank up on buildings sapped.
  • item-name - As a fall-back, when rankson is not provided, we can look up the ranking action for a few known items.
  • kills - Required, this is used to pick the correct prefix name, as many items have different rank-up thresholds.

Examples

{{Strange rank name|rankson=Opponents Flattened|kills=100}} Face-Flattening

{{Strange rank name|item-name=Mantreads|kills=100}} Face-Flattening

{{Strange rank name|rankson=Opponents Flattened|item-name=Gunboats|kills=100}} Face-Flattening

{{Strange rank name|item-name=Gunboats|kills=100}} Uncharitable

{{Strange rank name|item-name=Gun Mettle Campaign Coin|rankson=Contract Points|kills=0}} (this results in an empty string)  

{{Strange rank name|item-name=Ghastly Gibus|rankson=points scored|kills=0}} Strange