Template:Slug: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
(Created page with "<includeonly>{{#sub:{{{1|{{SUBPAGENAME}}}}}|0|2}}</includeonly><noinclude> ==Usage== Returns the slug of a pagename. ==Arguments== *1: The page name, optional; the default is...") |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#sub:{{{1|{{SUBPAGENAME}}}}}|0|2}}</includeonly><noinclude> | <includeonly>{{#sub:{{{1|{{SUBPAGENAME}}}}}|0|2}}</includeonly><noinclude> | ||
==Usage== | ==Usage== | ||
Returns the slug of a pagename. | Returns the slug of a pagename. [[Template:Core]] returns the page name without the slug, and [[template:parent]] tries to find the parent element. | ||
==Arguments== | ==Arguments== | ||
*1: The page name, optional; the default is the current page name via <nowiki>{{SUBPAGENAME}}</nowiki> | *1: The page name, optional; the default is the current page name via <nowiki>{{SUBPAGENAME}}</nowiki> |
Revision as of 16:23, 21 March 2022
Usage
Returns the slug of a pagename. Template:Core returns the page name without the slug, and template:parent tries to find the parent element.
Arguments
- 1: The page name, optional; the default is the current page name via {{SUBPAGENAME}}
Example
{{slug|IS:track}}
returns:
IS