Difference between revisions of "Template:Title all but last part"

From Wikispooks
Jump to navigation Jump to search
(Created page with "<noinclude>Category:String manipulation templates'''Returns the last part of the title of the page on which it is run. So on page 9-11/WTC7/Collapse/Censorship it retu...")
 
 
Line 1: Line 1:
 
<noinclude>[[Category:String manipulation templates]]'''Returns the last part of the title of the page on which it is run. So on page [[9-11/WTC7/Collapse/Censorship]] it returns "Censorship".''' The main purpose is to implement [[Template:MaybePrev]] and [[Template:MaybeNext]].<br/>
 
<noinclude>[[Category:String manipulation templates]]'''Returns the last part of the title of the page on which it is run. So on page [[9-11/WTC7/Collapse/Censorship]] it returns "Censorship".''' The main purpose is to implement [[Template:MaybePrev]] and [[Template:MaybeNext]].<br/>
 
''Usage:''<br/>
 
''Usage:''<br/>
<nowiki>{{Title all but last part}}</nowiki></noinclude><includeonly>{{#titleparts: {{PAGENAME}} | -1 }} </includeonly>
+
<nowiki>{{Title all but last part}}</nowiki></noinclude><includeonly>{{#titleparts: {{PAGENAME}} | -1 }}</includeonly>

Latest revision as of 14:33, 1 April 2023

Returns the last part of the title of the page on which it is run. So on page 9-11/WTC7/Collapse/Censorship it returns "Censorship". The main purpose is to implement Template:MaybePrev and Template:MaybeNext.
Usage:
{{Title all but last part}}