Template:Infobox Game Fancy: Difference between revisions

Content added Content deleted
imported>Umjahwa
(guessing game length is working!)
imported>Umjahwa
m (Started cleaning up the user-readable text)
Line 63: Line 63:
Change list:
Change list:
* Added player count, game length, and rule complexity icons
* Added player count, game length, and rule complexity icons
* Added options for "game_length" and "trios"
* Added options for "game_length", "trios", "game_mechanics", "game_status", & "release_year"
* 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)
* Compressed min & max player count and min & 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.
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: Line 74:
'''Infobox_Game_Fancy''' instructions:
'''Infobox_Game_Fancy''' instructions:


To display a game info box on a game entry, enter the following code into the page:
To display a game infobox on a game entry, enter the following code at the very top of the page:


<pre><nowiki>
<pre><nowiki>
Line 94: Line 96:
| strategy=
| strategy=
| random_chance=
| random_chance=
| game_mechanics=
| mechanic1=
| mechanic1=
| mechanic2=
| mechanic2=
Line 104: Line 107:
</nowiki></pre>
</nowiki></pre>


Each keyword on the left is used to fill in the appropriate section of the info box. Enter the value directly after the equal sign (=) and separate individual parameters with a vertical bar, or pipe (|). The order in which the parameters are entered does not matter. Some parameters can be omitted, and the values will be displayed as blanks.
Each keyword on the left is used to fill in the appropriate section of the infobox. Please enter your values directly after the equal sign (=) on each row. Feel free to leave some of the parameters blank (as indicated below). If a parameter is omitted or left blank, the related row of the infobox will not be displayed. Note: due to this behavior, not all data rows are shown in the example infobox on this page. order in which data is displayed in the infobox is determined by the template. Rearranging the rows of you inputs will have no affect.


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.
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'''
'''''Game'' => subject_name'''