getMapDisplayName: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{MacroFunction |name=getMapDisplayName |version=1.9.0 |description= Returns the display name of a given map. If no map is specified the current map is selected. |usage= <sour...") |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
Returns the display name of a given map. If no map is specified the current map is selected. | Returns the display name of a given map. If no map is specified the current map is selected. | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
getMapDisplayName() | getMapDisplayName() | ||
getMapDisplayName(mapName) | getMapDisplayName(mapName) | ||
</ | </syntaxhighlight> | ||
'''Parameters''' | '''Parameters''' | ||
{{param|mapName|Optional. A string containing the name of the Map.}} | {{param|mapName|Optional. A string containing the name of the Map.}} | ||
|examples= | |examples= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r:getMapDisplayName()] | [r:getMapDisplayName()] | ||
[r:getMapDisplayName("Grasslands")] | [r:getMapDisplayName("Grasslands")] | ||
</ | </syntaxhighlight> | ||
}} | }} | ||
[[Category:Map Function]] | [[Category:Map Function]] |
Latest revision as of 19:05, 14 March 2023
getMapDisplayName() Function
• Introduced in version 1.9.0
Returns the display name of a given map. If no map is specified the current map is selected.
Usage
getMapDisplayName()
getMapDisplayName(mapName)
Parameters
mapName
- Optional. A string containing the name of the Map.
Examples
[r:getMapDisplayName()]
[r:getMapDisplayName("Grasslands")]