Difference between revisions of "Template:Strange rank name"

From Team Fortress Wiki
Jump to: navigation, search
m (Growing unconvinced that this is the right play. Let's see.)
m (Allow two empties, add a bunch more values.)
Line 185: Line 185:
 
   | nothing = {{ns:0}}
 
   | nothing = {{ns:0}}
  
   | kills | ubers | heads taken | sodden victims | sentry kills | wrangled sentry kills =
+
   | kills | ubers | heads taken | sodden victims | sentry kills | wrangled sentry kills | banners deployed | food items eaten | deaths feigned | humiliations | sodden victims | kill assists | spies shocked =
 
     {{#ifexpr: 0 <= {{{kills}}} and {{{kills}}} < 10 | {{Item name|strange-rank}}}}
 
     {{#ifexpr: 0 <= {{{kills}}} and {{{kills}}} < 10 | {{Item name|strange-rank}}}}
 
     {{#ifexpr: 10 <= {{{kills}}} and {{{kills}}} < 25 | {{Item name|Unremarkable}}}}
 
     {{#ifexpr: 10 <= {{{kills}}} and {{{kills}}} < 25 | {{Item name|Unremarkable}}}}
Line 211: Line 211:
 
}}<!--
 
}}<!--
 
-->{{#if:{{{kills|}}}||[[Category:Strange rank name ERROR|2]]}}<!--
 
-->{{#if:{{{kills|}}}||[[Category:Strange rank name ERROR|2]]}}<!--
-->{{#if:{{{rankson|{{{item-name|}}}}}}||[[Category:Strange rank name ERROR|3]]}}<!--
 
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>
 
{{Doc begin}}
 
{{Doc begin}}

Revision as of 14:45, 30 November 2021

Documentation for Strange rank name

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/Sandbox|rankson=Opponents Flattened|kills=100}} Face-Flattening

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

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

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