Permanently protected template

Difference between revisions of "Template:Autolink"

From Yugipedia
Jump to: navigation, search
(make it handle category links)
m (Protected "Template:Autolink" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ #arraydefine: links | {{{1<noinclude>|Main Page</noinclude>}}} | * | unique }}{{ #arrayprint: links || $x$ | {{ #if: {{ #pos: {{{1}}} | * }} | <nowiki/>
+
{{ #invoke: Autolink | link }}<noinclude>{{Documentation}}</noinclude>
* }}{{
 
  #if: {{ #pos: $x$ | {{!((}} }}
 
  | $x$
 
  | [[:{{ #replace: {{ #replace: {{ #replace: $x$ | ''' }} | '' }} | "" }}|{{ #if: {{{2|}}} | {{{2}}} | {{ #replace: $x$ | "" | " }} }}]]
 
}} }}<noinclude>{{Documentation}}</noinclude>
 

Revision as of 18:21, 3 June 2019