Difference between revisions of "Template:SmartLink/Anchor"
Jump to navigation
Jump to search
(fix for end in ?) |
|||
Line 6: | Line 6: | ||
|? | |? | ||
|. | |. | ||
− | |;={{SmartLink/Anchor/So-called|{{#sub:{{{1}}}|0|-1}}}} | + | |;={{SmartLink/Anchor/So-called|{{#sub:{{{1}}}|0|-1}}}}{{#substring:{{{1|}}}|-1}} |
|#default={{SmartLink/Anchor/So-called|{{{1|}}}}} | |#default={{SmartLink/Anchor/So-called|{{{1|}}}}} | ||
}}</includeonly> | }}</includeonly> |
Revision as of 11:19, 10 October 2016
This is used by Template:SmartLink. 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)
- If the pagename exists and has Property:So called, give it "..." marks (via Template:SmartLink/Anchor/So-called)