Template:Infobox Game: Difference between revisions

Content added Content deleted
imported>Umjahwa
(Major update using the Infobox_Game_Fancy template (lets hope this works!))
imported>Umjahwa
m (Fixed typos in description text and added implemented clean_theme Lua function)
Line 61: Line 61:
|- {{#if: {{{theme|}}} | | style="display: none;" }}
|- {{#if: {{{theme|}}} | | style="display: none;" }}
! colspan=2 align=right valign=top | Theme:
! colspan=2 align=right valign=top | Theme:
| [[Primary Theme::{{{theme|}}}]]
| [[Primary Theme::{{#invoke: Infobox Tools | clean_theme | {{{theme|}}} }}]]


|- {{#if: {{{BGG_Link|}}} | | style="display: none;" }}
|- {{#if: {{{BGG_Link|}}} | | style="display: none;" }}
Line 74: Line 74:
|}
|}
<noinclude>
<noinclude>
This is a new and improved infobox to accompany the resurrection of the wiki in Nov. of 2016. Every game should have a infobox since the parameters are automatically scanned and added to the game entry in the database. A properly filled out infobox will eventually replace more functionality provided by Categories and will greatly improve the searching and finding of game.
This is a new and improved infobox to accompany the resurrection of the wiki in November of 2016. Every game should have a infobox since the parameters are automatically scanned and added to the game entry in the database. A properly filled out infobox will eventually replace most functionality provided by Categories and will greatly improve the searching and finding of games.


'''Instructions for use of Infobox_Game:'''
'''Instructions for use of Infobox_Game:'''
Line 112: Line 112:
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 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. The order in which the rows are displayed in the infobox is determined by the template. Rearranging the rows of your inputs will have no affect.
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 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. The order in which the rows are displayed in the infobox is determined by the template. Rearranging the rows of your 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 parameter name and the related displayed in the infobox, followed by details about what it represents and exactly what needs to be set.


'''parameter name --> ''Display row in Infobox'''''
'''parameter name --> ''Display row in Infobox'''''
Line 123: Line 123:


'''designer --> replaces ''Designer''''' (REQUIRED)
'''designer --> replaces ''Designer''''' (REQUIRED)
:The name of the person who created the game. If that person has a page on icehousegames.org, you can enclose the name in double square brackets to provide a link to that person's page.
:The name (or names) of the person (or persons) who created the game. If designer has a page on icehousegames.org, you can enclose the name in double square brackets to provide a link to that person's page. Note: you also can link to a user page by typing <nowiki>[[User:USERNAME|display name]]</nowiki>
:<pre>designer=<nowiki>Andrew Looney</nowiki></pre>
:<pre>designer=<nowiki>Andrew Looney</nowiki></pre>


'''image_link --> replaces ''(Image)''''' (optional)
'''image_link --> replaces ''(Image)''''' (optional)
:A link to a small icon or thumbnail-sized image that provides visual information about the game. The first part of this parameter is the name of the image, the second part is the size, and the third part is the mouseover text. It is enclosed in double square brackets.
:A link to a small icon or thumbnail-sized image that provides visual information about the game. The first part of this parameter is the name of the image, the second part is the size, and the third part is the mouseover text. It is enclosed in double square brackets. '''Please do not set the size any larger than 250px!'''
:<pre>image_link=<nowiki>[[Image:Pic76724.jpg|250px|A Zendo game]]</nowiki></pre>
:<pre>image_link=<nowiki>[[Image:Pic76724.jpg|250px|A Zendo game]]</nowiki></pre>


Line 137: Line 137:


'''max_players --> ''Players:''' (right-hand side of dash)'' (optional but highly recommended)
'''max_players --> ''Players:''' (right-hand side of dash)'' (optional but highly recommended)
:The minimum and maximum number of players that can play the game. When both values are provided, they will be seperated by a dash in the "Players" row of the infobox. When only one or the other is given, it will display by itself. For consistency of searching the database, please indicate solitaire or 2-player only games by leaving "min_players" blank and setting "max_players" to the correct value
:The minimum and maximum number of players that can play the game. When both values are provided, they will be separated by a dash in the "Players" row of the infobox. When only one or the other is given, it will display by itself. For consistency of searching the database, please indicate solitaire or 2-player only games by leaving "min_players" blank and setting "max_players" to the correct value
:<pre>min_players=3</pre>
:<pre>min_players=3</pre>
:<pre>max_players=100</pre>
:<pre>max_players=100</pre>


'''game_length --> ''Length:''''' (optional but highly recommended)
'''game_length --> ''Length:''''' (optional but highly recommended)
:Descriptive word for how long it takes to play the game. Please use one of the following: "Fast" (for 5-10 min games, 15 min max), "Medium" (for 10-30 min, 45 min max), and "Long" (for games lasting more than 30+ min)
:Single descriptive word for how long it takes to play the game. Please use one of the following: "Fast" (for 5-10 min games, 15 min max), "Medium" (for 10-30 min, 45 min max), and "Long" (for games lasting more than 30+ min)
:<pre>game_length=Fast</pre>
:<pre>game_length=Fast</pre>


Line 170: Line 170:


'''max_playing_time --> ''Max. Playing time:''''' (optional)
'''max_playing_time --> ''Max. Playing time:''''' (optional)
:The minimum and maximum time required to play the game. Similar to the number of players, these values will be displayed in the same row and seperated with a dash. Please use units of Min. If you are providing both a min and a max, you may wish to omit the units from the min_playing time so the desplay looks cleaner (the database will default to units of min for game searches). Like with setup_time, please do not use text other than the units.
:The minimum and maximum time required to play the game. Similar to the number of players, these values will be displayed in the same row and separated with a dash. Please use units of Min. If you are providing both a min and a max, you may wish to omit the units from the min_playing time so the desplay looks cleaner (the database will default to units of min for game searches). Like with setup_time, please do not use text other than the units.
:<pre>min_playing_time=10 Min</pre>
:<pre>min_playing_time=10 Min</pre>
:<pre>max_playing_time=180 Min</pre>
:<pre>max_playing_time=180 Min</pre>
Line 183: Line 183:


'''game_mechanics --> ''Game Mechanics:''''' (optional)
'''game_mechanics --> ''Game Mechanics:''''' (optional)
:Comma seperated list of words/phrases that describe the mechanics of the game. Typical values include: "Stacking", "Sorting", "Matching", "Elimination", "Area control", etc. Please do not embed wiki links; they will be generated automatically. Also, please try to keep it to a limited list of only the MAJOR mechanics used (for example, don't add "stacking" if the pyramids are only stacked in a common bank for organizational and not gameplay reason
:Comma separated list of words/phrases that describe the mechanics of the game. Typical values include: "Stacking", "Sorting", "Matching", "Elimination", "Area control", etc. Please do not embed wiki links; they will be generated automatically. Also, please try to keep it to a limited list of only the MAJOR mechanics used (for example, don't add "stacking" if the pyramids are only stacked in a common bank for organizational and not gameplay reason
:<pre>game_mechanics=Stacking, Programming</pre>
:<pre>game_mechanics=Stacking, Programming</pre>


Line 191: Line 191:


'''BGG_Link --> ''BGG Link:''''' (optional)
'''BGG_Link --> ''BGG Link:''''' (optional)
:If the game is listed on [http://www.boardgamegeek.com BoardGameGeek], you can include a link to the game's page enclosed in single square brackets. After the link (but still within the brackets), provide the name of the game, which is what the user will click to follow the link. '''IMPORTANT! please do not add your game to BoardGameGeek unless you have playtested it at least a few times and worked out the initial bugs/kinks in the rules.''' No page is better than a page with broken rules.
:If the game is listed on [http://www.boardgamegeek.com BoardGameGeek], you can include a link to the game's page enclosed in single square brackets. After the link (but still within the brackets), provide the name of the game, which is what the user will click to follow the link. '''IMPORTANT! please do not add your game to BoardGameGeek unless you have playtested it at least a few times and worked out the initial bugs/kinks in the rules.''' No BGG page is much better than a page with broken rules.
:<pre>BGG_Link=<nowiki>[http://www.boardgamegeek.com/boardgame/21955 Treehouse]</nowiki></pre>
:<pre>BGG_Link=<nowiki>[http://www.boardgamegeek.com/boardgame/21955 Treehouse]</nowiki></pre>