Template:citation/dowork: difference between revisions
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/{{{ |
-->{{#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]
- Redirected from Template:citation/dowork/documentation (edit).
- Useful links: root page • root page’s subpages • links • redirects • transclusions • errors (parser/module) • sandbox
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
- Using this template in a "Citations:" page result in categorizing it into a category of citations of the respective language (e.g., Category:English citations, Category:Portuguese citations).
- In addition, using this template in a "Citations:" linking to an entry which does not exist result in categorizing it into Category:English citations of undefined terms, Category:French citations of undefined terms, etc. according to the appropriate language.
Examples
{{citation|en|banquette}}
Template:en citations of Template:Latn and Template:Latn
{{citation|en|Molotov cocktail|Molotov cocktails}}
Template:en citations of Template:Latn, Template:Latn, and Template:Latn
{{citation|en|angst bunny|angst-bunny|angstbunny|angst.bunny}}
Template:en citations of Template:Latn, Template:Latn, Template:Latn, Template:Latn, and Template:Latn
{{citation|es|malapodán}}
Template:en citations of Template:Latn and Template:Latn
(Note that the change in background color seen in these examples is not part of the output of the template.)