Permanently protected template

Difference between revisions of "Template:Autolink"

From Yugipedia
Jump to: navigation, search
(remove the zero-width non-joiners to avoid any potential side effects (there shouldn't be any, but it doesn't hurt to be sure))
m (Protected "Template:Autolink" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ #replace: {{ #ifeq: {{ #pos: {{{1}}} | ‌ }} | 0
+
{{ #invoke: Autolink | link }}<noinclude>{{Documentation}}</noinclude>
  | {{{1}}}
 
  | {{ #arraydefine: @template:autolink-links | {{{1<noinclude>|{{int:Mainpage}}</noinclude>}}} | * | unique }}{{ #arrayprint: @template:autolink-links || $x$ | {{ #if: {{ #pos: {{{1}}} | * }} | <nowiki/>
 
* }}{{
 
    #if: {{ #pos: $x$ | {{!((}} }}
 
    | $x$
 
    | {{ #ifeq: {{ #pos: $x$ | &zwnj; }} | {{ #expr: {{ #len: $x$ }} - 6 }}
 
      | $x$
 
      | [[:{{ #replace: {{ #replace: {{ #replace: $x$ | ''' }} | '' }} | "" }}|{{ #if: {{{2|}}} | {{{2}}} | {{ #replace: $x$ | "" | " }} }}]]
 
    }}
 
  }} }}
 
}} | &zwnj; }}<noinclude>{{Documentation}}</noinclude>
 

Revision as of 18:21, 3 June 2019