Template:NameFormat/Short

From Ultima Codex
Jump to navigation Jump to search

{{{1}}}
Was deprecated for a short time, but it's actually useful for treating game names as tokens. However, Template:NameFormat/ShortLongItalicizedConditionallyLinked may still be better, since it processes both short and long names.

Template that expects input to be a short, plain (not linked nor italicized and no special character) name ("Ultima IV" and not "Ultima IV: Quest of the Avatar"). The returned value will be linked, italicized and embedded with  s where necessary, if the input is recognized. Otherwise, the return will only be italicized and linked.
This template should probably only be nested in other templates. It maybe useful for template fields which are typically formatted with a certain type of input.

Usage[edit]

{{NameFormat/Short|Ultima IV}} → Ultima IV
{{NameFormat/Short|The Savage Empire}} → The Savage Empire
{{NameFormat/Short|Savage Empire}} → Savage Empire