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

تم إزالة 1,234 بايت ،  قبل 11 سنة
Now using the shared sub-templates. And better handling of normal links.
(Renaming parameter "image=yes/no" to "padlock=yes/no" since that is clearer.)
(Now using the shared sub-templates. And better handling of normal links.)
| yes <!--Supress CSS icon, to not get double icon-->
| no = <span class="plainlinks">
}}[{{sec link/secure url
}}[https://secure.wikimedia.org/{{#switch: {{lc: {{{1|}}} }}
}}| {{#if:project = {{{31|}}}
| wikipedia | w = wikipedia/{{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}
| pagename = {{{32|}}}
| wiktionary | wikt = wiktionary/{{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}
| wikinews | nlang = wikinews/{{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}
| query |= ?{{{query|}}}
| wikibooks | b = wikibooks/{{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}
| {{#if:anchor = {{{anchor|}}}
| wikiquote | q = wikiquote/{{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}
}} {{sec link/text
| wikisource | s = wikisource/{{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}
| project |= {{{lang1|}}}:
| oldwikisource = wikipedia/sources
| ?pagename = {{{query2|}}}
| wikispecies | species = wikipedia/species
| text = {{{3|}}}
| wikiversity | v = wikiversity/{{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}
| lang = {{{lang|}}}
| wikimedia | foundation | wmf = wikipedia/foundation
| commonsquery = wikipedia/commons{{{query|}}}
| anchor |= {{#if:{{{anchor|}}}
| meta | metawikipedia | m = wikipedia/meta
| strategy = wikipedia/strategy
| incubator = wikipedia/incubator
| mw = wikipedia/mediawiki
| nost = wikipedia/nostalgia
| testwiki = wikipedia/test
| #default = wikipedia/{{#if:{{{1|}}}|{{{1}}}|{{CONTENTLANG}}}} <!-- Other language edition -->
}}/wiki/{{PAGENAMEE:Template:{{{2|}}} }}{{#if:{{{query|}}}
| ?{{{query|}}}
| {{#if:{{{anchor|}}}
| &#35;{{anchorencode:{{{anchor}}} }}
}}
}} {{#if: {{{3|}}}
| {{{3}}}
| {{#if: {{{1|}}} | {{{1}}} | {{CONTENTLANG}} }}:{{#if: {{{lang|}}}
| {{{lang}}}:
}}{{#if:x| {{{2|}}} }}{{#if:{{{query|}}}
| ?{{{query|}}}
| {{#if:{{{anchor|}}}
| &#35;{{{anchor}}}
}}
}}
}}]{{#switch: {{lc: {{{padlock|}}} }}
| no = </span>
 
| <!--Not on the secure server, make a normal link-->
{{#if: {{{query|}}} {{{lang|}}}
| <!--Make a queryfull url link, needed when query or lang-->
<span class="plainlinks">[{{fullurl:sec {{#if:{{{1|}}}|{{{1}}}|{{CONTENTLANG}}}}:{{#if:link/normal {{{lang|}}}url
| project |= {{{lang1|}}}:
| pagename }}{{#if:x|= {{{2|}}} }}
}}?{{{query|}}} {{#if:lang = {{{3lang|}}}
| query = {{{3query|}}}
| {{#if:{{{1|}}}|{{{1}}}|{{CONTENTLANG}}}}:{{#if:anchor = {{{langanchor|}}}
|}} {{{lang}}}:sec link/text
| project }}{{#if:x| {{{2|}}}= }}?{{{query1|}}}
| pagename = {{{2|}}}
| text |= &#35;{{{anchor3|}}}
| lang |= &#35;{{{anchorlang|}}}
}}{{#if:x| {{{2|}}}query = }}{{#if:{{{query|}}}
| &#35;{{anchorencode:anchor = {{{anchor|}}} }}
}}]</span>
| <!--Make a normal link-->
[[:{{sec link/normal link
[[:{{#if:{{{1|}}}|{{{1}}}|{{CONTENTLANG}}}}:{{#if: {{{lang|}}}
| project = {{{lang1|}}}:
}}{{#if:x| pagename = {{{2|}}} }}{{#if:{{{anchor|}}}
| &#35;anchor = {{{anchor|}}}
}}|{{#if:sec {{{3|}}}link/text
| project = {{{31|}}}
| {{#if:{{{1|}}}|{{{1}}}|{{CONTENTLANG}}}}:{{#if:pagename = {{{lang2|}}}
| text |= {{{lang3|}}}:
| anchor }}{{#if:x| {{{2|}}}= }}{{#if:{{{anchor|}}}
| &#35;{{{anchor}}}
}}
}}]]
}}
0

تعديل