Difference between revisions of "Template:Variable"

From FreeCAD Documentation
Jump to navigation Jump to search
Line 2: Line 2:
 
----
 
----
  
Use this template where you want to show a value or parameter, for example:
+
Use this template where you want to show a value or parameter.
<nowiki>{{Variable|MyAttribute}}</nowiki>
 
  
{{Variable|MyAttribute}}
+
Example:
  
You can optionally also specify a type to be shown before the variable, for example:
+
<nowiki>
<nowiki>{{Variable|MyAttribute|Type}}</nowiki>
+
{{Variable|MyAttribute}}</nowiki>
  
{{Variable|MyAttribute|Type}}
+
Result:
  
 +
{{Variable|MyAttribute}}
 +
 +
You can optionally also specify a type to be shown before the variable.
 +
 +
Example:
 +
 +
<nowiki>
 +
{{Variable|MyAttribute|Type}}</nowiki>
 +
 +
Result:
 +
 +
{{Variable|MyAttribute|Type}}
 +
 +
[[Category:Template:Text Format]]
 
[[Category:Administration]]
 
[[Category:Administration]]
 
</noinclude>
 
</noinclude>

Revision as of 02:15, 9 December 2018

{{{1}}}


Use this template where you want to show a value or parameter.

Example:

{{Variable|MyAttribute}}

Result:

MyAttribute

You can optionally also specify a type to be shown before the variable.

Example:

{{Variable|MyAttribute|Type}}

Result:

TypeMyAttribute