Template:Infobox Game: Difference between revisions

Replacing the game length code to try and catch non-standard values and include proper links
(Fix for having non-standard complexity values still show their value but link to unknown)
(Replacing the game length code to try and catch non-standard values and include proper links)
Line 15:
| {{PL|:Time||25px}}
! align=right | Length:
| {{#if: {{{game_length|}}}
| [[Game Length::{{#if: {{{game_length|}}} | Browse_games/{{{game_length}}}_playing_time{{!}}{{{game_length}}} | {{#invoke: Infobox Tools | guess_length | {{{min_playing_time|}}} | {{{max_playing_time|}}} }} }}]]
| {{#switch: {{lc:{{{game_length|}}} }}
| #default = [[Game Length::Browse_games/Unknown_playing_time{{!}}{{#if: {{{game_length|}}} | {{{game_length|}}} | unknown }}]]
| fast|fast?|short|quick = [[Game Length::Browse_games/Fast_playing_time{{!}}{{{game_length}}}]]
| medium|medium? = [[Game Length::Browse_games/Medium_playing_time{{!}}{{{game_length}}}]]
| long|long? = [[Game Length::Browse_games/Long_playing_time{{!}}{{{game_length}}}]]
}}
| [[Game Length::{{#ifswitch: {{{game_length|}}} | Browse_games/{{{game_length}}}_playing_time{{!}}{{{game_length}}} | lc:{{#invoke: Infobox Tools | guess_length | {{{min_playing_time|}}} | {{{max_playing_time|}}} }} }}]]
| #default = [[Game Length::Browse_games/Unknown_playing_time{{!}}unknown]]
| fast|short|quick = [[Game Length::Browse_games/Fast_playing_time{{!}}Fast]]
| medium = [[Game Length::Browse_games/Medium_playing_time{{!}}Medium]]
| long = [[Game Length::Browse_games/Long_playing_time{{!}}Long]]
}}
}}
|-
| {{PL|:Complexity||25px}}