Template:PropertyData: Difference between revisions
(Example 3: using the third parameter to establish a hidden property) |
m (update - a little - (to the Polish version)) |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{Variable|{{{1}}} |
{{Variable|{{{1}}}|{{#switch:{{#translation:}} |
||
|/bg=Данни |
|||
|/cs=Údaje |
|||
|/de=Daten |
|||
|/en=Data |
|||
|/es=Datos |
|||
|/fr=Données |
|||
|/hr=Podaci |
|||
|/hu=Adat |
|||
|/id=Data |
|||
|/it=Dati |
|||
|/ja=データ |
|||
|/ko=데이터 |
|||
|/pl=DANE |
|||
|/pt=Dados |
|||
|/pt-br=Dados |
|||
|/ro=Date |
|||
|/ru=Данные |
|||
|/sv=Data |
|||
|/tr=Veri |
|||
|/uk=Дані |
|||
|/zh=Data |
|||
|/zh-cn=数据 |
|||
|/zh-hant=Data |
|||
|/zh-tw=資料 |
|||
|Data}}|{{{2|}}}|{{{3|}}}|}}<noinclude> |
|||
---- |
---- |
||
Line 7: | Line 32: | ||
Example: |
Example: |
||
The ''Data'' keyword is printed. |
|||
<nowiki> |
|||
⚫ | |||
<pre> |
|||
⚫ | |||
</pre> |
|||
{{PropertyData|Make Face}}: create a face. |
{{PropertyData|Make Face}}: create a face. |
||
Line 16: | Line 44: | ||
Example 2: |
Example 2: |
||
If the second argument is given, the ''type'' of the data is printed. |
|||
<nowiki> |
|||
⚫ | |||
<pre> |
|||
⚫ | |||
</pre> |
|||
{{PropertyData|Make Face|Bool}}: create a face. |
{{PropertyData|Make Face|Bool}}: create a face. |
||
Line 25: | Line 56: | ||
Example 3: |
Example 3: |
||
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> |
|||
⚫ | |||
</pre> |
|||
{{PropertyData|Proxy|PythonObject| |
{{PropertyData|Proxy|PythonObject|Hidden}}: a custom class associated with this object. |
||
[[Category:Template:Text Format]] |
[[Category:Template:Text Format]] |
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.