Template:Slug: Difference between revisions

From railML 2 Wiki
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
 
(One intermediate revision by the same user not shown)
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:getParent]] 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>

Latest 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:getParent 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