الفرق بين النسختين بتاع «قالب:Sec link auto»

تم إضافة 736 بايت ،  قبل 11 سنة
Adding the "anchor" and "query" parameters.
(If MediaWiki has permission to unlink the padlock, then it is probably okay to do it here too.)
(Adding the "anchor" and "query" parameters.)
{{#ifeq: {{SERVERNAME}} | secure.wikimedia.org
| {{#switch: {{lc: {{{image|}}} }}
| yes <!--Supress CSS icon, to nonot get double icon-->
| no = <span class="plainlinks">
}}[https://secure.wikimedia.org/{{#switch: {{lc: {{{1|}}} }}
| testwiki = wikipedia/test
| #default = wikipedia/{{#if:{{{1|}}}|{{{1}}}|{{CONTENTLANG}}}} <!-- Other language edition -->
}}/wiki/{{PAGENAMEE:Template:{{{2|}}} }} {{#if: {{{3query|}}}
| ?{{{query|}}}
| {{#if:x| {{{lang}}anchor|} }}:
| &#35;{{anchorencode:{{{anchor}}} }}
}}]]
}} {{#if: {{{3|}}}
| {{{3}}}
| {{#if: {{{1|}}} | {{{1}}} | {{CONTENTLANG}} }}:{{#if: {{{lang|}}}
| {{#if:x| {{{lang}}} }}:
}}{{#if:x| {{{2|}}} }}{{#if:{{{query|}}}
| ?{{{query|}}}
| {{#if:{{{anchor|}}}
| &#35;{{{anchor}}}
}}
}}
}}]{{#switch: {{lc: {{{image|}}} }}
| no = </span>
 
| <!--Not on the secure server, make a normal link-->
[[:{{#if:{{{1|}}}|{{{1}}}|{{CONTENTLANG}}}}:{{#if:{{{langquery|}}}
| <!--Make a query link-->
| {{#if:x| {{{lang}}} }}:
}} <span class="plainlinks">[{{fullurl: {{#if:x| {{{21|}}} |{{{1}}}|{{CONTENTLANG}}}}:{{#if: {{{3lang|}}}
| {{{3lang}}}:
| }}{{#if:{{{1|}}}x| {{{1}}}2|{{CONTENTLANG}}}}:{{#if:{{{lang|} }}
}}?{{{query|}}} {{#if:x| {{{lang3|}}} }}:
}}{{#if:x| {{{2|3}}} }}
| {{#if:{{{1|}}}|{{{1}}}|{{CONTENTLANG}}}}:{{#if: {{{lang|}}}
}}]]
| {{{lang}}}:
}}{{#if:x| {{{2|}}} }}?{{{query|}}}
}}]</span>
| <!--Make a normal link-->
[[:{{#if:{{{1|}}}|{{{1}}}|{{CONTENTLANG}}}}:{{#if: {{{lang|}}}
| {{{lang}}}:
}}{{#if:x| {{{2|}}} }}{{#if:{{{anchor|}}}
| &#35;{{{anchor}}}
}}|{{#if: {{{3|}}}
| {{{3}}}
| {{#if:{{{1|}}}|{{{1}}}|{{CONTENTLANG}}}}:{{#if: {{{lang|}}}
| {{{lang}}}:
}}{{#if:x| {{{2|}}} }}{{#if:{{{anchor|}}}
| &#35;{{{anchor}}}
}}
}}]]
}}
}}<noinclude>
 
0

تعديل