Template:Infobox Game Fancy: Difference between revisions

m
Started cleaning up the user-readable text
imported>Umjahwa
(guessing game length is working!)
imported>Umjahwa
m (Started cleaning up the user-readable text)
Line 63:
Change list:
* Added player count, game length, and rule complexity icons
* Added options for "game_length" and, "trios", "game_mechanics", "game_status", & "release_year"
* Compressed min & max playersplayer 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)
* Now powered by ParserFunctions and Lua!
* 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.
** Omitted or empty parameters will be automatically hidden. (looks cleaner)
* Fixed some of the mapping of input values to semantic properties (now using Lua scripts!)
** Lua scripts are used to intelligently read certain data rows. (fixes processing errors)
** "designer", "other_equip", & "game_mechanics" can now accept comma separated lists that will be split into separate multiple values of the same semantic property (better for searching).
 
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 72 ⟶ 74:
'''Infobox_Game_Fancy''' instructions:
 
To display a game info boxinfobox on a game entry, enter the following code intoat the very top of the page:
 
<pre><nowiki>
Line 94 ⟶ 96:
| strategy=
| random_chance=
| game_mechanics=
| mechanic1=
| mechanic2=
Line 104 ⟶ 107:
</nowiki></pre>
 
Each keyword on the left is used to fill in the appropriate section of the info boxinfobox. Please Enterenter theyour valuevalues directly after the equal sign (=) andon separateeach individualrow. parametersFeel withfree ato verticalleave bar,some orof pipethe parameters blank (|as indicated below). If Thea orderparameter inis whichomitted or left blank, the parametersrelated arerow enteredof doesthe infobox will not matterbe displayed. Note: Somedue parametersto canthis be omittedbehavior, andnot all data rows are shown in the valuesexample willinfobox beon this page. order in which data is displayed asin the infobox is determined by the template. Rearranging the rows of you inputs will have no blanksaffect.
 
The following list describes how to set all the values in the info box, from top to bottom. It lists the value to be set and the parameter used to set it, followed by details about what it represents and exactly what needs to be set. [Note: some new parameters are not listed below. This list will be updated and reformatted in the future.]
 
'''''Game'' => subject_name'''
Anonymous user