From WikiChip
Difference between revisions of "Template:url parse anchor"

m (Protected "Template:url parse anchor": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{#pos:{{{1}}}|#}} | | {{#sub: {{{1}}} | {{#expr:{{#pos:{{{1}}}|#}} + 1}} }} }}</includeonly><noinclude>{{Url parse anchor/Doc}}
+
<includeonly>{{#if: {{#pos:{{{1}}}|#}} | {{#sub: {{{1}}} | {{#expr:{{#pos:{{{1}}}|#}} + 1}} }} | }}</includeonly><noinclude>{{Url parse anchor/Doc}}
 
</noinclude><noinclude>[[Category:templates]]</noinclude>
 
</noinclude><noinclude>[[Category:templates]]</noinclude>

Latest revision as of 13:42, 27 March 2019

Template documentation


Returns the anchor part of a link.

Usage

{{Url parse anchor| Link }}

Example

"{{Url parse anchor|ABC}}" vs "{{Url parse anchor|ABC#Anchor}}"
"" vs "Anchor"