Template:ReferenceTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
 
(198 intermediate revisions by 5 users not shown)
Line 15: Line 15:
|Pages=
|Pages=
|Conference=
|Conference=
|HasFormattedReference=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>
</noinclude><includeonly>
{| style="border:solid 1px;width:100%;color:black;background-color:#EBEBD9" cellpadding="2" cellspacing="2"
<table class="PageWidthTableTemplate">
! align="left" valign="top"|Publication type
{{TableRowTemplate|header=Publication type:|prop=HasPublicationType}}
| [[HasPublicationType::{{{PublicationType|}}}]]
{{TableRowTemplate|header=Title:|prop=HasTitle}}
|-
{{TableRowTemplate|header=Authors:|prop=HasAuthorList}}
! align="left" valign="top"|Authors
{{TableRowTemplate|header=Secondary title:|prop=HasSecondaryTitle}}
| {{#arraymap:{{{Author|}}}|;|x|[[HasAuthor::x]]}}
{{TableRowTemplate|header=Secondary authors:|prop=HasSecondaryAuthor}}
{{#ifeq:{{{Author|}}}||||-
{{TableRowTemplate|header=Year:|prop=HasPublicationYear}}
! align="left" valign="top"|Year
{{TableRowTemplate|header=Journal:|prop=HasJournal}}
| [[HasPublicationYear::{{{Year|}}}]]
{{TableRowTemplate|header=Date:|prop=HasPublicationDate}}
{{TableRowTemplate|header=Book title:|prop=HasBookTitle}}
{{TableRowTemplate|header=Series title:|prop=HasSeriesTitle}}
{{TableRowTemplate|header=Conference name:|prop=HasConferenceName}}
{{TableRowTemplate|header=Volume:|prop=HasVolume}}
{{TableRowTemplate|header=Issue:|prop=HasIssue}}
{{TableRowTemplate|header=Pages:|prop=HasPages}}
{{TableRowTemplate|header=Publisher:|prop=HasPublisher}}
{{TableRowTemplate|header=City:|prop=HasCity}}
{{TableRowTemplate|header=Institution:|prop=HasInstitution}}
{{TableRowTemplate|header=Report number:|prop=HasReportNumber}}
{{TableRowTemplate|header=Link to the PBL-website:|prop=HasPBLlink}}
{{TableRowTemplate|header=DOI or URL:|prop=HasDOI}}
{{TableRowTemplate|header=ISBN:|prop=HasISBN}}
{{TableRowTemplate|header=Citation:|prop=HasFormattedReference}}
</table>
<!-- Arraymap function is used to call the FormattedReferenceTemplate with all reference parameters and
then display and assign the result to the property "HasFormattedReference".
This property can be used whenever you need a reference in citation format. -->
{{FormattedReferenceTemplate
|PublicationType={{{PublicationType|}}}
|Author={{{Author|}}}
|SecondaryTitle={{{SecondaryTitle|}}}
|SecondaryAuthor={{{SecondaryAuthor|}}}
|PublicationYear={{{Year|}}}
|Date={{{Date|}}}
|BookTitle={{{BookTitle|}}}
|Institution={{{Institution|}}}
|ReportNumber={{{ReportNumber|}}}
|PBLlink={{{PBL-link|}}}
|DOI={{{DOI|}}}
|Issue={{{Issue|}}}
|Title={{{Title|}}}
|Journal={{{Journal|}}}
|ConferenceName={{{ConferenceName|}}}
|Publisher={{#arraymap:
    {{{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}}
    |}}
}}
}}
|-
! align="left" valign="top"|Title
| [[HasTitle::{{{Title|}}}]]
|-
! align="left" valign="top"|DOI
| [[HasDOI::{{{DOI|}}}]]
|-
! align="left" valign="top"|Editors
| {{#arraymap:{{{Editor|}}}|;|x|[[HasEditor::x]]}}
|-
! align="left" valign="top"|Journal
| [[HasJournal::{{{Journal|}}}]]
|-
! align="left" valign="top"|Volume
| [[HasVolume::{{{Volume|}}}]]
|-
! align="left" valign="top"|Issue
| [[HasIssue::{{{Issue|}}}]]
|-
! align="left" valign="top"|Pages
| [[HasPages::{{{Pages|}}}]]
|-
! align="left" valign="top"|Conference
| [[HasConferenceName::{{{Conference|}}}]]
|}


[[Category:Reference]]
{{#ask:[[HasReference::{{PAGENAME}}]] OR [[HasKeyReference::{{PAGENAME}}]]
|mainlabel=
|?Category#-=
|format=ul
|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)
 
<!-- 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.