Difference between revisions of "Template:Citation/web"

From WikiChem
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
   |id="CITEREF{{anchorencode:{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}}{{{Year|{{{Date|}}}}}}{{{IncludedWorkTitle|}}}{{{Title|}}}}}"
 
   |id="CITEREF{{anchorencode:{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}}{{{Year|{{{Date|}}}}}}{{{IncludedWorkTitle|}}}{{{Title|}}}}}"
 
}}>{{
 
}}>{{
<!--============  Author or editor ============-->
+
<!--============  Author  ============-->
 
   #if:{{{Surname1|}}}
 
   #if:{{{Surname1|}}}
 
   |{{
 
   |{{
Line 41: Line 41:
 
               |, {{{Given3}}}
 
               |, {{{Given3}}}
 
             }}
 
             }}
 +
        }}
 
       }}
 
       }}
 
   }}{{
 
   }}{{
Line 48: Line 49:
 
}}{{
 
}}{{
 
<!--============  Title of included work  ============-->
 
<!--============  Title of included work  ============-->
   #if: {{{IncludedWorkTitle|}}}
+
   #if: {{{IncludedWorkTitle|{{{Title|}}}}}}
 
   |{{
 
   |{{
 
     #if:{{{Surname1|}}}  
 
     #if:{{{Surname1|}}}  
Line 54: Line 55:
 
   }}{{Link
 
   }}{{Link
 
     | 1={{{IncludedWorkURL|{{{URL|}}}}}}
 
     | 1={{{IncludedWorkURL|{{{URL|}}}}}}
     | 2={{{IncludedWorkTitle}}}
+
     | 2={{{IncludedWorkTitle|{{{Title|}}}}}}
   }}.&#32;
+
   }}
 
}}{{
 
}}{{
<!--============ Anything else with a title, including books ============-->
+
<!--============ URL and AccessDate ============-->
    #if: {{{Title|}}}
+
  #if: {{{IncludedWorkURL|{{{URL|}}}}}}
    |{{
+
  |{{
        #if: {{{Surname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}
+
    #if:{{{IncludedWorkTitle|{{{Title|}}}}}}
        |&#32;
+
    |<span class="printonly">, &lt;{{{IncludedWorkURL|{{{URL|}}}}}}&gt;</span>
      }}{{
+
    |{{#if:{{{Surname1|}}}
        #if: {{{IncludedWorkTitle|}}}
+
        |, &lt;{{{IncludedWorkURL|{{{URL|}}}}}}&gt;
        |In&#32;
+
         |&lt;{{{IncludedWorkURL|{{{URL|}}}}}}&gt;
        |{{
 
          #if: {{{EditorSurname1|}}}
 
          |{{
 
              #if: {{{Surname1|}}}
 
              |In&#32;
 
            }}
 
        }}
 
      }}''{{Link
 
        | 1={{
 
              #if: {{{IncludedWorkTitle|}}}
 
              |{{
 
                #if: {{{IncludedWorkURL|}}}
 
                |{{
 
                    #if: {{{URL|}}}
 
                    |{{{URL}}}
 
                    |{{
 
                      #if: {{{DOI|}}}
 
                      |http://dx.doi.org/{{urlencode:{{{DOI}}}}}
 
                  |{{
 
                    #if: {{{PMID|}}}
 
                    | http://www.ncbi.nlm.nih.gov/pubmed/{{urlencode:{{{PMID}}}}}  
 
                  }}  
 
                    }}
 
                  }}
 
              }}
 
              |{{
 
                #if: {{{URL|}}}
 
                |{{{URL}}}
 
                |{{
 
                    #if: {{{DOI|}}}
 
                    |http://dx.doi.org/{{urlencode:{{{DOI}}}}}
 
                  |{{
 
                    #if: {{{PMID|}}}
 
                    | http://www.ncbi.nlm.nih.gov/pubmed/{{urlencode:{{{PMID}}}}}
 
                  }}
 
                  }}
 
              }}
 
            }}
 
        | 2={{{Title}}}
 
      }}''{{
 
        #if: {{{Edition|}}}
 
        |, {{{Edition}}} ed.
 
      }}{{
 
<!--============  Editor(s) of collective works  ============-->
 
  #if: {{{EditorSurname1|}}}
 
  |<nowiki>;</nowiki>&#32;{{
 
        #if: {{{Editorlink1|}}}
 
        |[[{{{Editorlink1}}} |{{{EditorSurname1}}}{{
 
          #if: {{{EditorGiven1|}}}
 
          |, {{{EditorGiven1}}}
 
        }}]]
 
        |{{{EditorSurname1}}}{{
 
          #if: {{{EditorGiven1|}}}
 
          |, {{{EditorGiven1}}}
 
        }}
 
      }}{{
 
        #if: {{{EditorSurname2|}}}
 
        |<nowiki>; </nowiki>{{
 
          #if: {{{Editorlink2|}}}
 
          |[[{{{Editorlink2}}} |{{{EditorSurname2}}}{{
 
              #if: {{{EditorGiven2|}}}
 
              |, {{{EditorGiven2}}}
 
            }}]]
 
          |{{{EditorSurname2}}}{{
 
              #if: {{{EditorGiven2|}}}
 
              |, {{{EditorGiven2}}}
 
            }}
 
        }}{{
 
          #if: {{{EditorSurname3|}}}
 
          |<nowiki>; </nowiki>{{
 
              #if: {{{Editorlink3|}}}
 
              |[[{{{Editorlink3}}} |{{{EditorSurname3}}}{{
 
                #if: {{{EditorGiven3|}}}
 
                |, {{{EditorGiven3}}}
 
              }}]]
 
              |{{{EditorSurname3}}}{{
 
                #if: {{{EditorGiven3|}}}
 
                |, {{{EditorGiven3}}}
 
              }}
 
            }}
 
        }} }}{{
 
          #if:{{{EditorSurname4|}}}
 
          |, et al.
 
        }}, Ed{{#if:{{{EditorSurname2|}}}{{{EditorSurname4|}}}|s}}.
 
}}{{
 
<!--==========  Conference or series details  ==========-->
 
        #if: {{{Conference|}}}
 
        |<nowiki>; </nowiki>{{{Conference}}}
 
      }}{{
 
         #if: {{{Series|}}}
 
        |<nowiki>; </nowiki>{{{Series}}}
 
      }}{{
 
<!--==========  Publisher, location, date  ==========-->
 
        #if: {{{Publisher|}}}
 
        |<nowiki>; </nowiki>{{{Publisher}}}
 
      }}{{
 
        #if: {{{PublicationPlace|}}}
 
        |{{
 
          #if: {{{Publisher|}}}
 
          |<nowiki>: </nowiki>
 
          |<nowiki>; </nowiki>
 
        }} {{{PublicationPlace}}}
 
      }}{{
 
        #if: {{{Date|}}}
 
        |, {{{Date}}}
 
 
       }}
 
       }}
 +
  }}{{
 +
    #if: {{{AccessDate|}}}
 +
    |&#32;(accessed {{date|{{{AccessDate}}}}})
 +
    |{{#if:{{NAMESPACE}}||[[Category:Citations to websites without dates of access]]}}
 
   }}
 
   }}
 
}}{{
 
}}{{
<!--============ Page within included work ============-->
+
<!--============ Other identifying information ============-->
   #if: {{{Periodical|}}}
+
   #if: {{{IncludedWorkTitle|}}}{{{IncludedWorkURL|{{{URL|}}}}}}{{{AccessDate|}}}
  |
 
 
   |{{
 
   |{{
     #if: {{{Volume|}}}
+
     #if:{{{Title|}}}{{{Publisher|}}}{{{Archive|}}}
    |<nowiki>; </nowiki>Vol. {{{Volume}}}{{
+
    |,&#32;
      #if: {{{Chapter|}}}
+
  }}{{
      |, Chapter {{{Chapter}}}
+
    #if: {{{Title|}}}
      }}{{
+
    |{{{Title}}};&#32;
      #if: {{{At|}}}
+
  }}{{
      |, {{{At}}}
+
    #if: {{{Publisher|}}}
      }}
+
    |{{{Publisher}}}{{
    |{{
+
        #if: {{{Date|}}}
      #if: {{{Chapter|}}}
+
        |,&#32;{{{Date}}}
      |<nowiki>; </nowiki>Chapter {{{Chapter}}}{{
+
      }}{{
          #if: {{{At|}}}
+
         #if: {{{Archive|}}}
          |, {{{At}}}
+
         |,&#32;
          }}
 
      |{{
 
         #if: {{{At|}}}
 
         |<nowiki>; </nowiki>{{{At}}}
 
      }}
 
 
       }}
 
       }}
    }}
 
}}{{
 
<!--============ URL and AccessDate ============-->
 
  #if: {{{URL|}}}
 
  |{{
 
    #if: {{{Title|}}}{{{IncludedWorkTitle|}}}
 
    |<span class="printonly">, &lt;{{
 
                                      #if: {{{IncludedWorkURL|}}}
 
                                      |{{{IncludedWorkURL}}}
 
                                      |{{{URL}}}
 
                                    }}&gt;</span>
 
    |, &lt;{{
 
              #if: {{{IncludedWorkURL|}}}
 
              |{{{IncludedWorkURL}}}
 
              |{{{URL}}}
 
            }}&gt;
 
 
   }}{{
 
   }}{{
     #if: {{{AccessDate|}}}
+
     #if: {{{Archive|}}}
     | .&#32;(accessed {{date|{{{AccessDate}}}}})
+
     |{{{Archive}}}
 
   }}
 
   }}
 +
  |<!--{{  CODE kept just in case we need a separate section for {{{website}}}
 +
    #if:{{{Title|}}}{{{Publisher|}}}{{{Archive|}}}
 +
    |,&#32;
 +
  }}{{
 +
    #if: {{{Title|}}}
 +
    |{{{Title}}};&#32;
 +
  }}{{
 +
    #if: {{{Publisher|}}}
 +
    |{{{Publisher}}}{{
 +
        #if: {{{Date|}}}
 +
        |,&#32;{{{Date}}}
 +
      }}{{
 +
        #if: {{{Archive|}}}
 +
        |,&#32;
 +
      }}
 +
  }}{{
 +
    #if: {{{Archive|}}}
 +
    |{{{Archive}}}
 +
  }} -->
 
}}</cite><noinclude>
 
}}</cite><noinclude>
  
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 13:58, 23 August 2009

[edit] [purge] Template-info-500px.png Template documentation


Usage

Parameters

Examples

See also

Error creating thumbnail: Unable to save thumbnail to destination
This template is currently licensed under the Creative Commons Attribution 3.0 Unported license and any later versions of that license.