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

From blackwiki
Jump to navigation Jump to search
imported>Wikid77
(show "eds." plural when editor2-last; for {1}=help, if found "editor2=" - use "editor2-last"; faster check for date#1.)
imported>Wikid77
(fixed to omit date#2 when "editor1-last=" set.)
Line 97: Line 97:
 
         }}<!--endif {editor4-last} -->
 
         }}<!--endif {editor4-last} -->
 
       }}<!--endif {editor3-last}
 
       }}<!--endif {editor3-last}
     -->{{{sep|.}}} eds.&#32;
+
     --><b/>{{{author-separator|;}}} eds.&#32;
     |<!--else no editor2-->{{{sep|.}}} ed.&#32;
+
     |<!--else no editor2--><b/>{{{author-separator|;}}} ed.&#32;
 
     }}<!--endif {editor2-last} -->
 
     }}<!--endif {editor2-last} -->
 
   }}<!--endif {editor|editor1-last}
 
   }}<!--endif {editor|editor1-last}
 
----------------------------------------------------- Date if authors/editor
 
----------------------------------------------------- Date if authors/editor
 
-->{{
 
-->{{
   #if:{{{date|{{{year|{{{month|}}} }}} }}}
+
   #if:{{{last|{{{author|{{{last1|{{{author1|{{{editor|{{{editor1-last|<!--
    |{{<!--check if date here
 
  -->#if:{{{last|{{{author|{{{last1|{{{author1|{{{editor|{{{editor1-last|<!--
 
 
       -->}}} }}} }}} }}} }}} }}}
 
       -->}}} }}} }}} }}} }}} }}}
 +
    |{{<!--check if date here-->
 +
    #if:{{{date|{{{year|{{{month|}}} }}} }}}
 
       |&#32;({{{date|{{
 
       |&#32;({{{date|{{
 
         #if:{{{month|}}}
 
         #if:{{{month|}}}
 
           |{{{month}}}{{#if:{{{year|}}}&#32;}}
 
           |{{{month}}}{{#if:{{{year|}}}&#32;}}
 
         }}{{{year|}}}|}}}){{
 
         }}{{{year|}}}|}}}){{
      #if:{{{origyear|}}}|&#32;[{{{origyear}}}]
+
        #if:{{{origyear|}}}|&#32;[{{{origyear}}}]
      }}{{{sep|.}}}&#32;
+
        }}{{{sep|.}}}&#32;
 
       |<b/>{{{author-separator|;}}}&#32;<!--
 
       |<b/>{{{author-separator|;}}}&#32;<!--
   -->}}<!--endif {last|author|last1|author1|editor...}
+
   -->}}<!--endif {date|year|month}
-->}}<!--endif {date|year|month}
+
-->}}<!--endif {last|author|last1|author1|editor...}
 
-------------------------------------------------------
 
-------------------------------------------------------
 
-->{{#if:{{{work|{{{journal|{{{periodical|{{{magazine|{{{newspaper|<!--
 
-->{{#if:{{{work|{{{journal|{{{periodical|{{{magazine|{{{newspaper|<!--
Line 186: Line 186:
 
       |&#32;({{{issue|{{{number}}}}}})}}
 
       |&#32;({{{issue|{{{number}}}}}})}}
 
}}<!--endif vol/pub/ed/loc set-->{{
 
}}<!--endif vol/pub/ed/loc set-->{{
   #if:{{{last|{{{author|{{{last1|{{{author1|{{{editor|}}} }}} }}} }}} }}}
+
   #if:{{{date|{{{year|{{{month|}}} }}} }}}
     ||<!--else put any date here-->{{
+
     ||<!--check to put date here-->{{
     #if:{{{date|{{{year|{{{month|}}} }}} }}}
+
     #if:{{{last|{{{author|{{{last1|{{{author1|{{{editor|{{{editor1-last|
 +
        -->}}} }}} }}} }}} }}} }}}
 
       |{{{sep|.}}} {{{month|}}} {{{date|{{{year|}}}}}}{{
 
       |{{{sep|.}}} {{{month|}}} {{{date|{{{year|}}}}}}{{
 
       #if:{{{origyear|}}}|&#32;[{{{origyear}}}] }}
 
       #if:{{{origyear|}}}|&#32;[{{{origyear}}}] }}
     }}<!--endif {date|year|month}
+
     }}<!--endif {last|author|last1|author1|editor...}
-->}}<!--endif {last|author|last1|author1|editor}-->{{
+
-->}}<!--endif {date|year|month}-->{{
 
   #if:{{{archiveurl|}}}
 
   #if:{{{archiveurl|}}}
 
     |. Archived from [{{{archiveurl}}}{{{archiveurlx|}}}<!--url+urlx
 
     |. Archived from [{{{archiveurl}}}{{{archiveurlx|}}}<!--url+urlx
Line 316: Line 317:
 
-->{{
 
-->{{
 
#ifeq:{{{1|none}}}|none|<!--if nothing
 
#ifeq:{{{1|none}}}|none|<!--if nothing
   then-->.<!--end main citation
+
   then--><!--end main citation
 
   else-->|{{
 
   else-->|{{
 
   #if:{{{laysummary|}}}
 
   #if:{{{laysummary|}}}
Line 450: Line 451:
 
--22Jul12 For {ref}=harv, defaulted {year} as {#time:Y|date/publication-date}.
 
--22Jul12 For {ref}=harv, defaulted {year} as {#time:Y|date/publication-date}.
 
--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).
 
-->
 
-->
 
{{documentation|Template:Fcite_journal/doc}}
 
{{documentation|Template:Fcite_journal/doc}}

Revision as of 05:17, 22 July 2012

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

Template documentation[create]