Difference between revisions of "Template:SmartLink/Anchor"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | <noinclude>[[Category:String manipulation templates]] This is used by [[Template:SmartLink]], as is [[Template:SmartLink/Link]]. It is 'smart', in that it does the following operation:<br/> | + | <noinclude>[[Category:String manipulation templates]]This is used by [[Template:SmartLink]], as is [[Template:SmartLink/Link]]. It is 'smart', in that it does the following operation:<br/> |
* If the pagename exists and has [[Property:So called]], give it "..." marks ''(via [[Template:SmartLink/Anchor/So-called]])'' | * If the pagename exists and has [[Property:So called]], give it "..." marks ''(via [[Template:SmartLink/Anchor/So-called]])'' | ||
** Before testing whether the pagename exists, it removes a trailing punctuation character ('.', ';' or '?') from the pagename (e.g. to allow people to end links in "?" to indicate uncertainty) | ** Before testing whether the pagename exists, it removes a trailing punctuation character ('.', ';' or '?') from the pagename (e.g. to allow people to end links in "?" to indicate uncertainty) |
Revision as of 11:32, 10 October 2016
This is used by Template:SmartLink, as is Template:SmartLink/Link. It is 'smart', in that it does the following operation:
- If the pagename exists and has Property:So called, give it "..." marks (via Template:SmartLink/Anchor/So-called)
- Before testing whether the pagename exists, it removes a trailing punctuation character ('.', ';' or '?') from the pagename (e.g. to allow people to end links in "?" to indicate uncertainty)