Template:Mario52: Difference between revisions
mNo edit summary |
mNo edit summary |
||
(635 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<span style="background: #f9f9f9; -moz-box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1); -webkit-box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1); box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1); border: 1px solid #989898; border-radius: 0.2em; padding: 0px 2px 2px 2px; font-weight:normal;">{{#ifeq:{{{1}}}|LEFT |
|||
{{#tag:container|{{{example|{{{1}}} }}} }} |
|||
|[[Image:SpinBox.svg|17px]] {{{2}}} <span></span> |
|||
|{{#if:{{{1|}}}| {{{1}}} [[Image:SpinBox.svg|17px]]<span></span> |
|||
|[[Image:SpinBox.svg|17px]]<span></span>}}}}</span><noinclude> |
|||
---- |
|||
Use this template when you want to indicate a SpinBox {{Mario52|1.5}} (current) or left {{Mario52|LEFT|1.0}}. |
|||
<noinclude> |
|||
⚫ | |||
{{#tag:code|{{{example|{{{1}}} }}} }} |
|||
==Example 1:== |
|||
With parameter (normal use) current position. |
|||
{{#tag:<textarea class = "test">|{{{1 }}}</textarea>}} |
|||
⚫ | |||
{{Mario52|1.0}}</nowiki> |
|||
Result: |
|||
{{#tag:textarea|{{{example|{{{1}}} }}} }} |
|||
{{Mario52|1.0}} |
|||
==Example 2:== |
|||
{{#tag:pre|{{{code|{{{1}}}|style="color:black"}}} }} |
|||
With parameter '''LEFT'''. |
|||
⚫ | |||
{{#tag:source|{{{example|{{{1}}} }}} }} |
|||
{{Mario52|LEFT|1.5}}</nowiki> |
|||
Result: |
|||
{{Mario52|LEFT|1.5}} |
|||
<pre class = "test">{{{1}}}</pre> |
|||
==Example 3:== |
|||
<pre class="examplecode"> |
|||
Without parameter or '''empty''' the spinBox is displayed |
|||
⚫ | |||
</noinclude> |
|||
<nowiki> |
|||
{{Mario52}}</nowiki> |
|||
Result: |
|||
{{Mario52}} |
|||
{{VeryImportantMessage|This template is not translatable}} |
|||
[[Category:Template:Text Format]] |
Latest revision as of 17:55, 29 March 2020
Use this template when you want to indicate a SpinBox 1.5 (current) or left 1.0 .
Example 1:
With parameter (normal use) current position.
{{Mario52|1.0}}
Result:
Example 2:
With parameter LEFT.
{{Mario52|LEFT|1.5}}
Result:
Example 3:
Without parameter or empty the spinBox is displayed
{{Mario52}}
Result:
This template is not translatable