This is a documentation for Board Game Arena: play board games online !

Difference between revisions of "Template:Club"

From Board Game Arena
Jump to navigation Jump to search
(Undo revision 11088 by DiEvAl (talk) I have no idea why it didn't work...)
Tag: Undo
(documentation)
Line 1: Line 1:
<span style="background:#fafafa;box-shadow:0.05rem 0.05rem 0.1rem 0.1rem rgba(0,0,0,0.2);border-radius:0.2rem;padding:0.25rem;font-size:1rem;color:green;">{{{|A}}}♣</span><noinclude>
+
<span style="background:#fafafa;box-shadow:0.05rem 0.05rem 0.1rem 0.1rem rgba(0,0,0,0.2);border-radius:0.2rem;padding:0.25rem;font-size:1rem;color:{{{colour|#000}}};">{{{|}}}♣</span><noinclude>
 +
 
 +
To use a playing card template on a BGA wiki page, simply type <code><nowiki>{{club}}</nowiki></code>/<code><nowiki>{{spade}}</nowiki></code>/<code><nowiki>{{heart}}</nowiki></code>/<code><nowiki>{{diamond}}</nowiki></code> or <code><nowiki>{{club|=A}}</nowiki></code> (where <code>A</code> can be any character or string) when editing the page.
 +
 
 +
'''Note:''' Game Help pages (e.g. '[[Gamehelpmachiavelli|GameHelpMachiavelli]]') also display on BGA's Rules Summary pages
 +
e.g. https://boardgamearena.com/gamepanel?game=machiavelli under HOW TO PLAY? > See More > RULES SUMMARY
 +
 
 +
=== Available parameters ===
 +
 
 +
<div style="display:grid;grid-template-columns:minmax(min-content,max-content);gap:1.5rem;overflow:hidden;text-overflow:ellipsis;">
 +
<div style="display:flex;flex-flow:row wrap;gap:0.5rem;">
 +
  <div style="border-top:0.25rem solid red  ;border-left:0.15rem solid red  ;border-radius:0.5rem 0.5rem 0 0;padding-left:0.2rem;font-weight:bold;width:8rem;">Parameter</div>
 +
  <div style="border-top:0.25rem solid orange;border-left:0.15rem solid orange;border-radius:0.5rem 0.5rem 0 0;padding-left:0.2rem;font-weight:bold;width:8rem;">Default value</div>
 +
  <div style="border-top:0.25rem solid green ;border-left:0.15rem solid green ;border-radius:0.5rem 0.5rem 0 0;padding-left:0.2rem;font-weight:bold;width:8rem;">Example</div>
 +
  <div style="border-top:0.25rem solid cyan  ;border-left:0.15rem solid cyan  ;border-radius:0.5rem 0.5rem 0 0;padding-left:0.2rem;font-weight:bold;width:8rem;">Description</div>
 +
</div>
 +
<div style="display:flex;flex-flow:row wrap;gap:0.5rem;">
 +
  <div style="border-top:0.2rem solid red  ;border-left:0.15rem solid red  ;border-radius:0.5rem 0.5rem 0 0;"><code>null</code></div>
 +
  <div style="border-top:0.2rem solid orange;border-left:0.15rem solid orange;border-radius:0.5rem 0.5rem 0 0;"><code><nowiki>null</nowiki></code></div>
 +
  <div style="border-top:0.2rem solid green ;border-left:0.15rem solid green ;border-radius:0.5rem 0.5rem 0 0;"><code><nowiki>{{club|=K}}</nowiki></code></div>
 +
  <div style="border-top:0.2rem solid cyan  ;border-left:0.15rem solid cyan  ;border-radius:0.5rem 0.5rem 0 0;padding-left:0.2rem;"><b><i>Optional:</i></b> provide (e.g.) a card value such as <code>A</code> for ace, <code>10</code> for 10 etc.</div>
 +
</div>
 +
<div style="display:flex;flex-flow:row wrap;gap:0.5rem;">
 +
  <div style="border-top:0.2rem solid red  ;border-left:0.15rem solid red  ;border-radius:0.5rem 0.5rem 0 0;"><code>colour</code></div>
 +
  <div style="border-top:0.2rem solid orange;border-left:0.15rem solid orange;border-radius:0.5rem 0.5rem 0 0;"><code>#000</code> (black)</div>
 +
  <div style="border-top:0.2rem solid green ;border-left:0.15rem solid green ;border-radius:0.5rem 0.5rem 0 0;"><code><nowiki>{{club|colour=green}}</nowiki></code></div>
 +
  <div style="border-top:0.2rem solid cyan  ;border-left:0.15rem solid cyan  ;border-radius:0.5rem 0.5rem 0 0;padding-left:0.2rem;"><b><i>Optional:</i></b> specify the colour as <code><b>[string]</b></code> where <code><b>[string]</b></code> is any valid <code>style="color:<b>[string]</b>;"</code></div>
 +
</div>
 +
</div>
 +
 
 +
== Examples ==
 +
 
 +
=== Machiavelli ===
 +
 
 +
{|class="wikitable" style="width:auto;line-height: 1.6rem;"
 +
!Table !! In hand !! Rearrange !! Add card
 +
|-
 +
|{{club|=5|colour=green}}{{diamond|=5|colour=blue}}{{heart|=5}}{{spade|=5}}
 +
{{club|=6|colour=green}}{{club|=7|colour=green}}{{club|=8|colour=green}}
 +
|{{club|=4|colour=green}}
 +
|{{diamond|=5|colour=blue}}{{heart|=5}}{{spade|=5}}
 +
{{club|=5|colour=green}}{{club|=6|colour=green}}{{club|=7|colour=green}}{{club|=8|colour=green}}
 +
|{{diamond|=5|colour=blue}}{{heart|=5}}{{spade|=5}}
 +
{{club|=4|colour=green}}{{club|=5|colour=green}}{{club|=6|colour=green}}{{club|=7|colour=green}}{{club|=8|colour=green}}
 +
|-
 +
|{{club|=5|colour=green}}{{diamond|=5|colour=blue}}{{heart|=5}}
 +
{{club|=6|colour=green}}{{diamond|=6|colour=blue}}{{heart|=6}}
 +
 
 +
{{club|=7|colour=green}}{{diamond|=7|colour=blue}}{{heart|=7}}
 +
|{{club|=8|colour=green}}
 +
|{{club|=5|colour=green}}{{club|=6|colour=green}}{{club|=7|colour=green}}
 +
{{diamond|=5|colour=blue}}{{diamond|=6|colour=blue}}{{diamond|=7|colour=blue}}
 +
 
 +
{{heart|=5}}{{heart|=6}}{{heart|=7}}
 +
|{{club|=5|colour=green}}{{club|=6|colour=green}}{{club|=7|colour=green}}{{club|=8|colour=green}}
 +
{{diamond|=5|colour=blue}}{{diamond|=6|colour=blue}}{{diamond|=7|colour=blue}}
 +
 
 +
{{heart|=5}}{{heart|=6}}{{heart|=7}}
 +
|-
 +
|{{club|=6|colour=green}}{{diamond|=6|colour=blue}}{{heart|=6}}
 +
{{club|=7|colour=green}}{{diamond|=7|colour=blue}}{{heart|=7}}
 +
|{{club|=8|colour=green}}
 +
|{{club|=6|colour=green}}{{club|=7|colour=green}}
 +
{{diamond|=6|colour=blue}}{{heart|=6}}
 +
 
 +
{{diamond|=7|colour=blue}}{{heart|=7}}
 +
|Not possible!
 +
|-
 +
|}
 +
<pre>
 +
{|class="wikitable" style="width:auto;line-height: 1.6rem;"
 +
!Table !! In hand !! Rearrange !! Add card
 +
|-
 +
|{{club|=5|colour=green}}{{diamond|=5|colour=blue}}{{heart|=5}}{{spade|=5}}
 +
{{club|=6|colour=green}}{{club|=7|colour=green}}{{club|=8|colour=green}}
 +
|{{club|=4|colour=green}}
 +
|{{diamond|=5|colour=blue}}{{heart|=5}}{{spade|=5}}
 +
{{club|=5|colour=green}}{{club|=6|colour=green}}{{club|=7|colour=green}}{{club|=8|colour=green}}
 +
|{{diamond|=5|colour=blue}}{{heart|=5}}{{spade|=5}}
 +
{{club|=4|colour=green}}{{club|=5|colour=green}}{{club|=6|colour=green}}{{club|=7|colour=green}}{{club|=8|colour=green}}
 +
|-
 +
|{{club|=5}}{{diamond|=5|colour=blue}}{{heart|=5}}
 +
{{club|=6}}{{diamond|=6|colour=blue}}{{heart|=6}}
 +
 
 +
{{club|=7|colour=green}}{{diamond|=7|colour=blue}}{{heart|=7}}
 +
|{{club|=8|colour=green}}
 +
|{{club|=5|colour=green}}{{club|=6|colour=green}}{{club|=7|colour=green}}
 +
{{diamond|=5|colour=blue}}{{diamond|=6|colour=blue}}{{diamond|=7|colour=blue}}
 +
 
 +
{{heart|=5}}{{heart|=6}}{{heart|=7}}
 +
|{{club|=5|colour=green}}{{club|=6|colour=green}}{{club|=7|colour=green}}{{club|=8|colour=green}}
 +
{{diamond|=5|colour=blue}}{{diamond|=6|colour=blue}}{{diamond|=7|colour=blue}}
 +
 
 +
{{heart|=5}}{{heart|=6}}{{heart|=7}}
 +
|-
 +
|{{club|=6|colour=green}}{{diamond|=6}}{{heart|=6}}
 +
{{club|=7|colour=green}}{{diamond|=7}}{{heart|=7}}
 +
|{{club|=8|colour=green}}
 +
|{{club|=6|colour=green}}{{club|=7|colour=green}}
 +
{{diamond|=6|colour=blue}}{{heart|=6}}
 +
 
 +
{{diamond|=7}}{{heart|=7}}
 +
|Not possible!
 +
|-
 +
|}
 +
</pre>
 +
 
 +
<div style="line-height: 1.6rem;">
 +
* The table has the set {{spade|=5}}{{diamond|=5|colour=blue}}{{heart|=5}}.
 +
* A player may play a combination, such as {{spade|=6}}{{diamond|=6|colour=blue}}{{heart|=6}} or {{spade|=6}}{{spade|=7}}{{spade|=8}}, or may extend the existing set by playing {{club|=5|colour=green}}.
 +
* They may even do both, if they have the appropriate cards.
 +
* A player may add any number of cards to a single combination:
 +
** extending {{spade|=A}}{{spade|=2}}{{spade|=3}} to {{spade|=A}}{{spade|=2}}{{spade|=3}}{{spade|=4}}{{spade|=5}}{{spade|=6}}{{spade|=7}}{{spade|=8}}{{spade|=9}}{{spade|=10}}{{spade|=J}}{{spade|=Q}}{{spade|=K}} is allowed.
 +
* '''Be careful, you are not allowed to play more than 13 cards per turn!'''
 +
</div>
 +
<pre>
 +
<div style="line-height: 1.6rem;">
 +
* The table has the set {{spade|=5}}{{diamond|=5|colour=blue}}{{heart|=5}}.
 +
* A player may play a combination, such as {{spade|=6}}{{diamond|=6|colour=blue}}{{heart|=6}} or {{spade|=6}}{{spade|=7}}{{spade|=8}}, or may extend the existing set by playing {{club|=5|colour=green}}.
 +
* They may even do both, if they have the appropriate cards.
 +
* A player may add any number of cards to a single combination:
 +
** extending {{spade|=A}}{{spade|=2}}{{spade|=3}} to {{spade|=A}}{{spade|=2}}{{spade|=3}}{{spade|=4}}{{spade|=5}}{{spade|=6}}{{spade|=7}}{{spade|=8}}{{spade|=9}}{{spade|=10}}{{spade|=J}}{{spade|=Q}}{{spade|=K}} is allowed.
 +
* '''Be careful, you are not allowed to play more than 13 cards per turn!'''
 +
</div>
 +
</pre>
 +
 
 
[[Category:Card templates]]
 
[[Category:Card templates]]
 
</noinclude>
 
</noinclude>

Revision as of 13:25, 27 December 2021

To use a playing card template on a BGA wiki page, simply type {{club}}/{{spade}}/{{heart}}/{{diamond}} or {{club|=A}} (where A can be any character or string) when editing the page.

Note: Game Help pages (e.g. 'GameHelpMachiavelli') also display on BGA's Rules Summary pages e.g. https://boardgamearena.com/gamepanel?game=machiavelli under HOW TO PLAY? > See More > RULES SUMMARY

Available parameters

Parameter
Default value
Example
Description
null
null
{{club|=K}}
Optional: provide (e.g.) a card value such as A for ace, 10 for 10 etc.
colour
#000 (black)
{{club|colour=green}}
Optional: specify the colour as [string] where [string] is any valid style="color:[string];"

Examples

Machiavelli

Table In hand Rearrange Add card
5♣555

6♣7♣8♣

4♣ 555

5♣6♣7♣8♣

555

4♣5♣6♣7♣8♣

5♣55

6♣66

7♣77

8♣ 5♣6♣7♣

567

567

5♣6♣7♣8♣

567

567

6♣66

7♣77

8♣ 6♣7♣

66

77

Not possible!
{|class="wikitable" style="width:auto;line-height: 1.6rem;"
!Table !! In hand !! Rearrange !! Add card
|-
|{{club|=5|colour=green}}{{diamond|=5|colour=blue}}{{heart|=5}}{{spade|=5}} 
{{club|=6|colour=green}}{{club|=7|colour=green}}{{club|=8|colour=green}}
|{{club|=4|colour=green}}
|{{diamond|=5|colour=blue}}{{heart|=5}}{{spade|=5}} 
{{club|=5|colour=green}}{{club|=6|colour=green}}{{club|=7|colour=green}}{{club|=8|colour=green}}
|{{diamond|=5|colour=blue}}{{heart|=5}}{{spade|=5}} 
{{club|=4|colour=green}}{{club|=5|colour=green}}{{club|=6|colour=green}}{{club|=7|colour=green}}{{club|=8|colour=green}}
|-
|{{club|=5}}{{diamond|=5|colour=blue}}{{heart|=5}}
{{club|=6}}{{diamond|=6|colour=blue}}{{heart|=6}}

{{club|=7|colour=green}}{{diamond|=7|colour=blue}}{{heart|=7}}
|{{club|=8|colour=green}}
|{{club|=5|colour=green}}{{club|=6|colour=green}}{{club|=7|colour=green}}
{{diamond|=5|colour=blue}}{{diamond|=6|colour=blue}}{{diamond|=7|colour=blue}}

{{heart|=5}}{{heart|=6}}{{heart|=7}}
|{{club|=5|colour=green}}{{club|=6|colour=green}}{{club|=7|colour=green}}{{club|=8|colour=green}}
{{diamond|=5|colour=blue}}{{diamond|=6|colour=blue}}{{diamond|=7|colour=blue}}

{{heart|=5}}{{heart|=6}}{{heart|=7}}
|-
|{{club|=6|colour=green}}{{diamond|=6}}{{heart|=6}} 
{{club|=7|colour=green}}{{diamond|=7}}{{heart|=7}}
|{{club|=8|colour=green}}
|{{club|=6|colour=green}}{{club|=7|colour=green}}
{{diamond|=6|colour=blue}}{{heart|=6}} 

{{diamond|=7}}{{heart|=7}}
|Not possible!
|-
|}
  • The table has the set 555.
  • A player may play a combination, such as 666 or 678, or may extend the existing set by playing 5♣.
  • They may even do both, if they have the appropriate cards.
  • A player may add any number of cards to a single combination:
    • extending A23 to A2345678910JQK is allowed.
  • Be careful, you are not allowed to play more than 13 cards per turn!
<div style="line-height: 1.6rem;">
* The table has the set {{spade|=5}}{{diamond|=5|colour=blue}}{{heart|=5}}.
* A player may play a combination, such as {{spade|=6}}{{diamond|=6|colour=blue}}{{heart|=6}} or {{spade|=6}}{{spade|=7}}{{spade|=8}}, or may extend the existing set by playing {{club|=5|colour=green}}.
* They may even do both, if they have the appropriate cards.
* A player may add any number of cards to a single combination:
** extending {{spade|=A}}{{spade|=2}}{{spade|=3}} to {{spade|=A}}{{spade|=2}}{{spade|=3}}{{spade|=4}}{{spade|=5}}{{spade|=6}}{{spade|=7}}{{spade|=8}}{{spade|=9}}{{spade|=10}}{{spade|=J}}{{spade|=Q}}{{spade|=K}} is allowed.
* '''Be careful, you are not allowed to play more than 13 cards per turn!'''
</div>