Template:Infobox Game Fancy: Difference between revisions

m
minor fix
imported>Umjahwa
(Added cleaning functions to "other_equip" and "BGG url". Almost good to go!)
imported>Umjahwa
m (minor fix)
Line 31:
|- {{#if: {{{other_equip|}}} | valign=top | style="display: none;" }}
! colspan=2 align=right valign=top | Other equipment:
| {{{other_equip|}}} {{#set:|Other Equipment={{#invoke: Infobox Tools | clean_equip | {{{designerother_equip|unknown}}}}}|+sep=,}}
|- {{#if: {{{setup_time|}}} | | style="display: none;" }}
! colspan=2 align=right valign=top | Setup time:
Line 67:
Change list:
* Added player count, game length, and rule complexity icons
* 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: due to this coding, the box at right does not show all of the available input parameters.
* (hopefully) fixedFixed some of the mapping of input values to semantic properties (hence the creation of this template to test onnow ausing dummyLua gamescripts!)
 
Note: all of the original parameters are included with the exact same variable names as the original infobox. In theory, this template could be swapped with the existing template without breaking anything... however, there is a lot more testing that needs to be done and the design needs to be vetted by the wiki administrators as well as the more senior wiki users. Please do not use this infobox on any of the current game pages.
Line 115:
 
'''''Designer'' => designer'''
:The name of the person who created the game. If Bythat default, the designer's name is assumed to be the titleperson ofhas a page on the icehousegames.org, wiki.you Note:can youenclose shouldthe notname needin to usedouble square brackets to createprovide thea link! to that person's page.
:<pre>designer=<nowiki>Andrew Looney</nowiki></pre>
 
'''''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>
 
'''''(Image)'' => image_link'''
Anonymous user