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

From blackwiki
Jump to navigation Jump to search
imported>Wikid77
(put "Fcite_journal" in 22 warning messages; put ending dot (".").)
imported>Wikid77
(for {ref}=harv, set anchor at start of template with editor[n]-last.)
Line 5: Line 5:
 
--                                (see NOTES at bottom)
 
--                                (see NOTES at bottom)
 
--></noinclude>{{#if:{{{ref|}}}
 
--></noinclude>{{#if:{{{ref|}}}
    |{{#ifeq:{{{ref}}}|harv|<!--then skip-->|{{anchor|{{{ref}}}}} }}
+
    |{{#ifeq:{{{ref}}}|harv
  }}{{
+
      |<!--then anchor authors/editors+year-->{{anchor
  #if:{{{author|}}}|<!--if author set-->{{
+
        |CITEREF{{{last|{{{last1|{{{author1|{{{editor-last|{{{editor1-last<!--
    #if:{{{authorlink|{{{author1-link|}}} }}}|<!--if authorlink set then
+
        -->|}}}}}}}}}}}}}}}<!--
      link-->[[{{{authorlink|{{{author1-link}}}}}}|{{{author}}}]]<!--
+
        -->{{{last2|{{{author2|{{{editor2-last|}}}}}}}}}<!--
      else-->|{{{author}}}<!--full-->}}<!--
 
  else-->|{{<!--NOT {author}-->
 
    #if:{{{last|{{{last1|{{{author1|}}} }}} }}}|<!--if last set-->{{
 
      #ifeq:{{{ref|}}}|harv|{{anchor
 
        |CITEREF{{{last|{{{last1|{{{author1|}}}}}}}}}<!--
 
        -->{{{last2|{{{author2|}}}}}}<!--
 
 
         -->{{{last3|{{{author3|}}}}}}<!--
 
         -->{{{last3|{{{author3|}}}}}}<!--
 
         -->{{{last4|{{{author4|}}}}}}<!--
 
         -->{{{last4|{{{author4|}}}}}}<!--
         -->{{{year|{{<!--else year from date/pub-date or use pub-date 2010a-->
+
         -->{{{year|{{<!--else year from date/pub-date or use pub-date 2010b-->
 
             #if: {{{date|}}}
 
             #if: {{{date|}}}
 
             |{{
 
             |{{
Line 29: Line 23:
 
             }}<!--endif-else {date}
 
             }}<!--endif-else {date}
 
         -->}}}|}}<!--end-anchor-->
 
         -->}}}|}}<!--end-anchor-->
       }}<!--endif-else ref="harv" -->{{
+
       |{{anchor|{{{ref}}}}}
       #if:{{{authorlink||{{{author1-link|}}} }}}|<!--if authorlink set
+
    }}<!--endif-else ref="harv" -->
 +
  }}{{
 +
  #if:{{{author|}}}|<!--if author set-->{{
 +
    #if:{{{authorlink|{{{author1-link|}}} }}}|<!--if authorlink set then
 +
      link-->[[{{{authorlink|{{{author1-link}}}}}}|{{{author}}}]]<!--
 +
      else-->|{{{author}}}<!--full-->}}<!--
 +
  else-->|{{<!--NOT {author}-->
 +
    #if:{{{last|{{{last1|{{{author1|}}} }}} }}}|<!--if last set-->{{
 +
       #if:{{{authorlink|{{{author1-link|}}} }}}|<!--if authorlink set
 
       --then-wikilink-->[[{{{authorlink|{{{author1-link}}}}}}|<!--
 
       --then-wikilink-->[[{{{authorlink|{{{author1-link}}}}}}|<!--
 
         -->{{{last|{{{last1|{{{author1}}}}}}}}}<!--last name-->{{
 
         -->{{{last|{{{last1|{{{author1}}}}}}}}}<!--last name-->{{
Line 44: Line 46:
  
 
   -->{{#if:
 
   -->{{#if:
       {{{coauthors|{{{last2|{{{coauthor|{{{author2|}}} }}} }}} }}}<!--if last2
+
       {{{last2|{{{author2|{{{coauthors|{{{coauthor|}}} }}} }}} }}}<!--if last2
     -->|<b/>{{{author-separator|;}}} {{{coauthors|<!--
+
     -->|<b/>{{{author-separator|;}}} {{{last2|<!--
           -->{{{last2|{{{coauthor|{{{author2}}}}}}}}}}}}{{
+
           -->{{{author2|{{{coauthors|{{{coauthor}}}}}}}}}}}}{{
 
           #if:{{{first2|}}}|, {{{first2}}}}}{{
 
           #if:{{{first2|}}}|, {{{first2}}}}}{{
 
           #if:{{{last3|{{{author3|}}} }}}
 
           #if:{{{last3|{{{author3|}}} }}}
Line 53: Line 55:
 
             #if:{{{last4|{{{author4|}}} }}}
 
             #if:{{{last4|{{{author4|}}} }}}
 
               |<b/>{{{author-separator|;}}} {{{last4|{{{author4}}}}}}{{
 
               |<b/>{{{author-separator|;}}} {{{last4|{{{author4}}}}}}{{
               #if:{{{first4|}}}|, {{{first4}}} }}{{
+
               #if:{{{first4|}}}|, {{{first4}}} }}
              #if:{{{last5|{{{author5|}}} }}}
 
                |<b/>{{{author-separator|;}}} {{{last5|{{{author5}}}}}}{{
 
                #if:{{{first5|}}}|, {{{first5}}} }}
 
              }}<!--endif last5-->{{
 
              #if:{{{last6|{{{author6|}}} }}}
 
                |<b/>{{{author-separator|;}}} {{{last6|{{{author6}}}}}}{{
 
                #if:{{{first6|}}}|, {{{first6}}} }}
 
              }}<!--endif last6-->{{
 
              #if:{{{last7|{{{author7|}}} }}}
 
                |<b/>{{{author-separator|;}}} {{{last7|{{{author7}}}}}}{{
 
                #if:{{{first7|}}}|, {{{first7}}} }}
 
              }}<!--endif last7-->{{
 
              #if:{{{last8|{{{author8|}}} }}}
 
                |<b/>{{{author-separator|;}}} {{{last8|{{{author8}}}}}}{{
 
                #if:{{{first8|}}}|, {{{first8}}} }}
 
              }}<!--endif last8-->
 
 
             }}<!--endif last4-->
 
             }}<!--endif last4-->
 
           }}<!--endif last3-->
 
           }}<!--endif last3-->
Line 75: Line 61:
 
------------------------------------------------------------- Editors
 
------------------------------------------------------------- Editors
 
-->{{
 
-->{{
   #if:{{{editor|{{{editor1-last|}}} }}}<!--if editor set#1a-->
+
   #if:{{{editor|{{{editor-last|{{{editor1-last|}}} }}} }}}<!--if editor#1a-->
 
   |{{#if:{{{author|{{{last|{{{last1|{{{author1|}}} }}} }}} }}}
 
   |{{#if:{{{author|{{{last|{{{last1|{{{author1|}}} }}} }}} }}}
 
     |<b/>{{{author-separator|;}}}&#32;}}<!--separator
 
     |<b/>{{{author-separator|;}}}&#32;}}<!--separator
     -->{{{editor|{{{editor1-last|J. Olson}}}}}}{{
+
     -->{{{editor|{{{editor-last|{{{editor1-last}}}}}}}}}{{
 
       #if:{{{editor1-first|}}}|, {{{editor1-first}}}
 
       #if:{{{editor1-first|}}}|, {{{editor1-first}}}
 
     }}{{
 
     }}{{
Line 101: Line 87:
 
     }}<!--endif {editor2-last} -->
 
     }}<!--endif {editor2-last} -->
 
   }}<!--endif {editor|editor1-last}
 
   }}<!--endif {editor|editor1-last}
----------------------------------------------------- Date if authors/editor
+
----------------------------------------------------- Date if authors/editors
 
-->{{
 
-->{{
 
   #if:{{{last|{{{author|{{{last1|{{{author1|{{{editor|{{{editor1-last|<!--
 
   #if:{{{last|{{{author|{{{last1|{{{author1|{{{editor|{{{editor1-last|<!--
Line 452: Line 438:
 
--22Jul12 New parameters: editor2-last/editor2-first... editor4-last/first.
 
--22Jul12 New parameters: editor2-last/editor2-first... editor4-last/first.
 
--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.
 
-->
 
-->
 
{{documentation|Template:Fcite_journal/doc}}
 
{{documentation|Template:Fcite_journal/doc}}

Revision as of 07:47, 23 July 2012

Template:Template for discussion/dated{{{title}}}..

Template documentation[create]