Help:Parser functions/anchorencode

From Disney•Pixar CARS Wiki
Jump to navigation Jump to search
anchorencode
{{#anchorencode: unnamed=

}}
Help

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
stringunnamedName of page section (or other id= anchor)
Returns
URL-encoded anchor fragment.