Template:Mario52: Difference between revisions

From FreeCAD Documentation
mNo edit summary
mNo edit summary
 
(644 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
{{{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>
<nowiki>
{{#tag:code|{{{example|{{{1}}} }}} }}


==Example 1:==


With parameter (normal use) current position.
{{#tag:<textarea class = "test">|{{{1 }}}</textarea>}}


<nowiki>
{{Mario52|1.0}}</nowiki>


Result:
{{#tag:textarea|{{{example|{{{1}}} }}} }}


{{Mario52|1.0}}


==Example 2:==
{{#tag:pre|{{{code|{{{1}}}|style="color:black"}}} }}


With parameter '''LEFT'''.


<nowiki>
<pre class = "test">{{{1}}}</pre>
{{Mario52|LEFT|1.5}}</nowiki>


Result:
<pre class="examplecode">


{{Mario52|LEFT|1.5}}
</nowiki>

</noinclude>
==Example 3:==

Without parameter or '''empty''' the spinBox is displayed

<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:

1.0

Example 2:

With parameter LEFT.

{{Mario52|LEFT|1.5}}

Result:

1.5

Example 3:

Without parameter or empty the spinBox is displayed

{{Mario52}}

Result:


This template is not translatable