Difference between revisions of "Template:Citation/fcite fast"
imported>Wikid77 (put 3x faster gated-if as "#if: {accessdate|{page|{publisher|{location|{pages|} } } } }".) |
imported>Plastikspork |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <noinclude><!-- | + | <noinclude>{{historical}}<!-- |
--=================================================================== | --=================================================================== | ||
-- Template Fcite_fast - Fast footnote for author, title, URL, etc. | -- Template Fcite_fast - Fast footnote for author, title, URL, etc. | ||
--=================================================================== | --=================================================================== | ||
-- (see NOTES at bottom) | -- (see NOTES at bottom) | ||
| − | --></noinclude>{{ | + | --></noinclude>{{main other|2={{ |
#if:{{{author|}}}<!--if author set--> | #if:{{{author|}}}<!--if author set--> | ||
|{{{author}}}{{{sep|.}}}  | |{{{author}}}{{{sep|.}}}  | ||
| Line 11: | Line 11: | ||
|{{{last|{{{last1}}}}}}<!--last name-->{{ | |{{{last|{{{last1}}}}}}<!--last name-->{{ | ||
#if:{{{first|{{{first1|}}} }}}<!--if first set--> | #if:{{{first|{{{first1|}}} }}}<!--if first set--> | ||
| − | |, {{{first|{{{first1}}}}}} }}<!--endif first name | + | |, {{{first|{{{first1}}}}}}{{ |
| + | #if:{{{last2|{{{author2|}}} }}}<!--if last2 set--> | ||
| + | |{{{last2|{{{author2}}}}}}<!--last2 name-->{{ | ||
| + | #if:{{{first2|}}}<!--if first2 set--> | ||
| + | |, {{{first2}}} }}{{ | ||
| + | #if:{{{last3|{{{author3|}}} }}}<!--if last3 set--> | ||
| + | |{{{last3|{{{author3}}}}}}<!--last3 name-->{{ | ||
| + | #if:{{{first3|}}}<!--if first3 set--> | ||
| + | |, {{{first3}}} }} | ||
| + | }}<!--endif last3 name--> | ||
| + | }}<!--endif last2 name--> | ||
| + | }}<!--endif first name | ||
-->{{{sep|.}}}  | -->{{{sep|.}}}  | ||
}}<!--endif {last|last1}--> | }}<!--endif {last|last1}--> | ||
| Line 22: | Line 33: | ||
}}<!--endif-else {url} | }}<!--endif-else {url} | ||
-->{{ | -->{{ | ||
| − | #if:{{{work|}}}|{{{sep|.}}} {{{work}}} }} | + | #if:{{{work|{{{newspaper|}}} }}} |
| + | |{{{sep|.}}} {{{work|{{{newspaper}}}}}} }} | ||
|<!--else no title-->{{ | |<!--else no title-->{{ | ||
| − | #if:{{{work|}}}|{{ | + | #if:{{{work|{{{newspaper|}}} }}}|{{ |
#if:{{{url|}}} | #if:{{{url|}}} | ||
| − | |[{{{url}}}{{{urlx|}}} ''{{{work}}}''] | + | |[{{{url}}}{{{urlx|}}} ''{{{work|{{{newspaper}}}}}}''] |
| − | |''{{{work}}}'' | + | |''{{{work|{{{newspaper}}}}}}'' |
}}<!--endif-else {url}--> | }}<!--endif-else {url}--> | ||
}}<!--endif {work}--> | }}<!--endif {work}--> | ||
| Line 35: | Line 47: | ||
-->}}} }}} }}} }}} }}} | -->}}} }}} }}} }}} }}} | ||
|{{ | |{{ | ||
| − | #if:{{{publisher|}}}|{{{sep|.}}} {{{publisher}}} }}{{ | + | #if:{{{publisher|{{{agency|}}} }}} |
| + | |{{{sep|.}}} {{{publisher|{{{agency}}}}}} }}{{ | ||
#if:{{{location|}}}|{{{sep|.}}} {{{location}}} }}{{ | #if:{{{location|}}}|{{{sep|.}}} {{{location}}} }}{{ | ||
#if:{{{pages|}}}|{{{sep|.}}} pp. {{{pages}}} }}{{ | #if:{{{pages|}}}|{{{sep|.}}} pp. {{{pages}}} }}{{ | ||
#if:{{{page|}}}|{{{sep|.}}} p. {{{page}}} }}{{ | #if:{{{page|}}}|{{{sep|.}}} p. {{{page}}} }}{{ | ||
| − | #if:{{{accessdate|}}}|{{{sep|.}}} Retrieved {{{accessdate}}} }} | + | #if:{{{accessdate|}}} |
| + | |{{ | ||
| + | #if:{{{archiveurl|}}} | ||
| + | |. Archived from [{{{archiveurl}}}{{{archiveurlx|}}}<!--url+urlx | ||
| + | --> the original]{{ | ||
| + | #if:{{{archivedate|}}} | ||
| + | |  on {{{archivedate}}} }}<!-- | ||
| + | -->}}<!--endif archiveurl -- | ||
| + | -->{{{sep|.}}} Retrieved {{{accessdate}}} | ||
| + | }}<!--endif {accessdate}--> | ||
}}<!--endif {accessdate|page|publisher|...} | }}<!--endif {accessdate|page|publisher|...} | ||
| − | -->.<noinclude><!-- | + | -->.}}<noinclude><!-- |
----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ||
--NOTES: | --NOTES: | ||
| Line 55: | Line 77: | ||
--20Jul12 Added parameters: urlx to extend URL. | --20Jul12 Added parameters: urlx to extend URL. | ||
--20Jul12 Put 3x faster gated-if "{accessdate|{page|{publisher|{location...". | --20Jul12 Put 3x faster gated-if "{accessdate|{page|{publisher|{location...". | ||
| + | --25Jul12 Added parameters: last2/last3, newspaper, agency, archiveurl, etc. | ||
-- | -- | ||
--> | --> | ||
| − | {{documentation|Template: | + | {{documentation|Template:citation/fcite_web/doc}} |
| − | + | <!-- | |
[[Category:Wikipedia formatting and function templates]] | [[Category:Wikipedia formatting and function templates]] | ||
| − | + | --> | |
<!--PUT INTERWIKI LINKS in /doc page, not here --> | <!--PUT INTERWIKI LINKS in /doc page, not here --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 00:44, 14 July 2013
| 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. |
"{{{title}}}".
| 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. |