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).)
m (1 revision)
 
(6 intermediate revisions by 4 users not shown)
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|}}}
Line 15: Line 19:
 
}}<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:39, 13 October 2010

Main Page