Difference between revisions of "Template:ReferenceTemplate"

From IMAGE
Jump to: navigation, search
Line 27: Line 27:
 
{{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 46: 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|}}}
Line 63: Line 63:
 
|Journal={{{Journal|}}}  
 
|Journal={{{Journal|}}}  
 
|ConferenceName={{{ConferenceName|}}}
 
|ConferenceName={{{ConferenceName|}}}
|Publisher={{#ifeq:{{{Publisher|}}}||
+
|Publisher={{#arraymap:
{{#ifeq:{{{Publisher2|}}}||
+
    {{{Publisher|}}};{{{Publisher2|}}};{{{Publisher3|}}};{{{Publisher4|}}};{{{Publisher5|}}}
{{#ifeq:{{{Publisher3|}}}||
+
    |;|xx|{{#ifeq:xx|||xx}}
{{#ifeq:{{{Publisher4|}}}||
+
    |}}
{{#ifeq:{{{Publisher5|}}}||
+
|ISBN={{#arraymap:
|{{{Publisher5|}}}
+
    {{{ISBN|}}};{{{ISBN2|}}};{{{ISBN3|}}}
}}
+
    |;|xx|{{#ifeq:xx|||xx}}
|{{{Publisher4|}}}
+
    |}}
}}
+
|Editor={{#arraymap:
|{{{Publisher3|}}}
+
    {{{Editor|}}};{{{Editor2|}}};{{{Editor3|}}}
}}
+
    |;|xx|{{#ifeq:xx|||xx}}
|{{{Publisher2|}}}
+
    |}}
}}
+
|Pages={{#arraymap:
|{{{Publisher|}}}  
+
    {{{Pages|}}};{{{Pages2|}}};{{{Pages3|}}};{{{Pages4|}}}
 +
    |;|xx|{{#ifeq:xx|||xx}}
 +
    |}}
 +
|SeriesTitle=|Pages={{#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}}  
 +
    |}}
 
}}
 
}}
|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|}}}
 
}}
 
}} <!--end FormattedReferenceTemplate call-->
 
|,,|xx|{{#set:HasFormattedReference=xx}}
 
|}}
 
  
 
<!-- [[:+]] restricts the query to the Main namespace -->
 
<!-- [[:+]] restricts the query to the Main namespace -->

Revision as of 09:48, 14 June 2017

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.