Template:citation: difference between revisions

Definition from Wiktionary, the free dictionary
Jump to: navigation, search
m (allow sorting)
(fix bug pointed out by SemperBlotto and DCDuring, whereby a redlinked first arg (or implicit first arg) does not add the page to Category:Citations of undefined terms)
Line 23: Line 23:
   
 
-->{{#ifexist:{{{1|{{BASEPAGENAME}}}}}||<!--
 
-->{{#ifexist:{{{1|{{BASEPAGENAME}}}}}||<!--
-->{{#ifeq:[[:Special:Whatlinkshere/{{{2}}}]]|{{raw:Special:Whatlinkshere/{{{2}}}}}|<!--
+
-->{{#ifeq:[[:Special:Whatlinkshere/{{{1|}}}]]|{{raw:Special:Whatlinkshere/{{{1|}}}}}|<!--
-->[[Category:Citations of undefined terms|{{lc:{{{1|{{PAGENAME}}}}}}}]]<!--
+
-->[[Category:Citations of undefined terms|{{lc:{{{1|{{PAGENAME}}}}}}}]]<!--
-->}}<!--
+
-->}}<!--
 
-->}}<!--
 
-->}}<!--
   
 
-->{{#if:{{{2|}}}|<!--
 
-->{{#if:{{{2|}}}|<!--
-->{{#ifexist:{{{2}}}||<!--
+
-->{{#ifexist:{{{2}}}||<!--
-->{{#ifeq:[[:Special:Whatlinkshere/{{{2}}}]]|{{raw:Special:Whatlinkshere/{{{2}}}}}|<!--
+
-->{{#ifeq:[[:Special:Whatlinkshere/{{{2}}}]]|{{raw:Special:Whatlinkshere/{{{2}}}}}|<!--
-->[[Category:Citations of undefined terms|{{lc:{{{2}}}}}]]<!--
+
-->[[Category:Citations of undefined terms|{{lc:{{{2}}}}}]]<!--
-->}}<!--
+
-->}}<!--
-->}}<!--
+
-->}}<!--
 
-->}}<!--
 
-->}}<!--
   
 
-->{{#if:{{{3|}}}|<!--
 
-->{{#if:{{{3|}}}|<!--
-->{{#ifexist:{{{3}}}||<!--
+
-->{{#ifexist:{{{3}}}||<!--
-->{{#ifeq:[[:Special:Whatlinkshere/{{{3}}}]]|{{raw:Special:Whatlinkshere/{{{3}}}}}|<!--
+
-->{{#ifeq:[[:Special:Whatlinkshere/{{{3}}}]]|{{raw:Special:Whatlinkshere/{{{3}}}}}|<!--
-->[[Category:Citations of undefined terms|{{lc:{{{3}}}}}]]<!--
+
-->[[Category:Citations of undefined terms|{{lc:{{{3}}}}}]]<!--
-->}}<!--
+
-->}}<!--
-->}}<!--
+
-->}}<!--
 
-->}}<!--
 
-->}}<!--
   
 
-->{{#if:{{{4|}}}|<!--
 
-->{{#if:{{{4|}}}|<!--
-->{{#ifexist:{{{4}}}||<!--
+
-->{{#ifexist:{{{4}}}||<!--
-->{{#ifeq:[[:Special:Whatlinkshere/{{{4}}}]]|{{raw:Special:Whatlinkshere/{{{4}}}}}|<!--
+
-->{{#ifeq:[[:Special:Whatlinkshere/{{{4}}}]]|{{raw:Special:Whatlinkshere/{{{4}}}}}|<!--
-->[[Category:Citations of undefined terms|{{lc:{{{4}}}}}]]<!--
+
-->[[Category:Citations of undefined terms|{{lc:{{{4}}}}}]]<!--
-->}}<!--
+
-->}}<!--
-->}}<!--
+
-->}}<!--
 
-->}}<!--
 
-->}}<!--
   
 
-->{{#if:{{{5|}}}|<!--
 
-->{{#if:{{{5|}}}|<!--
-->{{#ifexist:{{{5}}}||<!--
+
-->{{#ifexist:{{{5}}}||<!--
-->{{#ifeq:[[:Special:Whatlinkshere/{{{5}}}]]|{{raw:Special:Whatlinkshere/{{{5}}}}}|<!--
+
-->{{#ifeq:[[:Special:Whatlinkshere/{{{5}}}]]|{{raw:Special:Whatlinkshere/{{{5}}}}}|<!--
-->[[Category:Citations of undefined terms|{{lc:{{{5}}}}}]]<!--
+
-->[[Category:Citations of undefined terms|{{lc:{{{5}}}}}]]<!--
-->}}<!--
+
-->}}<!--
-->}}<!--
+
-->}}<!--
 
-->}}<!--
 
-->}}<!--
   

Revision as of 19:24, 18 November 2012

Template:en citations of Template:Latn


The following documentation is located at Template:citation/documentation. [edit]
Alternative name:
{{citations}}

This template is used to form the level-two header of citations on citations pages. Please do not use it in entries (in the main namespace).

Parameters

It recognizes up to seven parameters, all optional: up to five unnamed (positional) parameters for entries, "lang" for the language, and "ct" for the context.

  • |1= The entry to be linked. If empty or omitted, the entry is equal to the page name without the "Citations:" prefix.
  • |2= A second entry to be linked.
  • |3= A third entry to be linked.
  • |4= A fourth entry to be linked.
  • |5= A fifth entry to be linked.
  • |lang= The language of the citation, represented by a language code. if empty or omitted, en (English) is assumed.
  • |ct= The context of a word, in case it is outside the main namespace. For example, "Harry Potter".

Categorization

Examples

{{citation|banquette|lang=en}}

English citations of banquette

{{citation|Molotov cocktail|Molotov cocktails|lang=en}}

English citations of Molotov cocktail and Molotov cocktails

{{citation|angst bunny|angst-bunny|angstbunny|angst.bunny|lang=en}}

English citations of angst bunny, angst-bunny, angstbunny, and angst.bunny

{{citation|malapodán|lang=es}}

Spanish citations of malapodán

(Note that the change in background color seen in these examples is not part of the output of the template.)

See also