Difference between revisions of "Template:RulesPlacingMeeple"

From Wikicarpedia
Jump to navigation Jump to search
Line 5: Line 5:


<div class="wica-box-body wica-placing-meeple wica-visible">
<div class="wica-box-body wica-placing-meeple wica-visible">
{{#ifexp: {{#ifeq: {{#len:{{{rules|3}}}}} | 0 | 1 | 0 }} or {{#ifeq: {{{defaulttext}}}  | true | 1 | 0 }}:<translate><!--T:2--> You may place a meeple according to the usual rules.</translate>}}
{{#ifexp: {{#ifeq: {{#len:{{{rules|3}}}}} | 0 | 1 | 0 }} or {{#ifeq: {{{defaulttext}}}  | true | 1 | 0 }} | <translate><!--T:2--> You may place a meeple according to the usual rules.</translate>}}
{{{rules|{{{3}}}
{{{rules|{{{3}}}
</div>
</div>

Revision as of 13:39, 22 March 2023

Description

Create Rules box for Placing a meeple. Currently in blue.

Params

  • title or 2 or 2nd (optional) - Title of Rules box, when not set, 2. Placing a meeple text will be showed.
  • defaulttext (optional) - [true | -empty- ]. Include default text before rules.
  • rules or 3 or 3rd (optional) - Text in Rules box, when not set, then will be showed default text You may place a meeple according to the usual rules..
  • header or 1 or 1st (optional) [ ==|===|====|=====|-empty-] - Possible to make title of Rules box header in Table of Topics, default is ===== as 5th level of header.
  • class or 4 or 4th (optional) - Replacement of CSS classes.

Examples

Code Description
{{RulesPlacingMeeple}} Show Rules box with default title, step number and rules
2. Placing a meeple

You may place a meeple according to the usual rules.

{{RulesPlacingMeeple|title=2b. Placing a phantom|rules=This is text for rules.}} Change title
2b. Placing a phantom

This is text for rules.

{{RulesPlacingMeeple|default=true|rules=This is text for rules.}} Include default rules, but also extra rules
2. Placing a meeple

You may place a meeple according to the usual rules.

This is extra new rule.

{{RulesPlacingMeeple|2=2b. Placing a phantom|3=This is text for rules.}} Backward compatibility
2b. Placing a phantom

This is text for rules.