Template:Sec link/text: Difference between revisions

From Lojban
Jump to navigation Jump to search
mNo edit summary
 
m (1 revision)
Line 1: Line 1:
#REDIRECT [[Robin's Palm Writings nicte cadzu 4 pi 4 pi'e 1 mo'o]]
{{#if: {{{text|}}}
| {{{text}}}
| {{#if: {{{project|}}}
  | {{{project}}}:{{#if: {{{lang|}}}
    | {{{lang}}}:
    }}{{{pagename|}}}
  | <!--No project, so a local link-->
    {{#if: {{{pagename|}}}
    | {{{pagename}}}
    | {{MediaWiki:Mainpage}}  <!--Main page name at the local project-->
    }}
  }}{{
  #if: {{{query|}}}
  | ?{{{query|}}}
  | {{#if: {{{anchor|}}}
    | &#35;{{{anchor}}}
    }}
  }}
}}<noinclude>
 
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>

Revision as of 12:15, 28 February 2014

Lojban

Documentation icon Template documentation[view] [edit] [history] [purge]

This is the {{sec link/text}} sub-template.

Do not use this template directly, use {{sec link}} or {{sec link auto}} and their sister templates instead.

This template is called from the {{sec link}} family of templates.

Technical details

This sub-template returns the text (caption) for a link. It expects these parameters:

{{sec link/text
| project = 
| pagename =
| text =  
| lang = 
| query = 
| anchor = 
}}

If "text" is fed it simply returns that, otherwise it builds the proper default text by using the other parameters.

For more documentation see {{sec link}}. as:Section link/text uk:Шаблон:Sec link/text ur:سانچہ:Sec link/text