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

From blackwiki
Jump to navigation Jump to search
imported>AlanM1
(Sync with production)
imported>Plastikspork
 
(3 intermediate revisions by 2 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 289: Line 293:
 
--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.
 
--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

Template documentation[view] [edit] [history] [purge]