Difference between revisions of "Template:Infobox card game/doc"

From blackwiki
Jump to navigation Jump to search
imported>Smjg
(→‎Example: update doc to reflect changes)
imported>Jonesey95
m (Fix Linter errors using AutoEd)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}}
  
=== Example ===
+
== Usage ==
 +
{{Parameter names example | title | subject_name | subtitle | image | image_link | image_size | image size | imagesize | alt | caption | image_caption | origin | alt_names | alt_name | named_variants | NamedVariants | named_variant | designer | designers | publisher | publishers | date | type | family | Family | players | skills | skill | ages | num_cards | deck | play | card_rank | playing_time | random_chance | related | website | web | footnotes }}
 +
 
 +
<pre style="overflow:auto">
 +
{{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    =
 +
}}
 +
</pre>
 +
 
 +
The parameters <code>alt_name</code>, <code>named_variant</code>, <code>designer</code> and <code>publisher</code> have variants <code>alt_names</code>, <code>named_variants</code>, <code>designers</code> and <code>publishers</code>, which simply cause their respective labels to be in the plural form.
 +
{{clear}}
 +
 
 +
== Example ==
  
 
{{Infobox card game
 
{{Infobox card game
 
| title        = Spades
 
| title        = Spades
 
| subtitle      = A simple trick-taking game for 3-6 players
 
| subtitle      = A simple trick-taking game for 3-6 players
| image_link    = [[File:Playing card spade A.svg|150px]]
+
| image        = Playing card spade A.svg
| image_caption = The [[Ace of Spades|ace of spades]]; the highest-value card in spades play.
+
| image_size    = 150px
 +
| alt          =
 +
| caption      = The [[Ace of Spades|ace of spades]]; the highest-value card in spades play.
 
| alt_name      = Call Bridge
 
| alt_name      = Call Bridge
 
| type          = trick-taking
 
| type          = trick-taking
Line 24: Line 64:
 
| footnotes    =
 
| footnotes    =
 
}}
 
}}
<pre style="overflow:auto">{{Infobox card game
+
 
 +
<pre style="overflow:auto">
 +
{{Infobox card game
 
| title        = Spades
 
| title        = Spades
 
| subtitle      = A simple trick-taking game for 3-6 players
 
| subtitle      = A simple trick-taking game for 3-6 players
| image_link    = [[File:Playing card spade A.svg|150px]]
+
| image        = Playing card spade A.svg
| image_caption = The [[Ace of Spades|ace of spades]]; the highest-value card in spades play.
+
| image_size    = 150px
 +
| alt          =
 +
| caption      = The [[Ace of Spades|ace of spades]]; the highest-value card in spades play.
 
| alt_name      = Call Bridge
 
| alt_name      = Call Bridge
 
| type          = trick-taking
 
| type          = trick-taking
Line 43: Line 87:
 
| skills        = [[Card counting]], [[Tactic (method)|tactics]], communication
 
| skills        = [[Card counting]], [[Tactic (method)|tactics]], communication
 
| footnotes    =
 
| footnotes    =
}}</pre>
+
}}
 
+
</pre>
=== Full usage ===
+
{{clear}}
<pre style="overflow:auto">{{Infobox card game
 
| title        =
 
| subtitle      =
 
| image_link    = [[File:Playing card spade A.svg]]
 
| image_caption =
 
| alt_name      =
 
| named_variant =
 
| designer      =
 
| publisher    =
 
| type          =
 
| family        =
 
| players      =
 
| ages          =
 
| num_cards    =
 
| deck          =
 
| play          =
 
| card_rank    =
 
| origin        =
 
| related      =
 
| playing_time  =
 
| random_chance =
 
| skills        =
 
| website      =
 
| footnotes    =
 
}}</pre>
 
The parameters <tt>alt_name</tt>, <tt>named_variant</tt>, <tt>designer</tt> and <tt>publisher</tt> have variants <tt>alt_names</tt>, <tt>named_variants</tt>, <tt>designers</tt> and <tt>publishers</tt>, which simply cause their respective labels to be in the plural form.
 
 
 
=== Full Usage ===
 
<pre style="overflow:auto">{{Infobox card game
 
| title =
 
| subtitle =
 
| image_link = [[File:Playing card spade A.svg]]
 
| image_caption =
 
| alt_names =
 
| NamedVariants =
 
| designer =
 
| publisher =
 
| type =
 
| Family =
 
| players =
 
| ages =
 
| num_cards =
 
| deck =
 
| play =
 
| card_rank =
 
| origin =
 
| related =
 
| playing_time =
 
| random_chance =
 
| skills =
 
| website =
 
| footnotes =
 
}}</pre>
 
  
* '''NamedVariants:''' Names of variant games that are listed on this page (rules must be different, even if only slightly)
+
== Tracking category ==
 +
* {{clc|Pages using infobox card game with unknown parameters}}
  
=== See also ===
+
== See also ==
 
For more information, see the [[Wikipedia talk:WikiProject Games/Infobox|talk page]].
 
For more information, see the [[Wikipedia talk:WikiProject Games/Infobox|talk page]].
  
<includeonly>
+
<includeonly>{{sandbox other||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!-- Categories below this line, please; interwikis at Wikidata -->
 
 
 
[[Category:Game infobox templates|Card]]
 
[[Category:Game infobox templates|Card]]
 +
[[Category:Templates that add a tracking category]]
  
</includeonly>
+
}}</includeonly>
 
 
<includeonly>
 
[[pt:Predefinição:Info/Jogo de cartas]]
 
</includeonly>
 

Latest revision as of 17:03, 24 May 2020

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
{{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.