Difference between revisions of "Template:RulesAction"
Jump to navigation
Jump to search
Meepledrone (talk | contribs) m (Testing) |
|||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div class="{{{ | <includeonly><div {{#if: {{{id|}}} | id="{{{id}}}" }} class="{{{class|wica-top-spacing wica-bottom-spacing wica-visible}}}"> | ||
<div class="wica-box-header wica-additional-actions wica-visible"> | <div class="wica-box-header wica-additional-actions wica-visible"> | ||
{{{ | {{#switch: {{{header}}} | ||
| fake-h1 | |||
| fake-h2 | |||
| fake-h3 | |||
| fake-h4 | |||
| fake-h5 = <span class="{{{header}}}"> | |||
| 2 | |||
| 3 | |||
| 4 | |||
| 5 | |||
| 6 = <h{{{header}}}> | |||
| {{{header|=====}}} | |||
}}<span style="color:#FFFFFF">{{{title|'''<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 | |||
| 6 = </h{{{header}}}> | |||
| {{{header|=====}}} | |||
}} | |||
</div> | </div> | ||
<div class="wica-box-body wica-additional-actions wica-visible"> | <div class="wica-box-body wica-additional-actions wica-visible"> | ||
{{{ | {{{rules|'''<translate><!--T:2--> No rules defined.</translate>'''}}} | ||
</div> | </div> | ||
</div></includeonly><noinclude><languages />{{#if: {{#translation:}} | | [[Category:Translatable_templates]]}} | |||
{{Breadcrumbs | |||
|link1={{EditorManualLink}} | |||
}}__NOTOC__ | |||
== Description == | |||
Create Rules box for Action. Currently in yellow. | |||
== Params == | |||
* <code>title</code> (required) - Title of Rules box, when not set, ''' ''No title defined'' ''' text will be showed. | |||
* <code>rules</code> (required) - Text in Rules box, when not set, then will be showed default text ''' ''No rules defined.'' '''. | |||
* <code>header</code> (optional) [ <code>==</code>|<code>===</code>|<code>====</code>|<code>=====</code>|<code>2</code>|<code>3</code>|<code>4</code>|<code>5</code>|<code>6</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> (optional) - Replacement of CSS classes. | |||
* <code>id</code> (optional) - HTML ID value | |||
== Examples == | |||
__TOC__ | |||
{| class="wikitable light" | |||
! Code !! Description | |||
|- | |||
! <code><nowiki>{{RulesAction}}</nowiki></code> || Show Rules box with default title, step number and rules | |||
|- | |||
| colspan="2" | {{RulesAction}} | |||
|- | |||
! <code><nowiki>{{RulesAction|title=4. Action phase|rules=This is text for rules.}}</nowiki></code> || Change title | |||
|- | |||
| colspan="2" | {{RulesAction|title=4. Action phase|rules=This is text for rules.}} | |||
|- | |||
! <code><nowiki>{{RulesAction|header=fake-h4|title=Extra stuff for action not in TOC|rules=This is text for rules.}}</nowiki></code> || Title is fake-h4 header, not in TOC | |||
|- | |||
| colspan="2" | {{RulesAction|header=fake-h4|title=Extra stuff for action not in TOC|rules=This is text for rules.}} | |||
|} | |||
</noinclude> |
Latest revision as of 14:35, 29 April 2024
Description
Create Rules box for Action. Currently in yellow.
Params
title
(required) - Title of Rules box, when not set, No title defined text will be showed.rules
(required) - Text in Rules box, when not set, then will be showed default text No rules defined. .header
(optional) [==
|===
|====
|=====
|2
|3
|4
|5
|6
|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
(optional) - Replacement of CSS classes.id
(optional) - HTML ID value
Examples
Code | Description |
---|---|
{{RulesAction}} |
Show Rules box with default title, step number and rules |
No title definedNo rules defined. | |
{{RulesAction|title=4. Action phase|rules=This is text for rules.}} |
Change title |
4. Action phaseThis is text for rules. | |
{{RulesAction|header=fake-h4|title=Extra stuff for action not in TOC|rules=This is text for rules.}} |
Title is fake-h4 header, not in TOC |
Extra stuff for action not in TOC This is text for rules. |