Difference between revisions of "Template:SmartLink/Anchor"
Jump to navigation
Jump to search
(Created page with "<noinclude>This is used by Template:SmartLink and Template:ArrayMapPropertyListLink. It is 'smart', in that it does the following operation:<br/> * It removes a traili...") |
(Expand to remove trailing . and ;) |
||
Line 1: | Line 1: | ||
<noinclude>This is used by [[Template:SmartLink]] and [[Template:ArrayMapPropertyListLink]]. It is 'smart', in that it does the following operation:<br/> | <noinclude>This is used by [[Template:SmartLink]] and [[Template:ArrayMapPropertyListLink]]. It is 'smart', in that it does the following operation:<br/> | ||
− | * It removes a trailing | + | * It removes a trailing punctuation character ('.', ';' or '?') from the pagename (e.g. to allow people to end links in "?" to indicate uncertainty) |
− | </noinclude><includeonly>{{# | + | </noinclude><includeonly>{{#switch: {{#substring:{{{1|}}}|-1}} |
+ | |= | ||
+ | |? | ||
+ | |. | ||
+ | |;={{#sub:{{{1}}}|0|-1}} | ||
+ | |#default={{{1|}}} | ||
+ | }}</includeonly> |
Revision as of 14:41, 13 April 2016
This is used by Template:SmartLink and Template:ArrayMapPropertyListLink. It is 'smart', in that it does the following operation:
- It removes a trailing punctuation character ('.', ';' or '?') from the pagename (e.g. to allow people to end links in "?" to indicate uncertainty)