Template:PropertyView: Difference between revisions

From FreeCAD Documentation
(If the third argument is given, the ''hidden'' text is printed.)
m (link update - a little - (to the Polish version))
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Variable|{{{1}}}|View|{{{2|}}}|{{{3|}}}}}<noinclude>
{{Variable|{{{1}}}|{{#switch:{{#translation:}}
|/bg=Вид
|/cs=Pohled
|/de=Ansicht
|/en=View
|/es=Vista
|/fr=Vue
|/hr=Pregled
|/hu=Nézet
|/id=Tampilan
|/it=Vista
|/ja=ビュー
|/ko=보기
|/pl=WIDOK
|/pt=Ver
|/pt-br=Vista
|/ro=Vizualizare
|/ru=Вид
|/sv=Vy
|/tr=Görünüm
|/uk=Вигляд
|/zh=View
|/zh-cn=视图
|/zh-hant=View
|/zh-tw=檢視
|View}}|{{{2|}}}|{{{3|}}}|}}<noinclude>


----
----
Line 9: Line 34:
The ''View'' keyword is printed.
The ''View'' keyword is printed.


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


{{PropertyView|Line Width}}: width of the edge.
{{PropertyView|Line Width}}: width of the edge.
Line 18: 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>
{{PropertyView|Line Width|FloatConstraint}}: width of the edge.</nowiki>
{{PropertyView|Line Width|FloatConstraint}}: width of the edge.
</pre>


{{PropertyView|Line Width|FloatConstraint}}: width of the edge.
{{PropertyView|Line Width|FloatConstraint}}: width of the edge.
Line 29: 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>
{{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.
</pre>


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


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

Latest revision as of 08:54, 1 November 2021

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 the data 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 type of the property is printed. One or more of these types can apply: Hidden, ReadOnly and Output.

{{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.