Difference between revisions of "Template:Sec link auto"

From Self-sufficiency
Jump to: navigation, search
m (11 revisions from wikipedia:Template:Sec link auto)
m (1 revision: Digital circuits (Import from Wikipedia))
 
(3 intermediate revisions by 3 users 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>
  
{{pp-template}}
 
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 18:11, 9 December 2011

Main Page