getPropertyDefault: Difference between revisions
Jump to navigation
Jump to search
Bubblobill (talk | contribs) m (provided link to token property) |
No edit summary |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
|version=1.3b48 | |version=1.3b48 | ||
|description= | |description= | ||
Returns the [[ | Returns the [[Introduction to Properties#Creating Properties| default value]] of a [[Introduction_to_Tokens#Properties| token property]] for the [[Current Token]]. If the [[Introduction to Properties#Creating Properties| default value]] contains nothing then an empty string ({{code|""}}) is returned. | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
getPropertyDefault(name) | getPropertyDefault(name) | ||
getPropertyDefault(name, propType) | getPropertyDefault(name, propType) | ||
</ | </syntaxhighlight> | ||
'''Parameter''' | '''Parameter''' |
Latest revision as of 23:59, 20 April 2023
getPropertyDefault() Function
• Introduced in version 1.3b48
Returns the default value of a token property for the Current Token. If the default value contains nothing then an empty string (
""
) is returned.Usage
getPropertyDefault(name)
getPropertyDefault(name, propType)
Parameter
name
- The name of the property to get the default value of.propType
- The token type to get the property from. Defaults to the token type of the Current Token.