Difference between revisions of "Template:PropertyData"

From FreeCAD Documentation
Jump to navigation Jump to search
(Pre tags.)
Line 34: Line 34:
 
The ''Data'' keyword is printed.
 
The ''Data'' keyword is printed.
  
<nowiki>
+
<pre>
{{PropertyData|Make Face}}: create a face.</nowiki>
+
{{PropertyData|Make Face}}: create a face.
 +
</pre>
  
 
{{PropertyData|Make Face}}: create a face.
 
{{PropertyData|Make Face}}: create a face.
Line 45: Line 46:
 
If the second argument is given, the ''type'' of variable is printed.
 
If the second argument is given, the ''type'' of variable is printed.
  
<nowiki>
+
<pre>
{{PropertyData|Make Face|Bool}}: create a face.</nowiki>
+
{{PropertyData|Make Face|Bool}}: create a face.
 +
</pre>
  
 
{{PropertyData|Make Face|Bool}}: create a face.
 
{{PropertyData|Make Face|Bool}}: create a face.
Line 56: Line 58:
 
If the third argument is given, the ''hidden'' text is printed.
 
If the third argument is given, the ''hidden'' text is printed.
  
<nowiki>
+
<pre>
{{PropertyData|Proxy|PythonObject|hidden}}: a custom class associated with this object.</nowiki>
+
{{PropertyData|Proxy|PythonObject|hidden}}: a custom class associated with this object.
 +
</pre>
  
 
{{PropertyData|Proxy|PythonObject|hidden}}: a custom class associated with this object.
 
{{PropertyData|Proxy|PythonObject|hidden}}: a custom class associated with this object.

Revision as of 07:51, 8 September 2021

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.