Help:Parser functions/anchorencode
Jump to navigation
Jump to search
| anchorencode | {{#anchorencode: unnamed=
}} |
|
URL-encode the link anchor shortcut (fragment) as in a page title; the part trailing a #Number sign. Ideal for appending a processed external link.
The # itself is not input or output.
- Example
{{anchorencode:Names in other languages}}--> Names_in_other_languages{{canonicalurl:Doc Hudson}}#{{anchorencode:Names in other languages}}--> https://dpcarswiki.com/Doc_Hudson#Names_in_other_languages
- Parameters
string unnamed Name of page section (or other id=anchor)
- Returns
- URL-encoded anchor fragment.