Template:GetFileName/doc
From Dragon Mania Legends (DML) Wiki
< Template:GetFileNameDocumentation subpage |
---|
View this documentation's related template: Template:GetFileName |
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 |