Difference between revisions of "Template:Citation/fcite"
imported>Plastikspork (Fix extra }} inside span tag, so they weren't visible) |
imported>WOSlinker (use <nowiki/> rather than <b/>) |
||
| Line 51: | Line 51: | ||
-->{{#if: | -->{{#if: | ||
{{{last2|{{{author2|{{{coauthors|{{{coauthor|}}} }}} }}} }}}<!--if last2 | {{{last2|{{{author2|{{{coauthors|{{{coauthor|}}} }}} }}} }}}<!--if last2 | ||
| − | -->|< | + | -->|<nowiki/>{{{author-separator|;}}} {{{last2|{{{author2|}}}}}}{{ |
#if:{{{first2|}}}|, {{{first2}}}}}{{ | #if:{{{first2|}}}|, {{{first2}}}}}{{ | ||
#if:{{{last3|{{{author3|}}} }}} | #if:{{{last3|{{{author3|}}} }}} | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} {{{last3|{{{author3}}}}}}{{ |
#if:{{{first3|}}}|, {{{first3}}} }}{{ | #if:{{{first3|}}}|, {{{first3}}} }}{{ | ||
#if:{{{last4|{{{author4|}}} }}} | #if:{{{last4|{{{author4|}}} }}} | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} {{{last4|{{{author4}}}}}}{{ |
#if:{{{first4|}}}|, {{{first4}}} }}{{ | #if:{{{first4|}}}|, {{{first4}}} }}{{ | ||
#if:{{{last5|{{{author5|}}} }}} | #if:{{{last5|{{{author5|}}} }}} | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} {{{last5|{{{author5}}}}}}{{ |
#if:{{{first5|}}}|, {{{first5}}} }} | #if:{{{first5|}}}|, {{{first5}}} }} | ||
}}<!--endif last5-->{{ | }}<!--endif last5-->{{ | ||
#if:{{{last6|{{{author6|}}} }}} | #if:{{{last6|{{{author6|}}} }}} | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} {{{last6|{{{author6}}}}}}{{ |
#if:{{{first6|}}}|, {{{first6}}} }} | #if:{{{first6|}}}|, {{{first6}}} }} | ||
}}<!--endif last6-->{{ | }}<!--endif last6-->{{ | ||
#if:{{{last7|{{{author7|}}} }}} | #if:{{{last7|{{{author7|}}} }}} | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} {{{last7|{{{author7}}}}}}{{ |
#if:{{{first7|}}}|, {{{first7}}} }} | #if:{{{first7|}}}|, {{{first7}}} }} | ||
}}<!--endif last7-->{{ | }}<!--endif last7-->{{ | ||
#if:{{{last8|{{{author8|}}} }}} | #if:{{{last8|{{{author8|}}} }}} | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} {{{last8|{{{author8}}}}}}{{ |
#if:{{{first8|}}}|, {{{first8}}} }} | #if:{{{first8|}}}|, {{{first8}}} }} | ||
}}<!--endif last8--> | }}<!--endif last8--> | ||
| Line 79: | Line 79: | ||
#if:{{{coauthors|{{{coauthor|}}} }}} | #if:{{{coauthors|{{{coauthor|}}} }}} | ||
|{{ | |{{ | ||
| − | #if:{{{last2|{{{author2|}}} }}}|< | + | #if:{{{last2|{{{author2|}}} }}}|<nowiki/>;  |
}}{{{coauthors|{{{coauthor}}}}}} | }}{{{coauthors|{{{coauthor}}}}}} | ||
}}<!--endif {coauthors..}--> | }}<!--endif {coauthors..}--> | ||
| Line 87: | Line 87: | ||
#if:{{{editor|{{{editor-last|{{{editor1-last|}}} }}} }}}<!--if editor#1a--> | #if:{{{editor|{{{editor-last|{{{editor1-last|}}} }}} }}}<!--if editor#1a--> | ||
|{{#if:{{{author|{{{last|{{{last1|{{{author1|}}} }}} }}} }}} | |{{#if:{{{author|{{{last|{{{last1|{{{author1|}}} }}} }}} }}} | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} }}<!--separator |
-->{{{editor|{{{editor-last|{{{editor1-last}}}}}}}}}{{ | -->{{{editor|{{{editor-last|{{{editor1-last}}}}}}}}}{{ | ||
#if:{{{editor1-first|}}}|, {{{editor1-first}}} | #if:{{{editor1-first|}}}|, {{{editor1-first}}} | ||
}}{{ | }}{{ | ||
#if:{{{editor2-last|}}}<!--if editor2 set--> | #if:{{{editor2-last|}}}<!--if editor2 set--> | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} <!--separator |
-->{{{editor2-last}}}{{ | -->{{{editor2-last}}}{{ | ||
#if:{{{editor2-first|}}}|, {{{editor2-first}}} | #if:{{{editor2-first|}}}|, {{{editor2-first}}} | ||
}}{{ | }}{{ | ||
#if:{{{editor3-last|}}}<!--if editor3 set--> | #if:{{{editor3-last|}}}<!--if editor3 set--> | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} <!--separator |
-->{{{editor3-last}}}{{ | -->{{{editor3-last}}}{{ | ||
#if:{{{editor3-first|}}}|, {{{editor3-first}}} | #if:{{{editor3-first|}}}|, {{{editor3-first}}} | ||
}}{{ | }}{{ | ||
#if:{{{editor4-last|}}}<!--if editor4 set--> | #if:{{{editor4-last|}}}<!--if editor4 set--> | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} <!--separator |
-->{{{editor4-last}}}{{ | -->{{{editor4-last}}}{{ | ||
#if:{{{editor4-first|}}}|, {{{editor4-first}}} }} | #if:{{{editor4-first|}}}|, {{{editor4-first}}} }} | ||
}}<!--endif {editor4-last} --> | }}<!--endif {editor4-last} --> | ||
}}<!--endif {editor3-last} | }}<!--endif {editor3-last} | ||
| − | -->< | + | --><nowiki/>{{{author-separator|;}}} eds.  |
| − | |<!--else no editor2-->< | + | |<!--else no editor2--><nowiki/>{{{author-separator|;}}} ed.  |
}}<!--endif {editor2-last} --> | }}<!--endif {editor2-last} --> | ||
}}<!--endif {editor|editor1-last} | }}<!--endif {editor|editor1-last} | ||
| Line 123: | Line 123: | ||
#if:{{{origyear|}}}| [{{{origyear}}}] | #if:{{{origyear|}}}| [{{{origyear}}}] | ||
}}{{{sep|.}}}  | }}{{{sep|.}}}  | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} <!-- |
-->}}<!--endif {date|year|month} | -->}}<!--endif {date|year|month} | ||
-->}}<!--endif {last|author|last1|author1|editor...} | -->}}<!--endif {last|author|last1|author1|editor...} | ||
| Line 165: | Line 165: | ||
|{{{location|London}}}{{ | |{{{location|London}}}{{ | ||
#if:{{{publisher|{{{agency|}}} }}} | #if:{{{publisher|{{{agency|}}} }}} | ||
| − | |< | + | |<nowiki/>: {{{publisher|{{{agency|[[Reuters]]}}}}}} }} |
|{{{publisher|{{{agency|[[Reuters]]}}}}}} | |{{{publisher|{{{agency|[[Reuters]]}}}}}} | ||
}})<!--endif location--> | }})<!--endif location--> | ||
| Line 187: | Line 187: | ||
|{{{location|London}}}{{ | |{{{location|London}}}{{ | ||
#if:{{{publisher|{{{agency|}}} }}} | #if:{{{publisher|{{{agency|}}} }}} | ||
| − | |< | + | |<nowiki/>: {{{publisher|{{{agency|[[Reuters]]}}}}}} }} |
|{{{publisher|{{{agency|[[Reuters]]}}}}}} | |{{{publisher|{{{agency|[[Reuters]]}}}}}} | ||
}}<!--endif location--> | }}<!--endif location--> | ||
| Line 459: | Line 459: | ||
--12Jul12 Added parameters first1, first2, first3 but warn of last4. | --12Jul12 Added parameters first1, first2, first3 but warn of last4. | ||
--12Jul12 Optimized check for "author" as 2 #if's (was 7). | --12Jul12 Optimized check for "author" as 2 #if's (was 7). | ||
| − | --13Jul12 Fixed by "< | + | --13Jul12 Fixed by "<nowiki/>" to allow any separator such as ";" or ":". |
--13Jul12 Added parameter "coauthor" same as plural "coauthors". | --13Jul12 Added parameter "coauthor" same as plural "coauthors". | ||
--14Jul12 Linked ISBN & ISSN by {hide in print} & {only in print}. | --14Jul12 Linked ISBN & ISSN by {hide in print} & {only in print}. | ||
Revision as of 06:28, 11 October 2016
| 30px | This page is currently inactive and is retained for historical reference. Either the page is no longer relevant or consensus on its purpose has become unclear. To revive discussion, seek broader input via a forum such as the village pump. |
| Template:Stop | per Wikipedia:Templates for discussion/Log/2012 July 15#Template:Citation/fcite, this suite of templates is only for use as a testbed, for helping to improve existing citation templates, and should be not deployed in article space. |
The Template:Citation/fcite web, Template:Citation/fcite book and other templates in the Citation/fcite group are fast-cite alternatives to {{cite web}} and {{cite book}} for use in large articles. To allow extreme speed, only the basic parameter names are supported, such as "coauthors=" rather than "last4=" or "last5=" (etc.). For rare parameters, the original cite templates can still be used, and mixed within an article. To view parameter names, see: Template:Citation/doc.
Template:Citation/fcite book defaults to show italicized {title}, or if {book} or {work} are specified, then to quote "{title}" such as a short-story title, after showing the {book}/{work} name italicized. By comparison, {{Citation/fcite web}} will always quote "{title}" and put any {book}/{work} name after {title}. Hence, there are 2 differences: title is italicized, or title as second/quoted, whereas Citation/fcite web (or Citation/fcite journal) will put the quoted "{title}" before the book/work name.
In articles which contain more than 300 formatted references, the speed of formatting a large article, during 2009, reached 30–60 seconds for logged-in users, so the Citation/fcite templates can be used to run 5x faster (6–12 seconds) when reformatting an article. Many large articles experienced similar long delays during 2009–2012, due to using numerous large templates.
Format
The operation is very similar to {{citation}} and related templates.
- Markup:
{{citation/fcite|title=Origin of fish|publisher=Google|year=1999|date=August 1999|url= http://www.google.com/|accessdate=1 June 2009}} - Result: Origin of fish, Google, August 1999, retrieved 1 June 2009
Comparison to Cite_web
The operation is very similar to {{citation}} and related templates.
| Markup | Renders as |
|---|---|
{{citation/fcite|title=Things|date=2009|url=http://x.com/|accessdate=2012-08-01}}
|
Things, 2009, retrieved 2012-08-01 |
{{citation |title=Things|date=2009|url=http://x.com/ |accessdate=2012-08-01}}
|
Things, 2009, retrieved 2012-08-01 |
Using {{citation/fcite web}}:
| Markup | Renders as |
|---|---|
{{citation/fcite web |title=That webpage |date=1 May 2009|publisher=BBC}}
|
"That webpage". BBC. 1 May 2009. |
{{cite web |url=http://x.com/ |title=That webpage |date=1 May 2009|publisher=BBC}}
|
"That webpage". BBC. 1 May 2009. |
Related templates
The various templates within the Citation/fcite group include:
- Template:Citation/fcite web – for webpages, with "url=" link
- Template:Citation/fcite book – for books, with optional "url=" link
- Template:Citation/fcite news – for news articles, with "url=" link
- Template:Citation/fcite journal – for journal articles, with issue/format
- Template:Citation/fcite – puts a Harvard-ref anchor, linked from {{Harvnb}}
See also
- Template:Cite web – the massive template with many options
- Template:Citation – large template to put Harvard-ref anchors
| The above documentation is transcluded from Template:Citation/fcite web/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |