Permanently protected template

Difference between revisions of "Template:Autolink"

From Yugipedia
Jump to: navigation, search
(add support for lists (I hope))
(check for unknown parameters)
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{ #arraydefine: links | {{{1<nowiki>|Main Page</nowiki>}}} | * | unique }}{{ #arrayprint: links || $x$ | <nowiki/>
+
{{ safesubst:<noinclude/>#invoke: Autolink | link }}{{#invoke:Check for unknown parameters|check|showblankpositional=1|unknown=[[Category:((Autolink)) transclusions using unknown parameters]]|preview=unknown <nowiki>{{Autolink}}</nowiki> parameter "_VALUE_"|1|t}}{{ #if: {{{t|}}} || {{ #if: {{ #pos: {{{1}}} | '' }}{{ #pos: {{{1}}} | "" }}{{ #pos: {{{1}}} | # }}{{ #pos: {{{1}}} | * }}{{ #pos: {{{1}}} | {{!((}} }} | [[((Autolink)) value::{{ #replace: {{ #replace: {{ #replace: {{ #replace: {{{1|}}} | {{!}} | &#124; }} | {{!(}} | &#91; }} | {{)!}} | &#93; }} | * | &#42; }}| ]] }} }}<noinclude>{{Documentation}}</noinclude>
* {{
 
  #if: {{ #pos: $x$ | {{!((}} }}
 
  | $x$
 
  | [[{{ #replace: {{ #replace: $x$ | ''' }} | '' }}|{{ #if: {{{2|}}} | {{{2}}} | $x$ }}]]
 
}} }}
 

Latest revision as of 19:31, 31 March 2024