Jump to content

Template:Citation/core: Difference between revisions

From IdeaWazaWiki
wikademia>COGDEN
Reflect moving DOI-URL issue to Template:Citation. Simplifies code.
wikademia>COGDEN
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 22:21, 4 September 2007