Template:PropertyView: Difference between revisions

From FreeCAD Documentation
(If the third argument is given, the ''hidden'' text is printed.)
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Variable|{{{1}}}|VIEW}}<noinclude>
{{Variable|{{{1}}}|View|{{{2|}}}|{{#if:{{{3|}}}
|hidden
|}}}}<noinclude>


----
----


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


Example:
Example:

The ''View'' keyword is printed.

<nowiki>
{{PropertyView|Line Width}}: width of the edge.</nowiki>

{{PropertyView|Line Width}}: width of the edge.

----

Example 2:

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

<nowiki>
{{PropertyView|Line Width|FloatConstraint}}: width of the edge.</nowiki>

{{PropertyView|Line Width|FloatConstraint}}: width of the edge.

----

Example 3:

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


<nowiki>
<nowiki>
{{PropertyView|Line Width}}</nowiki>
{{PropertyView|Proxy|PythonObject|hidden}}: a custom view provider class associated with this object.</nowiki>


{{PropertyView|Proxy|PythonObject|hidden}}: a custom view provider class associated with this object.
{{PropertyView|Line Width}}


[[Category:Template:Text Format]]
[[Category:Template:Text Format]]

Revision as of 08:11, 18 January 2020

View{{{1}}}


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

Example:

The View keyword is printed.

{{PropertyView|Line Width}}: width of the edge.

ViewLine Width: width of the edge.


Example 2:

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

{{PropertyView|Line Width|FloatConstraint}}: width of the edge.

ViewLine Width (FloatConstraint): width of the edge.


Example 3:

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

{{PropertyView|Proxy|PythonObject|hidden}}: a custom view provider class associated with this object.

View (hidden)Proxy (PythonObject): a custom view provider class associated with this object.