Difference between revisions of "Template:Citation/core"

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

Revision as of 00:21, 5 September 2007