Template:Infobox Game Fancy: Difference between revisions
Content added Content deleted
imported>Umjahwa m (Experimenting with designer and other_equp parameters) |
imported>Umjahwa m (Minor tweaks and fixes) |
||
Line 3: | Line 3: | ||
! colspan=3 style="background: #ddd;" | <big>[[Name::{{{subject_name|}}}]]<noinclude>Game</noinclude></big> |
! colspan=3 style="background: #ddd;" | <big>[[Name::{{{subject_name|}}}]]<noinclude>Game</noinclude></big> |
||
|- |
|- |
||
| colspan=3 align=center style="border-bottom: 1px solid;" |'' {{#if: {{{username|}}} | [[User:{{{username|}}}|{{{designer|}}}]] |
| colspan=3 align=center style="border-bottom: 1px solid;" |'' {{#if: {{{username|}}} | [[User:{{{username|}}}|{{{designer|}}}]] | [[{{{designer|}}}]]}} {{#set: Designer={{{designer|}}}}}<noinclude>Designer</noinclude>'' |
||
|- |
|- |
||
| colspan=3 align=center |{{{image_link|}}}<noinclude>(Image)</noinclude> |
| colspan=3 align=center |{{{image_link|}}}<noinclude>(Image)</noinclude> |
||
Line 11: | Line 11: | ||
| style="width: 10%" | [[Image:SymbolPlayers.png|25px]] |
| style="width: 10%" | [[Image:SymbolPlayers.png|25px]] |
||
! style="width: 40%" align=right | Players: |
! style="width: 40%" align=right | Players: |
||
| style="width: 50%" | [[Min. Players::{{{min_players|}}}]] {{#if: {{{min_players|}} | {{#if: {{{max_players|}}} | - }}}} [[Max. Players::{{{max_players|}}}]] |
| style="width: 50%" | [[Min. Players::{{{min_players|}}}]] {{#if: {{{min_players|}}} | {{#if: {{{max_players|}}} | - }}}} [[Max. Players::{{{max_players|}}}]] |
||
|- |
|- |
||
| [[Image:SymbolTime.png|25px]] |
| [[Image:SymbolTime.png|25px]] |
||
Line 29: | Line 29: | ||
! colspan=2 align=right valign=top | Treehouse sets: |
! colspan=2 align=right valign=top | Treehouse sets: |
||
| [[Sets::{{{sets|}}}]] |
| [[Sets::{{{sets|}}}]] |
||
|- {{#if: {{{other_equip|}}} | valign=top | style="display: none;" }} |
|||
|- valign=top |
|||
! colspan=2 align=right valign=top | Other equipment: |
! colspan=2 align=right valign=top | Other equipment: |
||
| {{{other_equip|}}} {{#set:|Other Equipment={{{other_equip|}}}|+sep=,}} |
| {{{other_equip|}}} {{#set:|Other Equipment={{{other_equip|}}}|+sep=,}} |
||
Line 69: | Line 69: | ||
* Added options for "username", "game_length", and "trios" |
* 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) |
* 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: |
* 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) fixed some of the mapping of input values to semantic properties (hence the creation of this template to test on a dummy game) |
* (hopefully) fixed some of the mapping of input values to semantic properties (hence the creation of this template to test on a dummy game) |
||
Line 119: | Line 119: | ||
'''''NOT_SHOWN'' => username''' |
'''''NOT_SHOWN'' => username''' |
||
: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. |
:(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> |
:<pre>username=<nowiki>eeyore</nowiki></pre> |
||