Template talk:EMChar

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search

"stock(s)"[edit]

I'm not the greatest at wikicode, so I'm wondering if anyone else would know a way to make the template not always say "stock(s)" and instead say "1 stock" or "2+ stocks." Constantly seeing "stock(s)" clutters up the cells and pages with too many unnecessary characters. DarkFox01DF01Sig.pngThe Loquacious 01:15, June 7, 2021 (EDT)

Replacing stock(s) with something like stock{{#ifeq:{{{stocks}}}|1||s}} should work. It'll compare the {{{stocks}}} parameter with 1, output nothing if they are equal, and output a plural s otherwise. The Wikipedia Help:Conditional expressions page has more information on the subject. NokiiSig.png Nokii — 01:56, June 7, 2021 (EDT)