Template:PropertyView: Difference between revisions
No edit summary |
(If the third argument is given, the ''hidden'' text is printed.) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Variable|{{{1}}}|View|{{{2|}}}|{{#if:{{{3|}}} |
|||
<span style="font-size: 0.6em;padding-right:10px;">VIEW</span>'''{{{1}}}'''<noinclude> |
|||
|hidden |
|||
|}}}}<noinclude> |
|||
---- |
---- |
||
Use this template where you want to show a View property |
Use this template where you want to show a View property. See also [[Template:PropertyData]], [[Template:TitleProperty]]. |
||
<nowiki>{{PropertyView|Length}}</nowiki> |
|||
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> |
|||
{{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|Length}} |
|||
[[Category:Template:Text Format]] |
|||
[[Category:Administration]] |
[[Category:Administration]] |
||
</noinclude> |
</noinclude> |
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.