Difference between revisions of "Template:PropertyView"

From FreeCAD Documentation
Jump to navigation Jump to search
(Change the VIEW text to lowercase. Use the second argument of the Variable template.)
(If the third argument is given, the ''hidden'' text is printed.)
Line 1: Line 1:
{{Variable|{{{1}}}|View|{{{2|}}}}}<noinclude>
+
{{Variable|{{{1}}}|View|{{{2|}}}|{{{3|}}}}}<noinclude>
  
 
----
 
----
Line 6: Line 6:
  
 
Example:
 
Example:
 +
 +
The ''View'' keyword is printed.
  
 
  <nowiki>
 
  <nowiki>
Line 15: Line 17:
  
 
Example 2:
 
Example 2:
 +
 +
If the second argument is given, the ''type'' of variable is printed.
  
 
  <nowiki>
 
  <nowiki>
Line 20: Line 24:
  
 
{{PropertyView|Line Width|FloatConstraint}}: width of the edge.
 
{{PropertyView|Line Width|FloatConstraint}}: width of the edge.
 +
 +
----
 +
 +
Example 3:
 +
 +
If the third argument is given, the ''hidden'' text is printed.
 +
 +
<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.
  
 
[[Category:Template:Text Format]]
 
[[Category:Template:Text Format]]
 
[[Category:Administration]]
 
[[Category:Administration]]
 
</noinclude>
 
</noinclude>

Revision as of 08:08, 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.