Template:Infobox Game Fancy: Difference between revisions

m
Minor tweaks and fixes
imported>Umjahwa
m (Experimenting with designer and other_equp parameters)
imported>Umjahwa
m (Minor tweaks and fixes)
Line 3:
! colspan=3 style="background: #ddd;" | <big>[[Name::{{{subject_name|}}}]]<noinclude>Game</noinclude></big>
|-
| colspan=3 align=center style="border-bottom: 1px solid;" |'' {{#if: {{{username|}}} | [[User:{{{username|}}}|{{{designer|}}}]]{{#set: Designer=User:{{{username|}}}}} | [[{{{designer|}}}]]}} {{#set: Designer={{{designer|}}}}} }}<noinclude>Designer</noinclude>''
|-
| colspan=3 align=center |{{{image_link|}}}<noinclude>(Image)</noinclude>
Line 11:
| style="width: 10%" | [[Image:SymbolPlayers.png|25px]]
! style="width: 40%" align=right | Players:
| style="width: 50%" | [[Min. Players::{{{min_players|}}}]] {{#if: {{{min_players|}}} | {{#if: {{{max_players|}}} | - }}}} [[Max. Players::{{{max_players|}}}]]
|-
| [[Image:SymbolTime.png|25px]]
Line 29:
! colspan=2 align=right valign=top | Treehouse sets:
| [[Sets::{{{sets|}}}]]
|- {{#if: {{{other_equip|}}} | valign=top | style="display: none;" }}
|- valign=top
! colspan=2 align=right valign=top | Other equipment:
| {{{other_equip|}}} {{#set:|Other Equipment={{{other_equip|}}}|+sep=,}}
Line 69:
* Added options for "username", "game_length", and "trios"
* Compressed min & max players count and min and max playing time to single lines separated by a dash when both variables are defined (note: the variables are still mapped to separate properties, only the infobox display is different)
* Added logic to hide most lines when the parameter is left blank (should look cleaner and work better on mobile browsers). Note: dodue to this coding, the box at right does not show all of the available input parameters.
* (hopefully) fixed some of the mapping of input values to semantic properties (hence the creation of this template to test on a dummy game)
 
Line 119:
 
'''''NOT_SHOWN'' => username'''
:(optional) If the designer as a user account on the icehousegames.org wiki, you can indicate it here so as to (hopefully) redirect the link correctly. Note: this feature is currently under testing.
:<pre>username=<nowiki>eeyore</nowiki></pre>
 
Anonymous user