Difference between revisions of "Template:Sec link auto"

From Self-sufficiency
Jump to: navigation, search
m (1 revision)
m (1 revision: Digital circuits (Import from Wikipedia))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#ifeq: {{SERVERNAME}} | secure.wikimedia.org
+
{{#switch: {{lc: {{{padlock|}}} }}
| {{#switch: {{lc: {{{padlock|}}} }}
+
 
   | yes    <!--Supress CSS icon, to not get double icon-->
 
   | yes    <!--Supress CSS icon, to not get double icon-->
 
   | no = <span class="plainlinks">
 
   | no = <span class="plainlinks">
   }}[{{sec link/secure url
+
   }}[{{sec link/relative url
 
   | project = {{{1|}}}
 
   | project = {{{1|}}}
 
   | pagename = {{{2|}}}
 
   | pagename = {{{2|}}}
Line 19: Line 18:
 
   | no = </span>
 
   | no = </span>
 
   | yes = </span>[[File:Lock icon blue.gif|16x13px|link=]]
 
   | yes = </span>[[File:Lock icon blue.gif|16x13px|link=]]
  }}
 
 
| <!--Not on the secure server, make a normal link-->
 
  {{#if: {{{query|}}} {{{lang|}}}
 
  | <!--Make a full url link, needed when query or lang-->
 
    <span class="plainlinks">[{{sec link/normal url
 
    | project = {{{1|}}}
 
    | pagename = {{{2|}}}
 
    | lang = {{{lang|}}}
 
    | query = {{{query|}}}
 
    | anchor = {{{anchor|}}}
 
    }} {{sec link/text
 
    | project = {{{1|}}}
 
    | pagename = {{{2|}}}
 
    | text = {{{3|}}}
 
    | lang = {{{lang|}}}
 
    | query = {{{query|}}}
 
    | anchor = {{{anchor|}}}
 
    }}]</span>
 
  | <!--Make a normal link-->
 
    [[:{{sec link/normal link
 
    | project = {{{1|}}}
 
    | pagename = {{{2|}}}
 
    | anchor = {{{anchor|}}}
 
    }}|{{sec link/text
 
    | project = {{{1|}}}
 
    | pagename = {{{2|}}}
 
    | text = {{{3|}}}
 
    | anchor = {{{anchor|}}}
 
    }}]]
 
  }}
 
 
}}<noinclude>
 
}}<noinclude>
  

Latest revision as of 18:11, 9 December 2011

Main Page