Difference between revisions of "Template:RulesPlacingMeeple"

From Wikicarpedia
Jump to navigation Jump to search
(37 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div style="color:#FFFFFF; background:#0072BC; padding:0px 10px 2px; border-radius: 10px 10px 0px 0px; border: 2px solid #0072BC;">
<includeonly><div {{#if: {{{id|}}} | id="{{{id}}}" }} class="{{{class|wica-top-spacing wica-bottom-spacing wica-visible}}}">
=== <span style="color:#FFFFFF">{{{1}}}</span> === <!--T:10-->
<div class="wica-box-header wica-placing-meeple wica-visible">
{{#switch: {{{header}}}
| fake-h1
| fake-h2
| fake-h3
| fake-h4
| fake-h5 = <span class="{{{header}}}">
| 2
| 3
| 4
| 5 = <h{{{header}}}>
| {{{header|{{{1|=====}}}}}}
}}<span style="color:#FFFFFF">{{{title|{{{2|<translate><!--T:1--> 2. Placing a meeple</translate>}}}}}}</span> {{#switch: {{{header}}}
| fake-h1
| fake-h2
| fake-h3
| fake-h4
| fake-h5 = </span>
| 2
| 3
| 4
| 5 = </h{{{header}}}>
| {{{header|{{{1|=====}}}}}}
}}
</div>
</div>


<div style="background:#C7EBFC; padding:0px 10px 2px; border-radius: 0px 0px 10px 10px; border: 2px solid #0072BC;">
<div class="wica-box-body wica-placing-meeple wica-visible">
{{{2}}}
{{#ifexpr: {{#ifeq: {{#len:{{{rules|{{{3|}}}}}}}} | 0 | 1 | 0 }} or {{#ifeq: {{{default}}}  | true | 1 | 0 }} | <p><translate><!--T:2--> You may place a meeple according to the usual rules.</translate></p>}}
{{{rules|{{{3|}}}}}}
</div>
</div>
</div>{{OldNumberedParametersWarning|1{{#if: {{{1|}}} ||NULL}}={{{1|}}}|2{{#if: {{{2|}}} ||NULL}}={{{2|}}}|3{{#if: {{{3|}}} ||NULL}}={{{3|}}}|4{{#if: {{{4|}}} ||NULL}}={{{4|}}}|5{{#if: {{{5|}}} ||NULL}}={{{5|}}} }}</includeonly><noinclude><languages />{{#if: {{#translation:}} | | [[Category:Translatable_templates]]}}
{{Breadcrumbs
|link1={{EditorManualLink}}
}}__NOTOC__
== Description ==
Create Rules box for Placing a meeple. Currently in blue.
== Params ==
* <code>title</code> or <code>2</code> or 2nd (optional) - Title of Rules box, when not set, ''{{Translations:Template:RulesPlacingMeeple/1/{{PAGELANGUAGE}}}}'' text will be showed.
* <code>default</code> (optional) - [<code>true</code> | -empty- ]. Include translated default text ''{{Translations:Template:RulesPlacingMeeple/2/{{PAGELANGUAGE}}}}'' before text of <code><nowiki>rules</nowiki></code>.
* <code>rules</code> or <code>3</code> or 3rd (optional) - Text in Rules box, when not set, then will be showed default text ''{{Translations:Template:RulesPlacingMeeple/2/{{PAGELANGUAGE}}}}''.
* <code>header</code> or <code>1</code> or 1st (optional) [ <code>==</code>|<code>===</code>|<code>====</code>|<code>=====</code>|<code>2</code>|<code>3</code>|<code>4</code>|<code>5</code>|<code>fake-h2</code>|<code>fake-h3</code>|<code>fake-h4</code>|<code>fake-h5</code>|<code>-empty-</code>] - Title of Rules box header in Table of Topics, default is <code>=====</code> as 5th level of header, or <code>fake-h#</code> when title is not required in TOC.
* <code>class</code> or <code>4</code> or 4th (optional) - Replacement of CSS classes.
* <code>id</code> (optional) - HTML ID value
== Examples ==
__TOC__
{| class="wikitable light"
! Code !! Description
|-
! <code><nowiki>{{RulesPlacingMeeple}}</nowiki></code> || Show Rules box with default title, step number and rules
|-
| colspan="2" | {{RulesPlacingMeeple}}
|-
! <code><nowiki>{{RulesPlacingMeeple|title=2b. Placing a phantom|rules=This is text of rules.}}</nowiki></code> || Change title
|-
| colspan="2" | {{RulesPlacingMeeple|title=2b. Placing a phantom|rules=This is text of rules.}}
|-
! <code><nowiki>{{RulesPlacingMeeple|default=true|rules=This is extra new rule.}}</nowiki></code> || Include default rules, but also extra rules
|-
| colspan="2" | {{RulesPlacingMeeple|default=true|rules=This is extra new rule.}}
|-
! <code><nowiki>{{RulesPlacingMeeple|title=Extra stuff for placing meeple not in TOC|rules=This is text for rules.|header=fake-h4}}</nowiki></code> || Title is fake-h4 header, not in TOC
|-
| colspan="2" | {{RulesPlacingMeeple|title=Extra stuff for placing meeple not in TOC|rules=This is text for rules.|header=fake-h4}}
|-
! <code><nowiki>{{RulesPlacingMeeple|2=2b. Placing a phantom|3=This is text of rules.}}</nowiki></code> || Backward compatibility
|-
| colspan="2" | {{RulesPlacingMeeple|2=2b. Placing a phantom|3=This is text of rules.}}
|}
</noinclude>

Revision as of 13:26, 11 February 2024

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.
  • default (optional) - [true | -empty- ]. Include translated default text You may place a meeple according to the usual rules. before text of 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) [ ==|===|====|=====|2|3|4|5|fake-h2|fake-h3|fake-h4|fake-h5|-empty-] - Title of Rules box header in Table of Topics, default is ===== as 5th level of header, or fake-h# when title is not required in TOC.
  • class or 4 or 4th (optional) - Replacement of CSS classes.
  • id (optional) - HTML ID value

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 of rules.}} Change title
2b. Placing a phantom

This is text of rules.

{{RulesPlacingMeeple|default=true|rules=This is extra new rule.}} 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|title=Extra stuff for placing meeple not in TOC|rules=This is text for rules.|header=fake-h4}} Title is fake-h4 header, not in TOC

Extra stuff for placing meeple not in TOC

This is text for rules.

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

This is text of rules.