Difference between revisions of "Template:Infobox wargame"

From blackwiki
Jump to navigation Jump to search
imported>GraemeLeggett
(didn't work)
imported>GraemeLeggett
(overhaul code)
Line 1: Line 1:
 
{| class="infobox" style="font-size:95%;width:24em;"
 
{| class="infobox" style="font-size:95%;width:24em;"
 
|-  
 
|-  
! colspan="2" style="background:palegreen;font-size:larger;text-align:center;" | {{{title|{{{subject_name|{{PAGENAME}}}}}}}}{{#if:{{{subtitle|}}}|<br /><small>{{{subtitle}}}</small>|}}
+
! colspan="2" style="background:#ddd;font-size:larger;text-align:center;" | {{{title|{{{subject_name|{{PAGENAME}}}}}}}}{{#if:{{{subtitle|}}}|<br /><small>{{{subtitle}}}</small>|}}
|-
 
| colspan="2" style="text-align: center; font-size: smaller; border-bottom: 1px solid #aaa;" |{{#if:{{{image|}}}|[[Image:{{{image}}}|200px]]{{#if:{{{image_caption|}}}|{{#if:{{{image_link|}}}|<br>|}}{{{image_caption}}}|}}|}}{{#if:{{{image_link|}}}|{{{image_link}}}{{#if:{{{image_caption|}}}|{{#if:{{{image_link|}}}|<br>|}}{{{image_caption}}}|}}|}}
 
 
|-
 
|-
 +
| colspan="2" style="text-align: center; border-bottom: 1px solid #aaa;" |{{{image_link}}}{{#if:{{{image_caption|}}}|{{#if:{{{image_link|}}}|<br>|}}{{{image_caption}}}|}}
 +
|-
 +
{{#if:{{{manufacturer|}}}|<tr><th>Manufacturer</th><td nowrap>{{{manufacturer}}}</td></tr>|}}
 
{{#if:{{{designer|}}}|<tr><th>Designer</th><td nowrap>{{{designer}}}</td></tr>|}}
 
{{#if:{{{designer|}}}|<tr><th>Designer</th><td nowrap>{{{designer}}}</td></tr>|}}
<tr><th>Manufacturer</th><td nowrap>{{{manufacturer}}}</td></tr>
+
{{#if:{{{illustrator|}}}|<tr><th>Illustrator</th><td nowrap>{{{illustrator}}}</td></tr>|}}
 
{{#if:{{{publisher|}}}|<tr><th>Publisher</th><td nowrap>{{{publisher}}}</td></tr>|}}
 
{{#if:{{{publisher|}}}|<tr><th>Publisher</th><td nowrap>{{{publisher}}}</td></tr>|}}
{{#if:{{{illustrator|}}}|<tr><th>Illustrator</th><td nowrap>{{{illustrator}}}</td></tr>|}}
+
{{#if:{{{years|}}}|<tr><th>Years active</th><td nowrap>{{{years}}}</td></tr>|}}
{{#if:{{{years|}}}|<tr><th>Years&nbsp;active</th><td nowrap>{{{years}}}</td></tr>|}}
+
! Players
 +
| {{{players}}}
 +
{{#if:{{{ages|}}}|<tr><th>Age range</th><td>{{{ages}}}</td></tr>|}}
 +
|-
 +
! Setup&nbsp;time
 +
| {{{setup_time}}}
 +
|-
 +
! Playing&nbsp;time
 +
| {{{playing_time}}}
 +
|-
 +
! Random&nbsp;chance
 +
| {{{random_chance}}}
 
|-
 
|-
 +
! Skills&nbsp;required
 +
| {{{skills}}}
 +
|-
 
| colspan="2" style="text-align: left; font-size: smaller; border-top: 1px solid #aaa;" | {{{footnotes|}}}
 
| colspan="2" style="text-align: left; font-size: smaller; border-top: 1px solid #aaa;" | {{{footnotes|}}}
{{#if:{{{web|}}}|<tr><th style="font-size: 75%; white-space: nowrap" align="center" colspan="2">[[Website]]: {{{web}}}</td></tr>|}}{{#if:{{{bggid|{{{bggxrefs|}}}}}}|<tr><th style="font-size: 75%; white-space: nowrap" align="center" colspan="2">|}}{{#if:{{{bggid|}}}|'''[http://www.boardgamegeek.com/game/{{{bggid}}} BoardGameGeek entry]'''|}}{{#if:{{{bggxrefs|}}}|[[#template_boardgamegeek|{{#if:{{{bggid|}}}|<small>&nbsp;(more...)</small>|'''BoardGameGeek references'''|}}]]|}}{{#if:{{{bggid|{{{bggxrefs|}}}}}}|</th></tr>|}}
+
{{#if:{{{bggid|{{{bggxrefs|}}}}}}|<tr><th style="font-size: 75%; white-space: nowrap" align="center" colspan="2">|}}{{#if:{{{bggid|}}}|'''[http://www.boardgamegeek.com/game/{{{bggid}}} BoardGameGeek entry]'''|}}{{#if:{{{bggxrefs|}}}|[[#template_boardgamegeek|{{#if:{{{bggid|}}}|<small>&nbsp;(more...)</small>|'''BoardGameGeek references'''|}}]]|}}{{#if:{{{bggid|{{{bggxrefs|}}}}}}|</th></tr>|}}
|}
+
|}<noinclude>
 
 
<noinclude>
 
  
 
{{-}}
 
{{-}}
Line 35: Line 48:
 
| publisher =
 
| publisher =
 
| illustrator =
 
| illustrator =
| years =
+
| years = <!---years active---!>
 
| players =
 
| players =
| ages =
+
| ages = <!---age range---!>
 
| setup_time =
 
| setup_time =
 
| playing_time =
 
| playing_time =
Line 45: Line 58:
 
| skills =
 
| skills =
 
| bggid= <!---boardgame geek entry---!>
 
| bggid= <!---boardgame geek entry---!>
 +
|bggxrefs = <!---boardgame geek cross references for supplements etc---!>
 
| footnotes =
 
| footnotes =
 
| web =
 
| web =

Revision as of 15:31, 12 January 2007

Infobox wargame
{{{image_link}}}
Players {{{players}}}
Setup time {{{setup_time}}}
Playing time {{{playing_time}}}
Random chance {{{random_chance}}}
Skills required {{{skills}}}

Usage

{{ Infobox Wargame
| title =
| subtitle =
| image =  <!---just the image name---!>
| image_caption= <!---as appropiate---!>
| designer =
| manufacturer =
| publisher =
| illustrator =
| years = <!---years active---!>
| players =
| ages = <!---age range---!>
| setup_time =
| playing_time =
| complexity =
| strategy =
| random_chance =
| skills =
| bggid= <!---boardgame geek entry---!>
|bggxrefs = <!---boardgame geek cross references for supplements etc---!>
| footnotes =
| web =
}}

mk:Шаблон:Инфокутија-игра