Template:PropertyData: Difference between revisions
(Example 3: using the third parameter to establish a hidden property) |
(If the third argument is given, the ''hidden'' text is printed.) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Variable|{{{1}}}|Data|{{{2|}}}|{{{3|}}} |
{{Variable|{{{1}}}|Data|{{{2|}}}|{{#if:{{{3|}}} |
||
|hidden |
|||
|}}}}<noinclude> |
|||
---- |
---- |
||
Line 6: | Line 8: | ||
Example: |
Example: |
||
The ''Data'' keyword is printed. |
|||
<nowiki> |
<nowiki> |
||
Line 15: | Line 19: | ||
Example 2: |
Example 2: |
||
If the second argument is given, the ''type'' of variable is printed. |
|||
<nowiki> |
<nowiki> |
||
Line 24: | Line 30: | ||
Example 3: |
Example 3: |
||
If the third argument is given, the ''hidden'' text is printed. |
|||
<nowiki> |
<nowiki> |
Revision as of 08:11, 18 January 2020
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.