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

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

Latest revision as of 14: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"