Template:NameFormat/ShortLongItalicizedConditionallyLinked

From Ultima Codex
Jump to navigation Jump to search

{{{1}}}
Deprecated: Appears to have fallen into disuse and w/good reason. Let's keep it that way. Template:NameFormat/ShortLong seems just as good.

Template that expects input probably to be a game name (short or long), plain (not linked nor italicized and no special character) name ("Ultima IV" or "Ultima IV: Quest of the Avatar"). The returned value will be italicized and embedded with  s where necessary, if it is recognized by Template:NameFormat/ShortLongUnitalicizedUnlinked. If the input is a name of an article, it will also be 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/ShortLongItalicizedConditionallyLinked|Ultima IV}} → Ultima IV
{{NameFormat/ShortLongItalicizedConditionallyLinked|Rocky XXXII}} → Rocky XXXII