Difference between revisions of "Template:Citation/quick/sandbox"
< Template:Citation | quick
Jump to navigation
Jump to search
imported>AlanM1 (Trying to resolve missing punct after author with no date) |
imported>Plastikspork |
||
| (5 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <noinclude><!-- | + | <noinclude>{{historical}}<!-- |
--==================================================================== | --==================================================================== | ||
-- Template:Cite_quick - Quick citation for author, title, URL, etc. | -- Template:Cite_quick - Quick citation for author, title, URL, etc. | ||
--==================================================================== | --==================================================================== | ||
-- (see NOTES at bottom) | -- (see NOTES at bottom) | ||
| − | --></noinclude><span class="citation {{{1|web}}}" {{ | + | --></noinclude>{{main other||<span class="citation {{{1|web}}}" {{ |
#if:{{{ref|}}} | #if:{{{ref|}}} | ||
|{{#ifeq:{{{ref}}}|harv | |{{#ifeq:{{{ref}}}|harv | ||
| Line 97: | Line 97: | ||
|{{ | |{{ | ||
#if:{{{url|}}} | #if:{{{url|}}} | ||
| − | |[{{{ | + | |[{{#if:{{{archiveurl|}}} |
| + | |{{{archiveurl}}}|{{{url|}}} }} "{{{chapter}}}"] | ||
|"{{{chapter}}}" | |"{{{chapter}}}" | ||
}}<!--endif-else {url} #1 | }}<!--endif-else {url} #1 | ||
| Line 103: | Line 104: | ||
|<!--else no chapter-->{{ | |<!--else no chapter-->{{ | ||
#if:{{{url|}}} | #if:{{{url|}}} | ||
| − | |[{{{ | + | |[{{#if:{{{archiveurl|}}} |
| + | |{{{archiveurl}}}|{{{url|}}} }} <i>{{{title}}}</i>] | ||
|<i>{{{title}}}</i> | |<i>{{{title}}}</i> | ||
}}<!--endif-else {url} #2--> | }}<!--endif-else {url} #2--> | ||
| Line 109: | Line 111: | ||
|<!--else not book-->{{ | |<!--else not book-->{{ | ||
#if:{{{url|}}} | #if:{{{url|}}} | ||
| − | |[{{{ | + | |[{{#if:{{{archiveurl|}}} |
| + | |{{{archiveurl}}}|{{{url|}}} }} "{{{title}}}"] | ||
|"{{{title}}}" | |"{{{title}}}" | ||
}}<!--endif-else {url} #3--> | }}<!--endif-else {url} #3--> | ||
| Line 120: | Line 123: | ||
#if:{{{work|{{{newspaper|{{{journal|}}} }}} }}}|{{ | #if:{{{work|{{{newspaper|{{{journal|}}} }}} }}}|{{ | ||
#if:{{{url|}}} | #if:{{{url|}}} | ||
| − | |[{{{ | + | |[{{#if:{{{archiveurl|}}} |
| + | |{{{archiveurl}}}|{{{url|}}} }} <i>{{{work|{{{newspaper|{{{journal}}}}}}}}}</i>] | ||
|<i>{{{work|{{{newspaper|{{{journal}}}}}}}}}</i> | |<i>{{{work|{{{newspaper|{{{journal}}}}}}}}}</i> | ||
}}<!--endif-else {url}--> | }}<!--endif-else {url}--> | ||
}}<!--endif {work}--> | }}<!--endif {work}--> | ||
}}<!--endif-else {title} | }}<!--endif-else {title} | ||
| − | + | --------------------------------------------------- Pub/location/volume | |
-->{{ | -->{{ | ||
| − | #if:{{{publisher|{{{location|{{{place|{{{agency|<!-- | + | #if:{{{publisher|}}}{{{location|{{{place|{{{agency|<!-- |
| − | --> | + | -->}}} }}} }}} |
|<!--then take time to check each...-->{{ | |<!--then take time to check each...-->{{ | ||
#if:{{{journal|{{{work|{{{newspaper|}}} }}} }}} | #if:{{{journal|{{{work|{{{newspaper|}}} }}} }}} | ||
|<nowiki/> ({{ | |<nowiki/> ({{ | ||
| − | #if:{{{location|{{{place| | + | #if:{{{location|}}}{{{place|}}} |
|{{{location|{{{place}}}}}}{{ | |{{{location|{{{place}}}}}}{{ | ||
#if:{{{publisher|{{{agency|}}} }}} | #if:{{{publisher|{{{agency|}}} }}} | ||
| Line 176: | Line 180: | ||
-------------------------------------------------------- Pages/page | -------------------------------------------------------- Pages/page | ||
-->{{ | -->{{ | ||
| − | #if:{{{pages|{{{page| | + | #if:{{{pages|}}}{{{page|}}} |
|{{ | |{{ | ||
#if:{{{pages|}}} | #if:{{{pages|}}} | ||
| Line 191: | Line 195: | ||
}} | }} | ||
}} | }} | ||
| − | }}<!--endif {pages|page} | + | }}<!--endif {pages|page}-->{{{at|}}}<!-- |
| − | + | -------------------------------------------- doi/ISBN/ISSN / archiveurl | |
-->{{ | -->{{ | ||
| − | #if:{{{isbn|{{{issn|{{{archiveurl|{{{doi|{{{pmid|<!-- | + | #if:{{{isbn|}}}{{{issn|}}}{{{archiveurl|}}}{{{doi|{{{pmid|<!-- |
| − | --> | + | -->}}} }}} |
|{{ | |{{ | ||
#if:{{{doi|}}} | #if:{{{doi|}}} | ||
| Line 237: | Line 241: | ||
-->{{{notes|.}}}{{ | -->{{{notes|.}}}{{ | ||
#if:{{{quote|}}}| "{{{quote}}}" | #if:{{{quote|}}}| "{{{quote}}}" | ||
| − | }}</span><noinclude><!-- | + | }}</span>}}<noinclude><!-- |
----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ||
--NOTES: | --NOTES: | ||
| Line 269: | Line 273: | ||
--09Sep12 Put null "<nowiki/>" to omit   or <b/> markers. | --09Sep12 Put null "<nowiki/>" to omit   or <b/> markers. | ||
--14Sep12 New parameter "acc" as an alias for "accessdate". | --14Sep12 New parameter "acc" as an alias for "accessdate". | ||
| − | --02Oct12 Enhanced "pages=" to detect singular page as "p." not "pp." | + | --02Oct12 Enhanced "pages=" to detect singular page as "p." not "pp." |
| − | --06Oct12 | + | --06Oct12 Fix to allow outer apostrophe: <i>{title}</i> or <i>{work}</i> |
--06Oct12 Moved rare "quote=" under accessdate, with ". " before quote. | --06Oct12 Moved rare "quote=" under accessdate, with ". " before quote. | ||
--07Oct12 Changed to handle if-journal for volume/issue/number. | --07Oct12 Changed to handle if-journal for volume/issue/number. | ||
| Line 278: | Line 282: | ||
--13Oct12 Changed to show {agency} before location, if any. | --13Oct12 Changed to show {agency} before location, if any. | ||
--13Oct12 Changed to show editor name with ", ed.". | --13Oct12 Changed to show editor name with ", ed.". | ||
| − | --13Oct12 Changed to show last1 else {author} in case empty "author=" | + | --13Oct12 Changed to show last1 else {author} in case empty "author=". |
| − | --13Oct12 Checked location | + | --13Oct12 Checked location for {work} in gated-if, after {journal}. |
--15Oct12 Fixed to swap {archiveurl} as "Archived" & {url} as "the original". | --15Oct12 Fixed to swap {archiveurl} as "Archived" & {url} as "the original". | ||
--17Oct12 Expanded to quickly show non-bolded volume when prefix "vol". | --17Oct12 Expanded to quickly show non-bolded volume when prefix "vol". | ||
| Line 286: | Line 290: | ||
--19Oct12 Added last5..last8, first5..first8 for journal (as same speed). | --19Oct12 Added last5..last8, first5..first8 for journal (as same speed). | ||
--19Oct12 Quickened {doi} as simple links, not {citation/identifier}. | --19Oct12 Quickened {doi} as simple links, not {citation/identifier}. | ||
| − | -- | + | --01Nov12 Added "ref=" for anchor-id <span class="citation.." id="xx">. |
--26Nov12 Added authorlink, authorlink2 (but not: author1-link, etc.) | --26Nov12 Added authorlink, authorlink2 (but not: author1-link, etc.) | ||
| + | --19Feb13 When there was no date and no year param given, author (or last, first, etc.) was not being followed by trailing ". ". Fixed. | ||
| + | --27Jun13 Fixed to handle empty "archiveurl=" to use "url=". | ||
| + | --27Jun13 Fixed to handle empty "publisher=" or "location=" or "isbn=". | ||
| + | --27Jun13 Fixed to handle empty "pages=" and show "at=xx". | ||
-- | -- | ||
--> | --> | ||
| − | {{documentation|Template: | + | {{documentation|Template:Citation/quick}} |
| − | |||
| − | |||
| − | |||
<!--PUT INTERWIKI LINKS in /doc page, not here --> | <!--PUT INTERWIKI LINKS in /doc page, not here --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 23:37, 5 July 2013
| 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. |
| File:Sandbox.svg | This is the template sandbox page for Template:Citation/quick (diff). |
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
| The above documentation is transcluded from Template:Citation/quick. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Subpages of this template. |