Difference between revisions of "Template:Citation/quick/sandbox"

From blackwiki
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|}}}
           |[{{{archiveurl|{{{url|}}}}}}{{{urlx|}}} "{{{chapter}}}"]
+
           |[{{#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|}}}
           |[{{{archiveurl|{{{url|}}}}}}{{{urlx|}}} <i>{{{title}}}</i>]
+
           |[{{#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|}}}
         |[{{{archiveurl|{{{url|}}}}}}{{{urlx|}}} "{{{title}}}"]
+
         |[{{#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|}}}
         |[{{{archiveurl|{{{url|}}}}}}{{{urlx|}}} <i>{{{work|{{{newspaper|{{{journal}}}}}}}}}</i>]
+
         |[{{#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
+
--------------------------------------------------- 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
+
-------------------------------------------- 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|}}}|&#32;"{{{quote}}}"
 
   #if:{{{quote|}}}|&#32;"{{{quote}}}"
}}</span><noinclude><!--
+
}}</span>}}<noinclude><!--
 
-----------------------------------------------------------------------
 
-----------------------------------------------------------------------
 
--NOTES:
 
--NOTES:
Line 269: Line 273:
 
--09Sep12 Put null "<nowiki/>" to omit &#32 or <b/> markers.
 
--09Sep12 Put null "<nowiki/>" to omit &#32 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." prefix.
+
--02Oct12 Enhanced "pages=" to detect singular page as "p." not "pp."
--06Oct12 Fixed to allow outer apostrophe as <i>{title}</i> or <i>{work}</i>.
+
--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=" null.
+
--13Oct12 Changed to show last1 else {author} in case empty "author=".
--13Oct12 Checked location format for {work} in gated-if, after {journal}.
+
--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}.
--23Oct12 Added "ref=" for anchor-id <span class="citation.." id="xx">.
+
--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:Cite_quick/doc}}
+
{{documentation|Template:Citation/quick}}
 
 
[[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 23:37, 5 July 2013