Template:GetFileName
From Dragon Mania Legends (DML) Wiki
Template documentation |
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this template's documentation. (About template documentation) |
Example(s)
{{#sub:Sweet Forest Habitat.png|0|-4}}
gives: Sweet Forest Habitat{{GetFileName|Sweet Forest Habitat.png}}
gives: Sweet Forest Habitat
Note: {{PAGENAME}}
itself gives the page name without namespace, but would include file extension, this template trims that off.
See Also
Determines a file's title only, removing namespace (if the default, {{PAGENAME}} is used), and removes file extension of the given parameter. This template is primarily used by infobox and data-automation templates.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page Name | 1 | no description
| String | optional |