Difference between revisions of "Template:Citation/core/testing"

From Chevy Wiki
Jump to navigation Jump to search
(Importing image file)
 
m (1 revision)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{documentation subpage}}This template is part of Wikipedia's [[Wikipedia:Wikimedia sister projects|sister projects]].
{{#if:{{{COinS|}}}
 
|<span
This template links an article to a page on [[commons:|Wikimedia Commons]], containing a gallery of related images. Use this template in the style '''<nowiki>{{Commons|PAGENAME}}</nowiki>''', where PAGENAME is the name of a page on the commons.
<!-- This is a COinS tag (http://ocoins.info), which allows automated tools to parse the citation information: -->
* An optional third parameter gives the displayed link text.
    class="Z3988"
* To link to a ''Category,'' use the template {{tl|Commonscat}}.
    title="ctx_ver=Z39.88-2004&rft_val_fmt={{urlencode:info:ofi/fmt:kev:mtx:}}book{{
So, to link to a category on the commons, use '''<nowiki>{{Commons|Category:CATNAME|CATNAME}}</nowiki>''' or '''<nowiki>{{Commonscat|CATNAME}}</nowiki>''', where CATNAME is the name of the category.
      #if: {{{Journal|}}}
 
      |&rft.genre=article&rft.atitle={{urlencode:{{{Title|}}}}}&rft.title={{urlencode:{{{Periodical|}}}}}
<includeonly>
      |{{
<!-- ADD CATEGORIES BELOW THIS LINE -->
        #if: {{{IncludedWorkTitle|}}}
[[Category:Interwiki link templates|Commons]]
        |&rft.genre=bookitem&rft.atitle={{urlencode:{{{IncludedWorkTitle|}}}}}
[[Category:Wikimedia Commons templates|{{PAGENAME}}]]
        |&rft.genre=book
<!-- ADD INTERWIKIS BELOW THIS LINE -->
      }}&rft.title={{urlencode:{{{Title|}}}}}
[[af:Sjabloon:Commons]]
    }}{{
[[als:Vorlage:Commons]]
      #if: {{{Surname1|}}} |&rft.aulast={{urlencode:{{{Surname1}}}}}
[[ar:قالب:كومنز]]
    }}{{
[[ast:Plantilla:Commons]]
      #if: {{{Given1|}}} |&rft.aufirst={{urlencode:{{{Given1}}}}}
[[az:Şablon:Commons]]
    }}{{
[[zh-min-nan:Template:Commons]]
      #if: {{{Date|}}} |&rft.date={{urlencode:{{{Date}}}}}
[[be:Шаблон:Commons]]
    }}{{
[[be-x-old:Шаблён:Commons]]
      #if: {{{Volume|}}} |&rft.volume={{urlencode:{{{Volume}}}}}
[[bar:Vorlage:Commons]]
    }}{{
[[bs:Šablon:Commons]]
      #if: {{{Issue|}}} |&rft.issue={{urlencode:{{{Issue}}}}}
[[bg:Шаблон:Общомедия]]
    }}{{
[[ca:Template:Commons]]
      #if: {{{Pages|}}} |&rft.pages={{urlencode:{{{Pages}}}}}
[[cs:Šablona:Commons]]
    }}{{
[[cy:Nodyn:Comin]]
      #if: {{{Edition|}}} |&rft.edition={{urlencode:{{{Edition}}}}}
[[da:Skabelon:Commons]]
    }}{{
[[de:Vorlage:Commons]]
      #if: {{{Place|}}} |&rft.place={{urlencode:{{{Place}}}}}
[[el:Πρότυπο:Commons]]
    }}{{
[[es:Plantilla:Commons2]]
      #if: {{{PublicationPlace|}}} |&rft.place={{urlencode:{{{PublicationPlace}}}}}
[[eo:Ŝablono:Commons]]
    }}{{
[[et:Mall:Commons]]
      #if: {{{Publisher|}}} |&rft.pub={{urlencode:{{{Publisher}}}}}
[[eu:Txantiloi:Commons]]
    }}{{
[[fa:الگو:انبار]]
      #if: {{{DOI|}}} |&rft_id=info:doi/{{urlencode:{{{DOI}}}}}
[[fr:Modèle:Commons]]
    }}{{
[[fy:Berjocht:Commons]]
      #if: {{{ISBN|}}} |&rft.isbn={{urlencode:{{{ISBN}}}}}
[[ga:Teimpléad:Cómhaoin]]
    }}{{
[[gl:Template:Commons]]
      #if: {{{ISSN|}}} |&rft.issn={{urlencode:{{{ISSN}}}}}
[[ko:틀:Commons]]
    }}{{
[[hsb:Předłoha:Commons]]
      #if: {{{URL|{{{IncludedWorkURL|}}}}}} |&rft_id={{urlencode:{{{URL|{{{IncludedWorkURL|}}}}}}}}
[[hr:Predložak:Commons]]
    }}"
[[io:Template:Commons]]
>}}<cite
[[ilo:Template:Commons]]
{{
[[id:Templat:Commons]]
  #if:{{{Ref|}}}
[[ia:Patrono:Commons]]
  |{{#ifeq:{{{Ref|}}}|none||id="{{{Ref|}}}"}}
[[iu:Template:Commons]]
  |id="CITEREF{{#if:{{{Surname1|}}}
[[ik:Template:Commons]]
    |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}}
[[is:Snið:Commons]]
    |{{{EditorSurname1|}}}{{{EditorSurname2|}}}{{{EditorSurname3|}}}{{{EditorSurname4|}}}
[[it:Template:Commons]]
  }}{{{Year|{{{Date|}}}}}}"
[[he:תבנית:Commons]]
}}>{{
[[kn:ಟೆಂಪ್ಲೇಟು:Commons]]
<!--============  Author or editor and date  ============-->
[[ku:Şablon:Commons]]
  #if:{{{Surname1|}}}
[[la:Formula:Communia2]]
  |{{
[[lv:Veidne:Commons]]
    #if: {{{Authorlink1|}}}
[[lb:Template:Commons]]
    |[[{{{Authorlink1}}} |{{{Surname1}}}{{
[[lt:Šablonas:Commons]]
        #if: {{{Given1|}}}
[[li:Sjabloon:Commons]]
        |, {{{Given1}}}
[[hu:Sablon:Commons]]
      }}]]
[[mk:Шаблон:Commons]]
    |{{{Surname1}}}{{
[[ms:Templat:Commons]]
        #if: {{{Given1|}}}
[[nl:Sjabloon:Commons]]
        |, {{{Given1}}}
[[ja:Template:Commons]]
      }}
[[ka:თარგი:Commons]]
  }}{{
[[no:Mal:Commons]]
    #if: {{{Surname2|}}}
[[nn:Mal:Commons]]
    |{{
[[oc:Modèl:Commons]]
        #if: {{{Surname3|}}}
[[nds:Vörlaag:Commons]]
        |<nowiki>; </nowiki>
[[pa:ਨਮੂਨਾ:ਕਾਮਨਜ਼]]
        |&#32;&amp;&#32;
[[pl:Szablon:Commons]]
      }}{{
[[pt:Predefinição:Commons]]
        #if: {{{Authorlink2|}}}
[[ro:Format:Commons]]
        |[[{{{Authorlink2}}} |{{{Given2|}}} {{{Surname2}}}]]
[[ru:Шаблон:Commons]]
        |{{{Given2|}}} {{{Surname2}}}
[[sq:Stampa:Commons]]
      }}{{
[[scn:Template:Commons]]
        #if: {{{Surname3|}}}
[[simple:Template:Commons]]
        |&#32;&amp; {{
[[sk:Šablóna:Commons]]
          #if: {{{Authorlink3|}}}
[[sl:Predloga:Zbirka]]
          |[[{{{Authorlink3}}} |{{{Given3|}}} {{{Surname3}}}]]
[[sr:Шаблон:Commons]]
          |{{{Given3|}}} {{{Surname3}}}
[[sh:Template:Commons]]
        }}{{
[[fi:Malline:Commons]]
          #if:{{{Surname4|}}}
[[su:Citakan:Commons]]
          |&#32;et al.
[[sv:Mall:Commons]]
        }}
[[tl:Template:Commons]]
      }}
[[tt:Ürnäk:Commons]]
  }}{{
[[vi:Tiêu bản:Commons]]
    #if: {{{Date|}}}
[[tr:Şablon:Commons]]
    |&#32;({{{Date}}})
[[wa:Modele:Commons]]
  }}
[[uk:Шаблон:Commons]]
  |{{
[[ur:سانچہ:Commons]]
    #if: {{{EditorSurname1|}}}
[[zh-yue:Template:同享]]
    |{{
[[zh:Template:Commons]]
        #if: {{{Editorlink1|}}}
</includeonly>
        |[[{{{Editorlink1}}} |{{{EditorSurname1}}}{{
          #if: {{{EditorGiven1|}}}
          |, {{{EditorGiven1}}}
        }}]]
        |{{{EditorSurname1}}}{{
          #if: {{{EditorGiven1|}}}
          |, {{{EditorGiven1}}}
        }}
      }}{{
        #if: {{{EditorSurname2|}}}
        |{{
          #if: {{{EditorSurname3|}}}
          |<nowiki>; </nowiki>
          |&#32;&amp;&#32;
        }}{{
          #if: {{{Editorlink2|}}}
          |[[{{{Editorlink2}}} |{{{EditorGiven2|}}} {{{EditorSurname2}}}]]
          |{{{EditorGiven2|}}} {{{EditorSurname2}}}
        }}{{
          #if: {{{EditorSurname3|}}}
          |&#32;&amp; {{
              #if: {{{Editorlink3|}}}
              |[[{{{Editorlink3}}} |{{{EditorGiven3|}}} {{{EditorSurname3}}}]]
              |{{{EditorGiven3|}}} {{{EditorSurname3}}}
            }}{{
              #if:{{{EditorSurname4|}}}
              |&#32;et al.
            }}
        }}
      }}, ed{{#if:{{{EditorSurname2|}}}|s}}.{{
        #if: {{{Date|}}}
        |&#32;({{{Date}}})
      }}
  }}
}}{{
<!--============  Title of included work  ============-->
  #if: {{{IncludedWorkTitle|}}}
  |{{
    #if:{{{Surname1|}}}{{{EditorSurname1|}}}
    |,&#32;
  }}{{Link
    | 1={{
          #if: {{{IncludedWorkURL|}}}
          |{{{IncludedWorkURL}}}
          |{{
              #if: {{{URL|}}}
              |{{{URL}}}
              |{{
                #if: {{{DOI|}}}
                |http://dx.doi.org/{{urlencode:{{{DOI}}}}}
              }}
            }}
        }}
    | 2={{
          #if: {{{Periodical|}}}
          |''{{{IncludedWorkTitle}}}''
          |"{{{IncludedWorkTitle}}}"
        }}
  }}
}}{{
<!--============  Place (if different than PublicationPlace) ============-->
  #if: {{{Place|}}}
  |{{
    #ifeq: {{{Place|}}} | {{{PublicationPlace|}}}
    |
    |{{
        #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}
        |, written at {{{Place}}}
      }}
  }}
}}{{
<!--============  Editor of compilation  ============-->
  #if: {{{EditorSurname1|}}}
  |{{
    #if: {{{Surname1|}}}
    |, {{
        #if: {{{IncludedWorkTitle|}}}
        |in&#32;
      }}{{
        #if: {{{Editorlink1|}}}
        |[[{{{Editorlink1}}} |{{{EditorSurname1}}}{{
          #if: {{{EditorGiven1|}}}
          |, {{{EditorGiven1}}}
        }}]]
        |{{{EditorSurname1}}}{{
          #if: {{{EditorGiven1|}}}
          |, {{{EditorGiven1}}}
        }}
      }}{{
        #if: {{{EditorSurname2|}}}
        |{{
          #if: {{{EditorSurname3|}}}
          |<nowiki>; </nowiki>
          |&#32;&amp;&#32;
        }}{{
          #if: {{{Editorlink2|}}}
          |[[{{{Editorlink2}}} |{{{EditorGiven2|}}} {{{EditorSurname2}}}]]
          |{{{EditorGiven2|}}} {{{EditorSurname2}}}
        }}{{
          #if: {{{EditorSurname3|}}}
          |&#32;&amp; {{
              #if: {{{Editorlink3|}}}
              |[[{{{Editorlink3}}} |{{{EditorGiven3|}}} {{{EditorSurname3}}}]]
              |{{{EditorGiven3|}}} {{{EditorSurname3}}}
            }}{{
              #if:{{{EditorSurname4|}}}
              |&#32;et al.
            }}
        }}
      }}{{
        #if: {{{IncludedWorkTitle|}}}
        |
        |, ed{{#if:{{{EditorSurname2|}}}|s}}.
      }}
  }}
}}{{
  <!--============  Periodicals  ============-->
  #if: {{{Periodical|}}}
  |{{
    #if: {{{Surname1|}}}{{{EditorSurname1|}}}
    |,&#32;
  }}{{
    #if: {{{Title|}}}
    |"{{Link
        | 1={{
              #if: {{{IncludedWorkTitle|}}}
              |{{
                #if: {{{IncludedWorkURL|}}}
                |{{
                    #if: {{{URL|}}}
                    |{{{URL}}}
                    |{{
                      #if: {{{DOI|}}}
                      |http://dx.doi.org/{{urlencode:{{{DOI}}}}}
                    }}
                  }}
              }}
              |{{
                #if: {{{URL|}}}
                |{{{URL}}}
                |{{
                    #if: {{{DOI|}}}
                    |http://dx.doi.org/{{urlencode:{{{DOI}}}}}
                  }}
              }}
            }}
        | 2={{{Title}}}
      }}",&#32;
  }}''{{{Periodical}}}''{{
    #if: {{{Series|}}}
    |, {{{Series}}}
  }}{{
    #if: {{{PublicationPlace|}}}
    |{{
        #if: {{{Publisher|}}}
        |&#32;({{{PublicationPlace}}}<nowiki>: </nowiki>{{{Publisher}}})
        |&#32;({{{PublicationPlace}}})
      }}
    |{{
        #if: {{{Publisher|}}}
        |&#32;({{{Publisher}}})
      }}
  }}{{
    #if: {{{Volume|}}}
    |&#32;'''{{{Volume}}}'''{{
        #if: {{{Issue|}}}
        |&#x00a0;({{{Issue}}})
      }}
    |{{
        #if: {{{Issue|}}}
        |&#32;(no. {{{Issue}}})
      }}
  }}{{
    #if: {{{Pages|}}}
    |<nowiki>: </nowiki> {{{Pages|}}}
  }}
  |{{
    <!--============ Anything else with a title, including books ============-->
    #if: {{{Title|}}}
    |{{
        #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}
        |,&#32;
      }}''{{Link
        | 1={{
              #if: {{{IncludedWorkTitle|}}}
              |{{
                #if: {{{IncludedWorkURL|}}}
                |{{
                    #if: {{{URL|}}}
                    |{{{URL}}}
                    |{{
                      #if: {{{DOI|}}}
                      |http://dx.doi.org/{{urlencode:{{{DOI}}}}}
                    }}
                  }}
              }}
              |{{
                #if: {{{URL|}}}
                |{{{URL}}}
                |{{
                    #if: {{{DOI|}}}
                    |http://dx.doi.org/{{urlencode:{{{DOI}}}}}
                  }}
              }}
            }}
        | 2={{{Title}}}
      }}''{{
        #if: {{{Volume|}}}
        |, vol. {{{Volume}}}
      }}{{
        #if: {{{Edition|}}}
        |&#32;({{{Edition}}} ed.)
      }}{{
        #if: {{{Series|}}}
        |, {{{Series}}}
      }}{{
        #if: {{{PublicationPlace|}}}
        |, {{{PublicationPlace}}}
      }}{{
        #if: {{{Publisher|}}}
        |{{
          #if: {{{PublicationPlace|}}}
          |<nowiki>:</nowiki>
          |,
        }} {{{Publisher}}}
      }}
  }}
}}{{
<!--============ Date (if no author/editor) ============-->
  #if: {{{Surname1|}}}{{{EditorSurname1|}}}
  |
  |{{
    #if: {{{Date|}}}
    |, {{{Date}}}
  }}
}}{{
<!--============ Publication date ============-->
  #if: {{{PublicationDate|}}}
  |{{
    #ifeq: {{{PublicationDate|}}} | {{{Date|}}}
    |
    |{{
        #if: {{{EditorSurname1|}}}
        |{{
          #if: {{{Surname1|}}}
          |, {{{PublicationDate}}}
          |&#32;(published {{{PublicationDate}}})
        }}
        |{{
          #if: {{{Periodical|}}}
          |, {{{PublicationDate}}}
          |&#32;(published {{{PublicationDate}}})
        }}
      }}
  }}
}}{{
<!--============ Page within included work ============-->
  #if: {{{Periodical|}}}
  |
  |{{
    #if: {{{Pages|}}}
    |, {{{PagesTag|}}} {{{Pages}}}
  }}
}}{{
<!--============ Misc. Identifier ============-->
  #if: {{{ID|}}}
  |, {{{ID}}}
}}{{
<!--============ ISBN ============-->
  #if: {{{ISBN|}}}
  |, ISBN {{{ISBN}}}
}}{{
<!--============ ISSN ============-->
  #if: {{{ISSN|}}}
  |, [[International Standard Serial Number|ISSN]] [http://worldcat.org/issn/{{{ISSN}}} {{{ISSN}}}]
}}{{
<!--============ OCLC ============-->
  #if: {{{OCLC|}}}
  |, [[OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{OCLC}}}}} {{{OCLC}}}]
}}{{
<!--============ DOI ============-->
  #if: {{{DOI|}}}
  |{{
    #if: {{{URL|}}}{{{IncludedWorkURL|}}}
    |, [[Digital object identifier|DOI]]:[http://dx.doi.org/{{urlencode:{{{DOI}}}}} {{{DOI}}}]
    |<span class="printonly">, DOI {{{DOI}}}</span>
  }}
}}{{
<!--============ 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|}}}
    | .&#32;Retrieved on {{{AccessDate}}}
  }}
}}</cite>{{#if:{{{COinS|}}}|</span>}}

Latest revision as of 15:11, 3 February 2009