Difference between revisions of "Template:Citation/fcite journal"

From blackwiki
Jump to navigation Jump to search
imported>Br'er Rabbit
(in /doc)
imported>Wikid77
(set to <span class="citation journal" id="x"> to handle "ref=".)
Line 4: Line 4:
 
--=========================================================================
 
--=========================================================================
 
--                                (see NOTES at bottom)
 
--                                (see NOTES at bottom)
--></noinclude>{{#if:{{{ref|}}}
+
--></noinclude><span class="citation journal" {{
 +
#if:{{{ref|}}}
 
     |{{#ifeq:{{{ref}}}|harv
 
     |{{#ifeq:{{{ref}}}|harv
       |<!--then anchor authors/editors+year-->{{anchor
+
       |<!--then anchor authors/editors+year
        |CITEREF{{{last|{{{last1|{{{author1|{{{editor-last|{{{editor1-last<!--
+
      --> id="CITEREF{{anchorencode:{{
        -->|}}}}}}}}}}}}}}}<!--
+
      #if:{{{last|{{{last1|{{{author|{{{author1|}}} }}} }}} }}}
        -->{{{last2|{{{author2|{{{editor2-last|}}}}}}}}}<!--
+
      |{{{last|{{{last1|{{{author|{{{author1}}}}}}}}}}}}<!--
        -->{{{last3|{{{author3|}}}}}}<!--
+
      -->{{{last2|{{{author2|}}}}}}<!--
        -->{{{last4|{{{author4|}}}}}}<!--
+
      -->{{{last3|{{{author3|}}}}}}<!--
        -->{{{year|{{<!--else year from date/pub-date or use pub-date 2010b-->
+
      -->{{{last4|{{{author4|}}}}}}<!--
 +
    --else-->|{{{editor-last|{{{editor1-last|}}}}}}<!--
 +
      -->{{{editor2-last|}}}{{{editor3-last|}}}{{{editor4-last|}}}
 +
      }}<!--
 +
  -->{{{year|{{<!--or year from date/pub-date or use pub-date 2010b-->
 
             #if: {{{date|}}}
 
             #if: {{{date|}}}
 
             |{{
 
             |{{
Line 22: Line 27:
 
             |{{{publication-date|}}}<!--else pub like: 2010b -->
 
             |{{{publication-date|}}}<!--else pub like: 2010b -->
 
             }}<!--endif-else {date}
 
             }}<!--endif-else {date}
         -->}}}|}}<!--end-anchor-->
+
         -->}}}|}}"<!--end-anchorencode-->
       |{{anchor|{{{ref}}}}}
+
       | id="{{anchorencode:{{{ref}}}}}"
 
     }}<!--endif-else ref="harv" -->
 
     }}<!--endif-else ref="harv" -->
   }}{{
+
   }}><!--end open-span tag-->{{
 +
 
 
   #if:{{{author|}}}|<!--if author set-->{{
 
   #if:{{{author|}}}|<!--if author set-->{{
 
     #if:{{{authorlink|{{{author1-link|}}} }}}|<!--if authorlink set then
 
     #if:{{{authorlink|{{{author1-link|}}} }}}|<!--if authorlink set then
Line 105: Line 111:
 
----------------------------------------------------- Date if authors/editors
 
----------------------------------------------------- Date if authors/editors
 
-->{{
 
-->{{
   #if:{{{last|{{{author|{{{last1|{{{author1|{{{editor|{{{editor1-last|<!--
+
   #if:{{{last|{{{author|{{{last1|{{{author1|{{{editor|{{{editor-last|<!--
       -->}}} }}} }}} }}} }}} }}}
+
       -->{{{editor1-last|}}} }}} }}} }}} }}} }}} }}}
 
     |{{<!--check if date here-->
 
     |{{<!--check if date here-->
 
     #if:{{{date|{{{year|{{{month|}}} }}} }}}
 
     #if:{{{date|{{{year|{{{month|}}} }}} }}}
Line 330: Line 336:
 
     | &#32;({{{laydate}}}) }}<!--
 
     | &#32;({{{laydate}}}) }}<!--
 
   -->.<!--end main citation
 
   -->.<!--end main citation
--------------------------------------------------------- Quote / notes
+
--------------------------------------------------------- Quote / postscript
 
-->{{
 
-->{{
   #if:{{{quote|{{{postscript|{{{notes|<!--
+
   #if:{{{quote|}}}
    -->}}} }}} }}}
+
    |&#32;"{{{quote}}}"}}{{
  |<!--then check each of the options...-->{{
+
  #if:{{{postscript|{{{notes|}}} }}}
    #if:{{{quote|}}}
+
    |&#32;{{{postscript|{{{notes}}}}}} }}<!--endif {postscript|notes}
      |&#32;"{{{quote}}}"}}{{
+
--></span><!--end citation span
    #if:{{{postscript|{{{notes|}}} }}}
 
      |&#32;{{{postscript|{{{notes}}}}}} }}
 
  }}<!--endif quote/notes set
 
 
--------------------------------------------------------- Help option
 
--------------------------------------------------------- Help option
 
-->{{
 
-->{{
Line 456: Line 459:
 
--22Jul12 Process omitted date 3x faster (checked before author/editor names).
 
--22Jul12 Process omitted date 3x faster (checked before author/editor names).
 
--23Jul12 For {ref}=harv, also linked by editor[1]-last or editor2-last.
 
--23Jul12 For {ref}=harv, also linked by editor[1]-last or editor2-last.
 +
--01Aug12 Set to <span class="citation journal" id="x"> to handle "ref=".
 
-->
 
-->
 
{{documentation|Template:Fcite_journal/doc}}
 
{{documentation|Template:Fcite_journal/doc}}

Revision as of 00:33, 1 August 2012

{{{title}}}.

Template documentation[create]