Template:citation/dowork: difference between revisions

From Wiktionary, the free dictionary
Jump to navigation Jump to search
Content deleted Content added
Mglovesfun (talk | contribs)
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


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: a language code, up to five unnamed (positional) parameters for entries, and "ct" for the context.

  • |1= The language of the citation, represented by a language code. The parameter |lang= is a deprecated synonym for this parameter; please do not use. If this is used, all numbered parameters move down by one.
  • |2= The entry to be linked. If empty or omitted, the entry is equal to the page name without the "Citations:" prefix.
  • |3= A second entry to be linked.
  • |4= A third entry to be linked.
  • |5= A fourth entry to be linked.
  • |6= A fifth entry to be linked.
  • |ct= The context of a word, in case it is outside the main namespace. For example, "Harry Potter".

Categorization

Examples

{{citation|en|banquette}}
{{citation|en|Molotov cocktail|Molotov cocktails}}
{{citation|en|angst bunny|angst-bunny|angstbunny|angst.bunny}}
{{citation|es|malapodán}}

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

See also