Template:PropertyData: Difference between revisions

From FreeCAD Documentation
(Undo revision 280618 by Mario52 (talk))
(If the third argument is given, the ''hidden'' text is printed.)
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Variable|{{{1}}}|Data|{{{2|}}}|{{#if:{{{3|}}}
<span style="font-size: 0.6em;padding-right:10px;">DATA</span>'''{{{1}}}'''<noinclude>
|hidden
|}}}}<noinclude>

----
----


Use this template where you want to show a Data property, for example:
Use this template where you want to show a Data property. See also [[Template:PropertyView]], [[Template:TitleProperty]].

<nowiki>{{PropertyData|Length}}</nowiki>
Example:

The ''Data'' keyword is printed.

<nowiki>
{{PropertyData|Make Face}}: create a face.</nowiki>

{{PropertyData|Make Face}}: create a face.

----

Example 2:

If the second argument is given, the ''type'' of variable is printed.

<nowiki>
{{PropertyData|Make Face|Bool}}: create a face.</nowiki>

{{PropertyData|Make Face|Bool}}: create a face.

----

Example 3:

If the third argument is given, the ''hidden'' text is printed.

<nowiki>
{{PropertyData|Proxy|PythonObject|hidden}}: a custom class associated with this object.</nowiki>

{{PropertyData|Proxy|PythonObject|hidden}}: a custom class associated with this object.


[[Category:Template:Text Format]]
[[Category:Administration]]
[[Category:Administration]]
</noinclude>
</noinclude>

Revision as of 08:11, 18 January 2020

Data{{{1}}}


Use this template where you want to show a Data property. See also Template:PropertyView, Template:TitleProperty.

Example:

The Data keyword is printed.

{{PropertyData|Make Face}}: create a face.

DataMake Face: create a face.


Example 2:

If the second argument is given, the type of variable is printed.

{{PropertyData|Make Face|Bool}}: create a face.

DataMake Face (Bool): create a face.


Example 3:

If the third argument is given, the hidden text is printed.

{{PropertyData|Proxy|PythonObject|hidden}}: a custom class associated with this object.

Data (hidden)Proxy (PythonObject): a custom class associated with this object.