Changes

Jump to: navigation, search

Template:Autolink

292 bytes added, 9 years ago
don't link autoinserted quotes if they're the first and last parts of the input (and only those parts) (wow, that's ugly >_> )
| {{ #ifeq: {{ #pos: $x$ | ‌ }} | {{ #expr: {{ #len: $x$ }} - 6 }}
| $x$
| {{ #vardefineecho: $template:autolink-quote | {{ #if: {{and|{{ #ifeq: {{ #pos: $x$ | "" }} | 0 | 1 }}|{{ #ifexpr: {{ #len: $x$ }} = {{ #pos: $x$ | "" | 1 }} + 2 | 1 }}}} | " }} }}[[:{{ #replace: {{ #replace: {{ #replace: $x$ | ''' }} | '' }} | "" }}|{{ #if: {{{2|}}} | {{{2}}} | {{ #if: {{ #var: $template:autolink-quote }} | {{ #replace: $x$ | "" }} | {{ #replace: $x$ | "" | " }} }} }}]]{{ #var: $template:autolink-quote }}
}}
}} }}
}} | &zwnj; }}<noinclude>{{Documentation}}</noinclude>

Navigation menu