Difference between revisions of "Template:Sec link/text"

From Self-sufficiency
Jump to: navigation, search
(Creating the sub-template that shows the link caption (a text or a text looking like a link).)
(Better handling of local links.)
Line 2: Line 2:
 
| {{{text}}}
 
| {{{text}}}
 
| {{#if: {{{project|}}}  
 
| {{#if: {{{project|}}}  
   | {{{project}}}
+
   | {{{project}}}:{{#if: {{{lang|}}}
  | {{CONTENTLANG}}
+
    | {{{lang}}}:
  }}:{{#if: {{{lang|}}}
+
    }}{{{pagename|}}}
  | {{{lang}}}:
+
  | <!--No project, so a local link-->
  }}{{#if:x| {{{pagename|}}} }}{{
+
    {{#if: {{{pagename|}}}
 +
    | {{{pagename}}}
 +
    | {{MediaWiki:Mainpage}}   <!--Main page name at the local project-->
 +
    }}
 +
  }}{{
 
   #if: {{{query|}}}
 
   #if: {{{query|}}}
 
   | ?{{{query|}}}
 
   | ?{{{query|}}}

Revision as of 23:46, 24 December 2009

Main Page