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

m
Line 1: Line 1:
<includeonly>{{#ifeq: {{#pos: {{{1}}} | # }}
+
<includeonly>{{#ifeq: {{#pos:{{{1}}}|#}} | 0 | /* nothing */ | {{#sub: {{{1}}} | {{#pos: {{{1}}} | # }} }} }}</includeonly><noinclude>{{Url parse anchor/Doc}}</noinclude><noinclude>[[Category:templates]]</noinclude>
| 0
 
|
 
| {{#sub: {{{1}}} | {{#pos: {{{1}}} | # }} }}
 
}}</includeonly><noinclude>{{Url parse anchor/Doc}}
 
</noinclude><noinclude>[[Category:templates]]</noinclude>
 

Revision as of 21:22, 23 July 2014

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"