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

From Self-sufficiency
Jump to: navigation, search
m (1 revision)
(Creating the sub-template that shows the link caption (a text or a text looking like a link).)
(3 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
| {{{text}}}
 
| {{{text}}}
 
| {{#if: {{{project|}}}  
 
| {{#if: {{{project|}}}  
   | {{{project}}}:{{#if: {{{lang|}}}
+
   | {{{project}}}
    | {{{lang}}}:
+
  | {{CONTENTLANG}}
    }}{{{pagename|}}}
+
  }}:{{#if: {{{lang|}}}
  | <!--No project, so a local link-->
+
  | {{{lang}}}:
    {{#if: {{{pagename|}}}
+
  }}{{#if:x| {{{pagename|}}} }}{{
    | {{{pagename}}}
+
    | {{MediaWiki:Mainpage}}   <!--Main page name at the local project-->
+
    }}
+
  }}{{
+
 
   #if: {{{query|}}}
 
   #if: {{{query|}}}
 
   | ?{{{query|}}}
 
   | ?{{{query|}}}
Line 19: Line 15:
 
}}<noinclude>
 
}}<noinclude>
  
{{pp-template}}
+
<!-- {{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>

Revision as of 21:45, 24 December 2009

en: