Difference between revisions of "Template:RulesAction/sk"

From Wikicarpedia
Jump to navigation Jump to search
(Updating to match new version of source page)
Tags: Mobile edit Mobile web edit
(Updating to match new version of source page)
Line 1: Line 1:
<includeonly><div {{#if: {{{id|}}} | id="{{{id}}}" }} class="{{{header|{{{class|wica-top-spacing wica-bottom-spacing wica-visible}}}}}}">
<includeonly><div {{#if: {{{id|}}} | id="{{{id}}}" }} class="{{{header|{{{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">
{{{header|{{{1|=====}}}}}}<span style="color:#FFFFFF">{{{title|{{{2|'''Nebol zadaný nadpis.'''}}}}}}</span> {{{header|{{{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|'''Nebol zadaný nadpis.'''}}}}}}</span> {{#switch: {{{header}}}
| fake-h1
| fake-h2
| fake-h3
| fake-h4
| fake-h5 = </span>
| 2
| 3
| 4
| 5 = </h{{{header}}}>
| {{{header|{{{1|=====}}}}}}
}}
</div>
</div>


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-] - Possible to make title of Rules box header in Table of Topics, default is <code>=====</code> as 5th level of header.
* <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
* <code>id</code> (optional) - HTML ID value


== Examples ==
== Examples ==
__TOC__
{| class="wikitable light"
{| class="wikitable light"
! Code !! Description
! Code !! Description
Line 32: Line 55:
|-
|-
| colspan="2" | {{RulesAction|title=4. Action phase|rules=This is text for rules.}}
| colspan="2" | {{RulesAction|title=4. Action phase|rules=This is text for rules.}}
|-
! <code><nowiki>{{RulesAction|title=Extra stuff for action not in TOC|rules=This is text for rules.|header=fake-h4}}</nowiki></code> || Title is fake-h4 header, not in TOC
|-
| colspan="2" | {{RulesAction|title=Extra stuff for action not in TOC|rules=This is text for rules.|header=fake-h4}}
|-
|-
! <code><nowiki>{{RulesAction|2=4. Action phase|3=This is text for rules.}}</nowiki></code> || Backward compatibility
! <code><nowiki>{{RulesAction|2=4. Action phase|3=This is text for rules.}}</nowiki></code> || Backward compatibility

Revision as of 13:23, 11 February 2024

Description

Create Rules box for Action. Currently in yellow.

Params

  • title or 2 or 2nd (required) - Title of Rules box, when not set, No title defined text will be showed.
  • rules or 3 or 3rd (required) - Text in Rules box, when not set, then will be showed default text No rules defined. .
  • 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
{{RulesAction}} Show Rules box with default title, step number and rules
Nebol zadaný nadpis.

Nie sú zadané pravidlá.

{{RulesAction|title=4. Action phase|rules=This is text for rules.}} Change title
4. Action phase

This is text for rules.

{{RulesAction|title=Extra stuff for action not in TOC|rules=This is text for rules.|header=fake-h4}} Title is fake-h4 header, not in TOC

Extra stuff for action not in TOC

This is text for rules.

{{RulesAction|2=4. Action phase|3=This is text for rules.}} Backward compatibility
Nebol zadaný nadpis.

Nie sú zadané pravidlá.