Difference between revisions of "Template:Infobox card game"

From blackwiki
Jump to navigation Jump to search
(added website parameter)
imported>Bermicourt
(Simplifying displayed field title which was v long)
 
(14 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
| title          = {{{title|{{{subject_name|<includeonly>{{PAGENAME}}</includeonly>}}} }}}
+
| title          = {{{title|{{{subject_name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}} }}}
 
| subheader      = {{{subtitle|}}}
 
| subheader      = {{{subtitle|}}}
 
| subheaderstyle = font-weight: bold
 
| subheaderstyle = font-weight: bold
| image          = {{{image_link|}}}
+
| image          = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{image_link|}}}}}}|size={{{image_size|{{{image size|{{{imagesize|}}}}}}}}}|alt={{{alt|}}}}}  
| caption        = {{{image_caption|}}}
+
| caption        = {{{caption|{{{image_caption|}}}}}}
 
| label1        = Origin
 
| label1        = Origin
 
| data1          = {{{origin|}}}
 
| data1          = {{{origin|}}}
| label2        = Alternative name(s)
+
| label2        = Alternative names
 
| data2          = {{{alt_names|}}}
 
| data2          = {{{alt_names|}}}
| label3        = Named Variants
+
| label3        = Alternative name
| data3          = {{{NamedVariants|}}}
+
| data3          = {{{alt_name|}}}
| label4        = Type
+
| label4        = Named variants
| data4          = {{{type|}}}
+
| data4          = {{{named_variants|{{{NamedVariants|}}}}}}
| label5        = Family
+
| label5        = Named variant
| data5          = {{{Family|}}}
+
| data5          = {{{named_variant|}}}
| label6        = Players
+
| label6        = [[Game designer|Designer]]
| data6          = {{{players|}}}
+
| data6          = {{{designer|}}}
| label7        = Skill(s) required
+
| label7        = [[Game designer|Designers]]
| data7          = {{{skills|}}}
+
| data7          = {{{designers|}}}
| label8        = Age range
+
| label8        = Publisher
| data8          = {{{ages|}}}
+
| data8          = {{{publisher|}}}
| label9        = Cards
+
| label9        = Publishers
| data9          = {{{num_cards|}}}
+
| data9          = {{{publishers|}}}
| label10       = Deck
+
| label10        = Release date
| data10         = {{{deck|}}}
+
| data10        = {{{date|}}}
| label11       = Play
+
| label11        = Type
| data11         = {{{play|}}}
+
| data11        = {{{type|}}}
| label12       = Card rank (highest to lowest)
+
| label12        = Family
| data12         = {{{card_rank|}}}
+
| data12        = {{{family|{{{Family|}}}}}}
| label13       = Playing time
+
| label13        = Players
| data13         = {{{playing_time|}}}
+
| data13        = {{{players|}}}
| label14       = Random chance
+
| label14        = Skills required
| data14         = {{{random_chance|}}}
+
| data14        = {{{skills|}}}
| header15       = {{#if:{{{related|}}}|Related games}}
+
| label15        = Skill required
| data15         = {{{related|}}}
+
| data15        = {{{skill|}}}
| label16       = Website
+
| label16        = Age range
| data16         = {{{website|{{{web|}}}}}}
+
| data16        = {{{ages|}}}
 +
| label17        = Cards
 +
| data17        = {{{num_cards|}}}
 +
| label18       = Deck
 +
| data18         = {{{deck|}}}
 +
| label19       = Play
 +
| data19         = {{{play|}}}
 +
| label20       = Card rank (highest first)
 +
| data20         = {{{card_rank|}}}
 +
| label21       = Playing time
 +
| data21         = {{{playing_time|}}}
 +
| label22       = Random chance
 +
| data22         = {{{random_chance|}}}
 +
| header23       = {{#if:{{{related|}}}|Related games}}
 +
| data24         = {{{related|}}}
 +
| label25       = Website
 +
| data25         = {{{website|{{{web|}}}}}}
 
| below          = {{{footnotes|}}}
 
| below          = {{{footnotes|}}}
}}<noinclude>{{Documentation}}<!-- please add category and language links to the /doc sub-page, not here --></noinclude>
+
}}{{#invoke:Check for unknown parameters | check | unknown={{main other|[[Category:Pages using infobox card game with unknown parameters|_VALUE_{{PAGENAME}}]]}} | preview=Page using [[Template:Infobox card game]] with unknown parameter "_VALUE_" | ignoreblank=y | ages | alt | alt_name | alt_names | caption | card_rank | date | deck | designer | designers | Family | family | footnotes | image | image_caption | image_link | image size | image_size | imagesize | named_variant | named_variants | NamedVariants | num_cards | origin | play | players | playing_time | publisher | publishers | random_chance | related | skill | skills | subject_name | subtitle | title | type | web | website
 +
}}<noinclude>
 +
{{Documentation}}<!-- please add categories to the /doc sub-page, not here -->
 +
</noinclude>

Latest revision as of 19:57, 21 June 2018

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Usage

Template:Parameter names example

{{Infobox card game
| title         =
| subtitle      = 
| image         = 
| image_size    = 
| alt           =
| caption       = 
| alt_name      =
| named_variant = <!-- names of variant games that are listed on this page (rules must be different, even if only slightly) -->
| designer      = 
| publisher     = 
| date          = <!-- {{Start date and age|df=n|1999|12|31}} -->
| type          = 
| family        = 
| players       = 
| ages          = 
| num_cards     = 
| deck          = 
| play          = 
| card_rank     =
| origin        =
| related       =
| playing_time  = 
| random_chance = 
| skills        = 
| website       = 
| footnotes     =
}}

The parameters alt_name, named_variant, designer and publisher have variants alt_names, named_variants, designers and publishers, which simply cause their respective labels to be in the plural form.

Example

Spades
A simple trick-taking game for 3-6 players
Playing card spade A.svg
The ace of spades; the highest-value card in spades play.
OriginWhist
Alternative nameCall Bridge
Typetrick-taking
Players3-6, usually 4
Skills requiredCard counting, tactics, communication
Age range7+
Cards52 (51 or 54 for 3 or 6 players, 50 for 5)
DeckAnglo-American
PlayClockwise
Card rank (highest first)A K Q J 10 9 8 7 6 5 4 3 2, Spades always trump
Playing time~8 minutes per hand
Random chanceLow to moderate
Related games
Bid whist, Oh Hell, contract bridge
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox card game
| title         = Spades
| subtitle      = A simple trick-taking game for 3-6 players
| image         = Playing card spade A.svg
| image_size    = 150px
| alt           =
| caption       = The [[Ace of Spades|ace of spades]]; the highest-value card in spades play.
| alt_name      = Call Bridge
| type          = trick-taking
| players       = 3-6, usually 4
| play          = Clockwise
| card_rank     = A K Q J 10 9 8 7 6 5 4 3 2, Spades always trump
| ages          = 7+
| num_cards     = 52 (51 or 54 for 3 or 6 players, 50 for 5)
| deck          = Anglo-American
| origin        = [[Whist]]
| related       = [[Bid whist]], [[Oh Hell]], [[contract bridge]]
| playing_time  = ~8 minutes per hand
| random_chance = Low to moderate
| skills        = [[Card counting]], [[Tactic (method)|tactics]], communication
| footnotes     =
}}

Tracking category

See also

For more information, see the talk page.