Difference between revisions of "Template:Infobox wargame"

From blackwiki
Jump to navigation Jump to search
imported>Thumperward
(minor tidying for lack of image)
imported>Thumperward
(try modernising this. using template:infobox software as an, erm, template)
Line 1: Line 1:
{| class="infobox" style="font-size:95%;width:24em;"
+
{| class="infobox" cellspacing="5" style="width: 21em; font-size: 90%; text-align: left;"
! 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; border-bottom: 1px solid #aaa" |{{#if:{{{image|}}}|{{{image}}}{{#if:{{{image_caption|}}}|{{#if:{{{image|}}}|<br>|}}{{{image_caption}}}|}}|}}
+
| colspan="2" style="text-align: center; font-size: 130%; font-weight: bold;" | {{{title|{{{subject_name|{{PAGENAME}}}}}}}}{{#if:{{{subtitle|}}}|<br /><small>{{{subtitle}}}</small>|}}
 
|-
 
|-
{{#if:{{{manufacturer|}}}|<tr><th>Manufacturer</th><td nowrap>{{{manufacturer}}}</td></tr>|}}
+
{{#if:{{{image|}}}|
{{#if:{{{designer|}}}|<tr><th>Designer</th><td nowrap>{{{designer}}}</td></tr>|}}
+
<tr><td colspan="2" style="text-align: center;">{{{image|}}}<br />{{{image_caption}}}</td></tr>
{{#if:{{{illustrator|}}}|<tr><th>Illustrator</th><td nowrap>{{{illustrator}}}</td></tr>|}}
+
}}{{#if:{{{manufacturer|}}}|
{{#if:{{{publisher|}}}|<tr><th>Publisher</th><td nowrap>{{{publisher}}}</td></tr>|}}
+
<tr><th>[[Game manufacturer|Manufacturer]]:</th><td>{{{manufacturer|}}}</td></tr>
{{#if:{{{years|}}}|<tr><th>Years active</th><td nowrap>{{{years}}}</td></tr>|}}
+
}}{{#if:{{{designer|}}}|
|-
+
<tr><th>[[Game designer|Designer]]:</th><td>{{{designer|}}}</td></tr>
{{#if:{{{players|}}}|<tr><th>Players</th><td nowrap>{{{players}}}</td></tr>|}}
+
}}{{#if:{{{illustrator|}}}|
|
+
<tr><th>[[Illustrator]]:</th><td>{{{illustrator|}}}</td></tr>
{{#if:{{{ages|}}}|<tr><th>Age range</th><td>{{{ages}}}</td></tr>|}}
+
}}{{#if:{{{publisher|}}}|
|-
+
<tr><th>[[Game publisher|Publisher]]:</th><td>{{{publisher|}}}</td></tr>
{{#if:{{{setup_time|}}}|<tr><th>Setup time</th><td nowrap>{{{setup_time}}}</td></tr>|}}
+
}}{{#if:{{{years|}}}|
|-
+
<tr><th>Years active:</th><td>{{{years|}}}</td></tr>
{{#if:{{{playing_time|}}}|<tr><th>Playing time</th><td nowrap>{{{playing_time}}}</td></tr>|}}
+
}}{{#if:{{{players|}}}|
|-
+
<tr><th>Players:</th><td>{{{players|}}}</td></tr>
! Random chance
+
}}{{#if:{{{ages|}}}|
| {{{random_chance}}}
+
<tr><th>Age range:</th><td>{{{ages|}}}</td></tr>
|-
+
}}{{#if:{{{setup_time|}}}|
{{#if:{{{skills|}}}|<tr><th>Skills&nbsp;required</th><td nowrap>{{{skills}}}</td></tr>|}}
+
<tr><th>Setup time:</th><td>{{{setup_time|}}}</td></tr>
|-
+
}}{{#if:{{{playing_time|}}}|
{{#if:{{{web|}}}|<tr><th>Website</th><td nowrap>{{{web}}}</td></tr>|}}
+
<tr><th>Playing time:</th><td>{{{playing_time|}}}</td></tr>
|-
+
}}{{#if:{{{random_chance|}}}|
| colspan="2" style="text-align: left; font-size: smaller; border-top: 1px solid #aaa;" | {{{footnotes|}}}
+
<tr><th>Random chance:</th><td>{{{random_chance|}}}</td></tr>
 +
}}{{#if:{{{skills|}}}|
 +
<tr><th>Skills required:</th><td>{{{skills|}}}</td></tr>
 +
}}{{#if:{{{web|}}}|
 +
<tr><th>[[Website]]:</th><td>{{{web|}}}</td></tr>
 +
}}
 +
<tr><td>{{{footnotes|}}}</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>

Revision as of 16:41, 26 September 2007

Infobox wargame

Usage

{{ infobox wargame
| title         =
| subtitle      =
| image         = <!-- just the image name in the form [[image:   ]] --!>
| 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:Шаблон:Инфокутија-игра