Difference between revisions of "Template:Citation/core"

From Self-sufficiency
Jump to: navigation, search
(Show DOI in print version, even if there is no URL.)
(Reflect moving DOI-URL issue to Template:Citation. Simplifies code.)
Line 128: Line 128:
 
   #if: {{{IncludedWorkTitle|}}}
 
   #if: {{{IncludedWorkTitle|}}}
 
   |{{
 
   |{{
     #if:{{{Surname1|}}}{{{EditorSurname1|}}}  
+
     #if:{{{Surname1|}}}
    | ,   
+
    |{{
 +
        #if: {{{EditorSurname1|}}}
 +
        |,   
 +
      }}
 
   }}{{Link
 
   }}{{Link
     | 1={{
+
     | 1={{{IncludedWorkURL|}}}
          #if: {{{IncludedWorkURL|}}}
+
          |{{{IncludedWorkURL}}}
+
          |{{
+
              #if: {{{URL|}}}
+
              |{{{URL}}}
+
              |{{
+
                #if: {{{DOI|}}}
+
                |http://dx.doi.org/{{urlencode:{{{DOI}}}}}
+
              }}
+
            }}
+
        }}
+
 
     | 2={{
 
     | 2={{
 
           #if: {{{Periodical|}}}
 
           #if: {{{Periodical|}}}
Line 230: Line 222:
 
     #if: {{{Title|}}}
 
     #if: {{{Title|}}}
 
     |"{{Link
 
     |"{{Link
         | 1={{
+
         | 1={{{URL|}}}
              #if: {{{IncludedWorkTitle|}}}
+
              |{{
+
                #if: {{{IncludedWorkURL|}}}
+
                |{{{URL|}}}
+
              }}
+
              |{{
+
                #if: {{{URL|}}}
+
                |{{{URL}}}
+
                |{{
+
                    #if: {{{DOI|}}}
+
                    |http://dx.doi.org/{{urlencode:{{{DOI}}}}}
+
                  }}
+
              }}
+
            }}
+
 
         | 2={{{Title}}}
 
         | 2={{{Title}}}
 
       }}", 
 
       }}", 
Line 295: Line 273:
 
         }}
 
         }}
 
       }}''{{Link
 
       }}''{{Link
         | 1={{
+
         | 1={{{URL|}}}
              #if: {{{IncludedWorkTitle|}}}
+
              |{{
+
                #if: {{{IncludedWorkURL|}}}
+
                |{{{URL|}}}
+
              }}
+
              |{{
+
                #if: {{{URL|}}}
+
                |{{{URL}}}
+
                |{{
+
                    #if: {{{DOI|}}}
+
                    |http://dx.doi.org/{{urlencode:{{{DOI}}}}}
+
                  }}
+
              }}
+
            }}
+
 
         | 2={{{Title}}}
 
         | 2={{{Title}}}
 
       }}''{{
 
       }}''{{
Line 381: Line 345:
 
   #if: {{{DOI|}}}
 
   #if: {{{DOI|}}}
 
   |{{
 
   |{{
     #if: {{{URL|}}}
+
     #ifeq: {{{URL|}}} | {{{DOIURL|}}}
    |, [[Digital object identifier|DOI]]:[http://dx.doi.org/{{urlencode:{{{DOI}}}}} {{{DOI}}}]
+
 
     |<span class="printonly">, DOI {{{DOI}}}</span>
 
     |<span class="printonly">, DOI {{{DOI}}}</span>
 +
    |, [[Digital object identifier|DOI]]:[{{{DOIURL}}} {{{DOI}}}]
 
   }}
 
   }}
 
}}{{
 
}}{{

Revision as of 23:36, 4 September 2007