getImpersonatedName: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) (Removed trusted.) |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 5: | Line 5: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
getImpersonatedName() | getImpersonatedName() | ||
</ | getImpersonatedName(global) | ||
</syntaxhighlight> | |||
'''Parameter''' | |||
{{param|global|If set to {{false}}, returns the name of the token impersonated in the current macro context. If set to {{true}}, returns the name of the token impersonated globally through the UI. Defaults to {{false}} (macro context).}} | |||
|changes= | |changes= | ||
{{change|1.3b51|No longer a trusted function.}} | {{change|1.3b51|No longer a trusted function.}} | ||
{{change|1.7.0|Added parameter "global".}} | |||
}} | }} | ||
[[Category:Token Function]] | [[Category:Token Function]] | ||
[[Category:Impersonation Function]] |
Latest revision as of 23:59, 14 March 2023
getImpersonatedName() Function
• Introduced in version 1.3b48
Returns the name of the impersonated token.
Usage
getImpersonatedName()
getImpersonatedName(global)
Parameter
global
- If set tofalse
(0
), returns the name of the token impersonated in the current macro context. If set totrue
(1
), returns the name of the token impersonated globally through the UI. Defaults tofalse
(0
) (macro context).
Version Changes
- 1.3b51 - No longer a trusted function.
- 1.7.0 - Added parameter "global".