Difference between revisions of "Template:PropertyData"

From FreeCAD Documentation
Jump to navigation Jump to search
m (update - a little - (to the Polish version))
 
(2 intermediate revisions by one other user not shown)
Line 12: Line 12:
 
|/ja=データ
 
|/ja=データ
 
|/ko=데이터
 
|/ko=데이터
|/pl=Dane
+
|/pl=DANE
 
|/pt=Dados
 
|/pt=Dados
 
|/pt-br=Dados
 
|/pt-br=Dados
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 43: Line 44:
 
Example 2:
 
Example 2:
  
If the second argument is given, the ''type'' of variable is printed.
+
If the second argument is given, the ''type'' of the data 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 54: Line 56:
 
Example 3:
 
Example 3:
  
If the third argument is given, the ''hidden'' text is printed.
+
If the third argument is given, the ''type'' of the property is printed. One or more of these types can apply: <code>Hidden</code>, <code>ReadOnly</code> and <code>Output</code>.
  
<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.
  
 
[[Category:Template:Text Format]]
 
[[Category:Template:Text Format]]
 
[[Category:Administration]]
 
[[Category:Administration]]
 
</noinclude>
 
</noinclude>

Latest revision as of 08:54, 1 November 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 the data is printed.

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

DataMake Face (Bool): create a face.


Example 3:

If the third argument is given, the type of the property is printed. One or more of these types can apply: Hidden, ReadOnly and Output.

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

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