Difference between revisions of "Template:RulesDragon"
Jump to navigation
Jump to search
Bumsakalaka (talk | contribs) |
Bumsakalaka (talk | contribs) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div | <includeonly><div {{#if: {{{id|}}} | id="{{{id}}}" }} class="{{{class|wica-top-spacing wica-bottom-spacing wica-visible}}}"> | ||
<div class="wica-box-header wica-dragon-movement wica-visible"> | <div class="wica-box-header wica-dragon-movement wica-visible"> | ||
{{{header|{{{1|=====}}}}}}<span style="color:#FFFFFF">{{{title|{{{2|<translate><!--T:1--> | {{#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--> No title defined</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 class="wica-box-body wica-dragon-movement wica-visible"> | <div class="wica-box-body wica-dragon-movement wica-visible"> | ||
{{{rules|{{{3|<translate><!--T:2--> | {{{rules|{{{3|'''<translate><!--T:2--> No rules defined.</translate>'''}}}}}} | ||
</div> | </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]]}} | ||
<languages /> | {{Breadcrumbs | ||
|link1={{EditorManualLink}} | |||
{{ | }}__NOTOC__ | ||
== Description == | == Description == | ||
Create Rules box for Placing tile. Currently in pink. | Create Rules box for Placing tile. Currently in pink. | ||
Line 17: | Line 39: | ||
* <code>title</code> or <code>2</code> or 2nd (required) - Title of Rules box, when not set, ''' ''No title defined'' ''' text will be showed. | * <code>title</code> or <code>2</code> or 2nd (required) - Title of Rules box, when not set, ''' ''No title defined'' ''' text will be showed. | ||
* <code>rules</code> or <code>3</code> or 3rd (required) - Text in Rules box, when not set, then will be showed default text ''' ''No rules defined.'' '''. | * <code>rules</code> or <code>3</code> or 3rd (required) - Text in Rules box, when not set, then will be showed default text ''' ''No rules defined.'' '''. | ||
* <code>header</code> or <code>1</code> or 1st (optional) [ <code>==</code>|<code>===</code>|<code>====</code>|<code>=====</code>|-empty-] - | * <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>class</code> or <code>4</code> or 4th (optional) - Replacement of CSS classes. | ||
* <code>id</code> (optional) - HTML ID value | |||
== Examples == | == Examples == | ||
__TOC__ | |||
{| class="wikitable light" | {| class="wikitable light" | ||
! Code !! Description | ! Code !! Description | ||
Line 31: | Line 55: | ||
|- | |- | ||
| colspan="2" | {{RulesDragon|title=2b. Dragon move|rules=This is text for rules.}} | | colspan="2" | {{RulesDragon|title=2b. Dragon move|rules=This is text for rules.}} | ||
|- | |||
! <code><nowiki>{{RulesDragon|title=Extra stuff for dragon not in TOC|rules=This is text for rules.|header=fake-h4}}</nowiki></code> || Title is fake-h4 header, not in TOC | |||
|- | |||
| colspan="2" | {{RulesDragon|title=Extra stuff for dragon not in TOC|rules=This is text for rules.|header=fake-h4}} | |||
|- | |- | ||
! <code><nowiki>{{RulesDragon|2=2b. Dragon move|3=This is text for rules.}}</nowiki></code> || Backward compatibility | ! <code><nowiki>{{RulesDragon|2=2b. Dragon move|3=This is text for rules.}}</nowiki></code> || Backward compatibility | ||
Line 37: | Line 65: | ||
|- | |- | ||
|} | |} | ||
</noinclude> | </noinclude> |
Revision as of 13:28, 11 February 2024
Description
Create Rules box for Placing tile. Currently in pink.
Params
title
or2
or 2nd (required) - Title of Rules box, when not set, No title defined text will be showed.rules
or3
or 3rd (required) - Text in Rules box, when not set, then will be showed default text No rules defined. .header
or1
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, orfake-h#
when title is not required in TOC.class
or4
or 4th (optional) - Replacement of CSS classes.id
(optional) - HTML ID value
Examples
Code | Description |
---|---|
{{RulesDragon}} |
Show Rules box with default title, step number and rules |
No title definedNo rules defined. | |
{{RulesDragon|title=2b. Dragon move|rules=This is text for rules.}} |
Change title |
2b. Dragon moveThis is text for rules. | |
{{RulesDragon|title=Extra stuff for dragon not in TOC|rules=This is text for rules.|header=fake-h4}} |
Title is fake-h4 header, not in TOC |
Extra stuff for dragon not in TOC This is text for rules. | |
{{RulesDragon|2=2b. Dragon move|3=This is text for rules.}} |
Backward compatibility |
2b. Dragon moveThis is text for rules. |