Template:ReferenceTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 23: Line 23:
{{TableRowTemplate|header=Publication type:|prop=HasPublicationType}}
{{TableRowTemplate|header=Publication type:|prop=HasPublicationType}}
{{TableRowTemplate|header=Title:|prop=HasTitle}}
{{TableRowTemplate|header=Title:|prop=HasTitle}}
{{TableRowTemplate|header=Authors:|prop=HasAuthor}}
{{TableRowTemplate|header=Authors:|prop=HasAuthorList}}
{{TableRowTemplate|header=Secondary title:|prop=HasSecondaryTitle}}
{{TableRowTemplate|header=Secondary title:|prop=HasSecondaryTitle}}
{{TableRowTemplate|header=Secondary authors:|prop=HasSecondaryAuthor}}
{{TableRowTemplate|header=Secondary authors:|prop=HasSecondaryAuthor}}
{{TableRowTemplate|header=Year:|prop=HasPublicationYear}}
{{TableRowTemplate|header=Year:|prop=HasPublicationYear}}
{{TableRowTemplate|header=Journal:|prop=HasJournal}}
{{TableRowTemplate|header=Date:|prop=HasPublicationDate}}
{{TableRowTemplate|header=Date:|prop=HasPublicationDate}}
{{TableRowTemplate|header=Book title:|prop=HasBookTitle}}
{{TableRowTemplate|header=Book title:|prop=HasBookTitle}}
Line 41: Line 42:
{{TableRowTemplate|header=DOI or URL:|prop=HasDOI}}
{{TableRowTemplate|header=DOI or URL:|prop=HasDOI}}
{{TableRowTemplate|header=ISBN:|prop=HasISBN}}
{{TableRowTemplate|header=ISBN:|prop=HasISBN}}
{{TableRowTemplate|header=Authors:|prop=HasAuthor}}
{{TableRowTemplate|header=Authors:|prop=HasAuthor}}
{{TableRowTemplate|header=Citation:|prop=HasFormattedReference}}
{{TableRowTemplate|header=Citation:|prop=HasFormattedReference}}
</table>
</table>
Line 48: Line 47:
then display and assign the result to the property "HasFormattedReference".  
then display and assign the result to the property "HasFormattedReference".  
This property can be used whenever you need a reference in citation format. -->
This property can be used whenever you need a reference in citation format. -->
{{#arraymap:
{{FormattedReferenceTemplate
{{FormattedReferenceTemplate
|PublicationType={{{PublicationType|}}}
|PublicationType={{{PublicationType|}}}
|Publisher={{#ifeq:{{{Publisher|}}}||
{{#ifeq:{{{Publisher2|}}}||
{{#ifeq:{{{Publisher3|}}}||
{{#ifeq:{{{Publisher4|}}}||
{{#ifeq:{{{Publisher5|}}}||
|{{{Publisher5|}}}
}}
|{{{Publisher4|}}}
}}
|{{{Publisher3|}}}
}}
|{{{Publisher2|}}}
}}
|{{{Publisher|}}}
}}
|ISBN={{#ifeq:{{{ISBN|}}}||
{{#ifeq:{{{ISBN2|}}}||
{{#ifeq:{{{ISBN3|}}}||
|{{{ISBN3|}}}
}}
|{{{ISBN2|}}}
}}
|{{{ISBN|}}}
}}
|Editor={{#ifeq:{{{Editor|}}}||
{{#ifeq:{{{Editor2|}}}||
{{#ifeq:{{{Editor3|}}}||
|{{{Editor3|}}}
}}
|{{{Editor2|}}}
}}
|{{{Editor|}}}
}}
|Pages={{#ifeq:{{{Pages|}}}||
{{#ifeq:{{{Pages2|}}}||
{{#ifeq:{{{Pages3|}}}||
            {{#ifeq:{{{Pages4|}}}||
            |{{{Pages4|}}}
            }}
|{{{Pages3|}}}
}}
|{{{Pages2|}}}
}}
|{{{Pages|}}}
}}
|SeriesTitle={{#ifeq:{{{SeriesTitle|}}}||
{{#ifeq:{{{SeriesTitle2|}}}||
|{{{SeriesTitle2|}}}
}}
|{{{SeriesTitle|}}}
}}
|City={{#ifeq:{{{City|}}}||
{{#ifeq:{{{City2|}}}||
{{#ifeq:{{{City3|}}}||
{{#ifeq:{{{City4|}}}||
{{#ifeq:{{{City5|}}}||
|{{{City5|}}}
}}
|{{{City4|}}}
}}
|{{{City3|}}}
}}
|{{{City2|}}}
}}
|{{{City|}}}
}}
|Volume={{#ifeq:{{{Volume|}}}||
{{#ifeq:{{{Volume2|}}}||
{{#ifeq:{{{Volume3|}}}||
{{#ifeq:{{{Volume4|}}}||
{{#ifeq:{{{Volume5|}}}||
                    {{#ifeq:{{{Volume6|}}}||
                    |{{{Volume6|}}}
                    }}
|{{{Volume5|}}}
}}
|{{{Volume4|}}}
}}
|{{{Volume3|}}}
}}
|{{{Volume2|}}}
}}
|{{{Volume|}}}
}}
|Author={{{Author|}}}
|Author={{{Author|}}}
|SecondaryTitle={{{SecondaryTitle|}}}
|SecondaryTitle={{{SecondaryTitle|}}}
Line 149: Line 63:
|Journal={{{Journal|}}}  
|Journal={{{Journal|}}}  
|ConferenceName={{{ConferenceName|}}}
|ConferenceName={{{ConferenceName|}}}
}} <!--end FormattedReferenceTemplate call-->
|Publisher={{#arraymap:
|,,|xx|{{#set:HasFormattedReference=xx}}
    {{{Publisher|}}};{{{Publisher2|}}};{{{Publisher3|}}};{{{Publisher4|}}};{{{Publisher5|}}}
|}}
    |;|xx|{{#ifeq:xx|||xx}}
    |}}
|ISBN={{#arraymap:
    {{{ISBN|}}};{{{ISBN2|}}};{{{ISBN3|}}}
    |;|xx|{{#ifeq:xx|||xx}}
    |}}
|Editor={{#arraymap:
    {{{Editor|}}};{{{Editor2|}}};{{{Editor3|}}}
    |;|xx|{{#ifeq:xx|||xx}}  
    |}}
|Pages={{#arraymap:
    {{{Pages|}}};{{{Pages2|}}};{{{Pages3|}}};{{{Pages4|}}}
    |;|xx|{{#ifeq:xx|||xx}}
    |}}
|SeriesTitle={{#arraymap:
    {{{SeriesTitle|}}};{{{SeriesTitle2|}}}
    |;|xx|{{#ifeq:xx|||xx}}
    |}}
|City={{#arraymap:
    {{{City|}}};{{{City2|}}};{{{City3|}}};{{{City4|}}};{{{City5|}}}
    |;|xx|{{#ifeq:xx|||xx}}
    |}}
|Volume={{#arraymap:
    {{{Volume|}}};{{{Volume2|}}};{{{Volume3|}}};{{{Volume4|}}};{{{Volume5|}}};{{{Volume6|}}}
    |;|xx|{{#ifeq:xx|||xx}}
    |}}
}}


<!-- [[:+]] restricts the query to the Main namespace -->
{{#ask:[[HasReference::{{PAGENAME}}]] OR [[HasKeyReference::{{PAGENAME}}]]
{{#ask:[[HasReference::{{PAGENAME}}]][[:+]] OR [[HasKeyReference::{{PAGENAME}}]][[:+]]
|mainlabel=
|mainlabel=
|?Category#-=  
|?Category#-=  
Line 160: Line 99:
|intro=This reference is used on the following pages:
|intro=This reference is used on the following pages:
}}For an overview of all references see [[All references table overview]] or [[All references overview]] (citation format)
}}For an overview of all references see [[All references table overview]] or [[All references overview]] (citation format)
[[Category:Reference]]


<!-- publication without a reference belong tot the category IMAGE publication.
The category Reference is a subset of IMAGE publication-->
{{#ifeq:
{{#ask:[[HasReference::{{PAGENAME}}]] OR [[HasKeyReference::{{PAGENAME}}]]
  |format=count
}}|0|[[Category:IMAGE publication]]|[[Category:Reference]]}}
</includeonly>
</includeonly>

Latest revision as of 09:58, 11 March 2020

This is the "ReferenceTemplate" template. It should be called in the following format:

{{ReferenceTemplate
|Author=
|Year=
|Title=
|DOI=
|PublicationType=
|Editor=
|Journal=
|Volume=
|Issue=
|Pages=
|Conference=
|HasFormattedReference=
}}

Edit the page to see the template text.