Anonymous user
Template:Infobox Game Fancy: Difference between revisions
Updated to match the current infobox
imported>Umjahwa m (added forgotten #, Whoops!) |
imported>Umjahwa (Updated to match the current infobox) |
||
(34 intermediate revisions by 2 users not shown) | |||
Line 1:
{| align=right cellpadding=2 width=250 style="margin-left:1em; float:right;" class="toccolours"
|-
! colspan=3 style="background: #ddd;" | <big>[[Name::{{{subject_name|}}}]]<noinclude>Game</noinclude></big>
|-
| colspan=3 align=center style="border-bottom: 1px solid;" |'' {{{designer|unknown}}} {{#set: Designer={{#invoke: Infobox Tools |
|-
| colspan=3 align=center |{{{image_link|}}}<noinclude>(Image)</noinclude>
|-
| colspan=3 align=center style="border-bottom: 1px solid;" | {{{description|}}} {{#set: Description={{#invoke: Infobox Tools | clean_description | {{{description|not given}}} }} }}<noinclude>Description</noinclude>
|-
| style="width: 10%" | {{PL|:Players||25px}}
! style="width: 40%" align=right | Players:
| style="width: 50%" | [[Min
|-
|
! align=right | Length:
| [[Game Length::{{#if: {{{game_length|
|-
|
! align=right | Complexity:
| [[Rules Complexity::{{#if: {{{complexity|
|-
! colspan=2 align=right width="50%" valign=top | Trios per color:
| [[Trios per color::{{#if: {{{trios_per_color|}}} | {{{trios_per_color}}} | {{#invoke: Infobox Tools | guess_trios_per_color | {{{sets|}}} }} }}]]
|-
! colspan=2 align=right valign=top | Number of colors:
| [[Number of colors::{{#if: {{{number_of_colors|}}} | {{{number_of_colors}}} | {{#invoke: Infobox Tools | guess_number_of_colors | {{{stashes|}}} }} }}]]
|- {{#if: {{{trios|}}} | style="display: none;" | style="display: none;" }}
! colspan=2 align=right width="50%" valign=top | Pyramid trios:
| [[Trios::{{{trios|}}}]]
|- {{#if: {{{stashes|}}} | style="display: none;" | style="display: none;" }}
! colspan=2 align=right valign=top | Monochr. stashes:
| [[Stashes::{{{stashes|}}}]]
|- {{#if: {{{sets|}}} | style="display: none;" | style="display: none;" }}
! colspan=2 align=right valign=top | Five-color sets:
| [[Sets::{{{sets|}}}]]
|- {{#if: {{{other_equip|}}} | | style="display: none;" }}
! colspan=3 align=center | - - - - - - Other equipment - - - - - -
|- {{#if: {{{other_equip|}}} | | style="display: none;" }}
| colspan=3 align=center | {{#invoke: Infobox Tools | linkify_equip | {{{other_equip|}}} }} {{#set:|Other Equipment={{#invoke: Infobox Tools | clean_equip | {{{other_equip|}}} }}|+sep=,}}
|- {{#if: {{{setup_time|}}} | | style="display: none;" }}
! colspan=2 align=right valign=top | Setup time:
| [[Setup Time::{{{setup_time|}}}]]
|- {{#if: {{{min_playing_time|}}}{{{max_playing_time|}}} | | style="display: none;" }}
! colspan=2 align=right valign=top | Playing time:
| [[Min
|- {{#if: {{{strategy|}}} | | style="display: none;" }}
! colspan=2 align=right valign=top | Strategy depth:
| [[Strategy Depth::{{{strategy|}}}]]
|- {{#if: {{{random_chance|}}} | | style="display: none;" }}
! colspan=2 align=right valign=top | Random chance:
| [[Random Chance::{{{random_chance|}}}]]
|- {{#if: {{{game_mechanics|}}}{{{mechanic1|}}}{{{mechanic2|}}} | | style="display: none;" }}
! colspan=2 align=right valign=top | Game mechanics:
| {{#invoke: Infobox Tools | linkify_mechs | {{{game_mechanics|}}} | {{{mechanic1|}}} | {{{mechanic2|}}} }} {{#set: |Game Mechanics={{#invoke: Infobox Tools | clean_mechs | {{{game_mechanics|}}} | {{{mechanic1|}}} | {{{mechanic2|}}}}} |+sep=,}}
|- {{#if: {{{theme|}}} | | style="display: none;" }}
! colspan=2 align=right valign=top | Theme:
| [[Primary Theme::{{#invoke: Infobox Tools | clean_theme | {{{theme|}}} }}]]
|- {{#if: {{{BGG_Link|}}} | | style="display: none;" }}
! colspan=2 align=right valign=top | BGG Link:
| {{{BGG_Link|}}} {{#set:BGG Link={{#if: {{{BGG_Link|}}} | {{clean URL | {{{BGG_Link}}} }} | }} }}
|-
! colspan=3 valign=top style="border-bottom: 1px solid;" |
|-
| colspan=3 valign=top style="font-size: x-small"| '''Status:''' [[Status::{{{game_status|complete?}}}]] (v[[Version Num::{{{version_num|1.0}}}]]), '''Year released:''' [[Year::{{{release_year|2987}}}]]
|-
| colspan=3 valign=top style="display: none;"| {{#set: Language={{{language|English}}} }}
|-
| colspan=3 valign=top | {{{footnotes|}}}<noinclude>Footnotes</noinclude>
|}
<noinclude>
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.
This infox box replaced the old box on Nov. 12, 2016. This page has been kept for testing purposes (for now).
Change list:
* Added player count, game length, and rule complexity icons
* Added options for "
* Compressed min & max
* Now powered by ParserFunctions and Lua!
** Omitted or empty parameters will be automatically hidden. (looks cleaner)
** 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).
** "other_equip" and "game_mechanics" automatically generate links to the related wiki pages (easier browsing)
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.
'''Instructions for use of Infobox_Game:'''
To display a game
<pre><nowiki>
{{Infobox_Game
| subject_name=
| designer=
| image_link=
| description=
Line 89 ⟶ 114:
| game_length=
| complexity=
| trios_per_color=
| number_of_colors=
| other_equip=
| setup_time=
Line 98 ⟶ 122:
| strategy=
| random_chance=
| game_mechanics=
| theme=
| BGG_Link=
| game_status=
| version_num=
| release_year=
| language=English
| footnotes=
}}
</nowiki></pre>
Each keyword on the left is used to fill in the appropriate section of the
The following list describes how to set all the values in the info box, from top to bottom. It lists the
'''parameter name --> ''Display row in Infobox'''''
'''subject_name --> replaces ''Game''''' (REQUIRED)
:The name of the game.
:<pre>subject_name=Zendo</pre>
'''designer --> replaces ''Designer''
:The name (or names) of the person (or persons) who created the game. If
:<pre>designer=<nowiki>Andrew Looney</nowiki></pre>
'''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. '''Please do not set the size any larger than 250px!'''
:<pre>image_link=<nowiki>[[Image:Pic76724.jpg|250px|A Zendo game]]</nowiki></pre>
'''description --> replaces ''Description''
:A very brief explanation (
:<pre>description=A fast-paced, multiplayer game with a 'Treasure Hunter' theme that is played on a checker board.</pre>
'''min_players --> ''Players:''' (left-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 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>max_players=100</pre>
'''game_length --> ''Length:''
:
:<pre>game_length=Fast</pre>
'''complexity --> ''Complexity''
:The relative complexity
:<pre>complexity=Simple</pre>
'''trios --> ''Pyramid trios:''''' (optional but highly recommended)
'''stashes --> ''Icehouse stashes:''
'''sets --> ''Treehouse sets:''
:The minimum number pyramids needed to play the game. Each parameter denotes a different method of counting pyramids. "Trios" indicates a single set of one small, medium, and large pyramid or the same color. A "Icehouse stash" is 5 pyramids of each size, all of the same color (i.e. 5 trios). A "Treehouse set" is 5 trios, each of a ''different'' color (often called "Rainbow" or "Xeno" stashes). You are free to use whichever parameter makes the most sense for your game. However, so as to avoid confusion, '''please use only one of the three parameters and leave the other two blank!'''
:<pre>trios=3</pre>
:<pre>stashes=1 per player</pre>
:<pre>sets=2</pre>
'''other_equip --> ''Other equipment:''
:A comma separated list of any equipment, other than the pyramids, which is required to play the game. Additional equipment that is often used with Icehouse pyramid games include: D6 dice, Playing cards, Poker chips, Martian Coasters, Treehouse dice, Chessboard, etc. Please do not embed wiki links to the component category pages! This infobox is intelligent and will generate links automatically as long as you use standard terms and capitalize the first word or a component name (e.g. use Chessboard, not chessboard or chess board).
:<pre>other_equip=Six D10 dice, two decks of
'''setup_time --> ''Setup time:''
:How much time is required to arrange the game pieces or complete other processes, such as
:<pre>setup_time=5 Min</pre>
'''min_playing_time --> ''Min. Playing time:''
'''max_playing_time --> ''Max. Playing time:''
: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>max_playing_time=180 Min</pre>
'''strategy --> ''Strategy depth:''
:The level of strategy that can be developed to increase a player's chance of winning the game. Suitable values for this parameter are: "None", "Low", "Medium", or "High". A game like Chess can be described as having a high level of strategy, whereas a game that involves nothing more than rolling a die and moving the number of spaces indicated is described as having no strategy.
:<pre>strategy=Low</pre>
'''random_chance --> ''Random chance:''
:A somewhat subjective rating of the amount of random chance involved in playing the game. Suitable values for this parameter are: "None", "Low", "Medium", and "High". A game that requires rolling a die, flipping a coin, spinning a wheel, or drawing a card to determine a player's options will have increasingly higher levels of randomness. Games that rely strictly on player moves, like Chess, would be described as having no randomness.
:<pre>random_chance=Medium</pre>
'''game_mechanics --> ''Game Mechanics:''''' (optional)
:
:<pre>
'''theme --> ''Theme:''''' (optional)
:A single word or phrase that describes the theme of the game. Common themes include: "War", "Space", "Role Playing", "Farming", "Nature", etc. A game that has no apparent theme, such as Tic-Tac-Toe (Noughts and Crosses), is considered "Abstract" and can be labeled as such.
:<pre>theme=Underwater Adventure</pre>
'''BGG_Link --> ''BGG Link:''
: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>
'''game_status --> ''Status:''''' (optional but highly recommended)
:The development status of your game. Please use one of the following: "Initial design", "Playtesting", Nearly Complete", or "Complete".
:<pre>footnotes=game_status=Playtesting</pre>
'''version_num --> ''(v#.##)''''' (optional)
:Version number of your ruleset. This can help people deduce if the rules have changed since the last time they have looked at the game page.
:<pre>footnotes=version_num=2.1</pre>
'''release_year --> ''Year released''''' (optional but highly recommended)
:The year in which you first posted the game online (or finally finished major changes to the rules). Please use the current year when posting your game for the first time, even if you have been playing it privately with family and friends for years.
:<pre>release_year=2016</pre>
'''footnotes --> ''Footnotes''''' (optional)
:Any other information that may be of interest to a person who is scanning through infoboxes of many games and does not want to read the entire game description page. For example: "won 2nd place in the XYZ game design contest". Please be responsible and don't add paragraphs of text
:<pre>footnotes=This game was played by Neil Armstrong and Buzz Aldrin during the Apollo 11 moon-landing mission.</pre>
</noinclude>
|