Template:ReferenceTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
Line 23: Line 23:
<tr>
<tr>
<td class="PageWidthTableFirstCell">'''Publication type:'''</td>
<td class="PageWidthTableFirstCell">'''Publication type:'''</td>
<td valign="top">{{#ifeq:{{{PublicationType|}}}||''unknown''|
<td class="PageWidthTableRemainderCell">{{#ifeq:{{{PublicationType|}}}||''unknown''|
[[HasPublicationType::{{{PublicationType|}}}]]}}</td></tr>
[[HasPublicationType::{{{PublicationType|}}}]]}}</td></tr>
{{#ifeq:{{{Title|}}}|||
{{#ifeq:{{{Title|}}}|||
<tr><td valign="top">'''Title:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Title:'''</td>
<td valign="top">
<td class="PageWidthTableRemainderCell">
[[HasTitle::{{{Title|}}}]]</td></tr>
[[HasTitle::{{{Title|}}}]]</td></tr>
}}{{#ifeq:{{{Author|}}}|||
}}{{#ifeq:{{{Author|}}}|||
<tr><td valign="top">'''Authors:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Authors:'''</td>
<td valign="top">{{#arraymap:{{{Author|}}}|;|x|
<td class="PageWidthTableRemainderCell">{{#arraymap:{{{Author|}}}|;|x|
[[HasAuthor::x]]}}</td></tr>
[[HasAuthor::x]]}}</td></tr>
}}{{#ifeq:{{{SecondaryTitle|}}}|||
}}{{#ifeq:{{{SecondaryTitle|}}}|||
<tr><td valign="top">'''Secondary title:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Secondary title:'''</td>
<td valign="top">
<td class="PageWidthTableRemainderCell">
[[HasSecondaryTitle::{{{SecondaryTitle|}}}]]</td></tr>
[[HasSecondaryTitle::{{{SecondaryTitle|}}}]]</td></tr>
}}{{#ifeq:{{{SecondaryAuthor|}}}|||
}}{{#ifeq:{{{SecondaryAuthor|}}}|||
<tr><td valign="top">'''Secondary authors:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Secondary authors:'''</td>
<td valign="top">{{#arraymap:{{{SecondaryAuthor|}}}|;|x|
<td class="PageWidthTableRemainderCell">{{#arraymap:{{{SecondaryAuthor|}}}|;|x|
[[HasSecondaryAuthor::x]]}}</td></tr>
[[HasSecondaryAuthor::x]]}}</td></tr>
}}{{#ifeq:{{{Year|}}}|||
}}{{#ifeq:{{{Year|}}}|||
<tr><td valign="top">'''Year:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Year:'''</td><td class="PageWidthTableRemainderCell">
[[HasPublicationYear::{{{Year|}}}]]</td></tr>
[[HasPublicationYear::{{{Year|}}}]]</td></tr>
}}{{#ifeq:{{{Date|}}}|||
}}{{#ifeq:{{{Date|}}}|||
<tr><td valign="top">'''Date:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Date:'''</td><td class="PageWidthTableRemainderCell">
[[HasPublicationDate::{{{Date|}}}]]</td></tr>
[[HasPublicationDate::{{{Date|}}}]]</td></tr>
}}{{#ifeq:{{{BookTitle|}}}|||
}}{{#ifeq:{{{BookTitle|}}}|||
<tr><td valign="top">'''Book title:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Book title:'''</td><td class="PageWidthTableRemainderCell">
[[HasBookTitle::{{{BookTitle|}}}]]</td></tr>
[[HasBookTitle::{{{BookTitle|}}}]]</td></tr>
}}{{#ifeq:{{{SeriesTitle|}}}|||
}}{{#ifeq:{{{SeriesTitle|}}}|||
<tr><td valign="top">'''Series title:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Series title:'''</td><td class="PageWidthTableRemainderCell">
[[HasSeriesTitle::{{{SeriesTitle|}}}]]</td></tr>
[[HasSeriesTitle::{{{SeriesTitle|}}}]]</td></tr>
}}{{#ifeq:{{{SeriesTitle2|}}}|||
}}{{#ifeq:{{{SeriesTitle2|}}}|||
<tr><td valign="top">'''Series title:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Series title:'''</td><td class="PageWidthTableRemainderCell">
[[HasSeriesTitle::{{{SeriesTitle2|}}}]]</td></tr>
[[HasSeriesTitle::{{{SeriesTitle2|}}}]]</td></tr>
}}{{#ifeq:{{{Editor|}}}|||
}}{{#ifeq:{{{Editor|}}}|||
<tr><td valign="top">'''Editors:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Editors:'''</td>
<td valign="top">{{#arraymap:{{{Editor|}}}|;|x|
<td class="PageWidthTableFirstCell">{{#arraymap:{{{Editor|}}}|;|x|
[[HasEditor::x]]}}</td></tr>
[[HasEditor::x]]}}</td></tr>
}}{{#ifeq:{{{Editor2|}}}|||
}}{{#ifeq:{{{Editor2|}}}|||
<tr><td valign="top">'''Editors:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Editors:'''</td>
<td valign="top">{{#arraymap:{{{Editor2|}}}|;|x|
<td class="PageWidthTableRemainderCell">{{#arraymap:{{{Editor2|}}}|;|x|
[[HasEditor::x]]}}</td></tr>
[[HasEditor::x]]}}</td></tr>
}}{{#ifeq:{{{Editor3|}}}|||
}}{{#ifeq:{{{Editor3|}}}|||
<tr><td valign="top">'''Editors:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Editors:'''</td>
<td valign="top">{{#arraymap:{{{Editor3|}}}|;|x|
<td class="PageWidthTableRemainderCell">{{#arraymap:{{{Editor3|}}}|;|x|
[[HasEditor::x]]}}</td></tr>
[[HasEditor::x]]}}</td></tr>
}}{{#ifeq:{{{Journal|}}}|||
}}{{#ifeq:{{{Journal|}}}|||
<tr><td valign="top">'''Journal:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Journal:'''</td><td class="PageWidthTableRemainderCell">
[[HasJournal::{{{Journal|}}}]]</td></tr>
[[HasJournal::{{{Journal|}}}]]</td></tr>
}}{{#ifeq:{{{Volume|}}}|||
}}{{#ifeq:{{{Volume|}}}|||
<tr><td valign="top">'''Volume:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Volume:'''</td><td class="PageWidthTableRemainderCell">
[[HasVolume::{{{Volume|}}}]]</td></tr>
[[HasVolume::{{{Volume|}}}]]</td></tr>
}}{{#ifeq:{{{Volume2|}}}|||
}}{{#ifeq:{{{Volume2|}}}|||
<tr><td valign="top">'''Volume:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Volume:'''</td><td class="PageWidthTableRemainderCell">
[[HasVolume::{{{Volume2|}}}]]</td></tr>
[[HasVolume::{{{Volume2|}}}]]</td></tr>
}}{{#ifeq:{{{Volume3|}}}|||
}}{{#ifeq:{{{Volume3|}}}|||
<tr><td valign="top">'''Volume:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Volume:'''</td><td class="PageWidthTableRemainderCell">
[[HasVolume::{{{Volume3|}}}]]</td></tr>
[[HasVolume::{{{Volume3|}}}]]</td></tr>
}}{{#ifeq:{{{Volume4|}}}|||
}}{{#ifeq:{{{Volume4|}}}|||
<tr><td valign="top">'''Volume:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Volume:'''</td><td class="PageWidthTableRemainderCell">
[[HasVolume::{{{Volume4|}}}]]</td></tr>
[[HasVolume::{{{Volume4|}}}]]</td></tr>
}}{{#ifeq:{{{Volume5|}}}|||
}}{{#ifeq:{{{Volume5|}}}|||
<tr><td valign="top">'''Volume:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Volume:'''</td><td class="PageWidthTableRemainderCell">
[[HasVolume::{{{Volume5|}}}]]</td></tr>
[[HasVolume::{{{Volume5|}}}]]</td></tr>
}}{{#ifeq:{{{Issue|}}}|||
}}{{#ifeq:{{{Issue|}}}|||
<tr><td valign="top">'''Issue:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Issue:'''</td><td class="PageWidthTableRemainderCell">
[[HasIssue::{{{Issue|}}}]]</td></tr>
[[HasIssue::{{{Issue|}}}]]</td></tr>
}}{{#ifeq:{{{Pages|}}}|||
}}{{#ifeq:{{{Pages|}}}|||
<tr><td valign="top">'''Pages:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Pages:'''</td><td class="PageWidthTableRemainderCell">
[[HasPages::{{{Pages|}}}]]</td></tr>
[[HasPages::{{{Pages|}}}]]</td></tr>
}}{{#ifeq:{{{Pages2|}}}|||
}}{{#ifeq:{{{Pages2|}}}|||
<tr><td valign="top">'''Pages:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Pages:'''</td><td class="PageWidthTableRemainderCell">
[[HasPages::{{{Pages2|}}}]]</td></tr>
[[HasPages::{{{Pages2|}}}]]</td></tr>
}}{{#ifeq:{{{Pages3|}}}|||
}}{{#ifeq:{{{Pages3|}}}|||
<tr><td valign="top">'''Pages:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Pages:'''</td><td class="PageWidthTableRemainderCell">
[[HasPages::{{{Pages3|}}}]]</td></tr>
[[HasPages::{{{Pages3|}}}]]</td></tr>
}}{{#ifeq:{{{Publisher|}}}|||
}}{{#ifeq:{{{Publisher|}}}|||
<tr><td valign="top">'''Publisher:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Publisher:'''</td><td class="PageWidthTableRemainderCell">
[[HasPublisher::{{{Publisher|}}}]]</td></tr>
[[HasPublisher::{{{Publisher|}}}]]</td></tr>
}}{{#ifeq:{{{Publisher2|}}}|||
}}{{#ifeq:{{{Publisher2|}}}|||
<tr><td valign="top">'''Publisher:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Publisher:'''</td><td class="PageWidthTableRemainderCell">
[[HasPublisher::{{{Publisher2|}}}]]</td></tr>
[[HasPublisher::{{{Publisher2|}}}]]</td></tr>
}}{{#ifeq:{{{Publisher3|}}}|||
}}{{#ifeq:{{{Publisher3|}}}|||
<tr><td valign="top">'''Publisher:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Publisher:'''</td><td class="PageWidthTableRemainderCell">
[[HasPublisher::{{{Publisher3|}}}]]</td></tr>
[[HasPublisher::{{{Publisher3|}}}]]</td></tr>
}}{{#ifeq:{{{Publisher4|}}}|||
}}{{#ifeq:{{{Publisher4|}}}|||
<tr><td valign="top">'''Publisher:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Publisher:'''</td><td class="PageWidthTableRemainderCell">
[[HasPublisher::{{{Publisher4|}}}]]</td></tr>
[[HasPublisher::{{{Publisher4|}}}]]</td></tr>
}}{{#ifeq:{{{Publisher5|}}}|||
}}{{#ifeq:{{{Publisher5|}}}|||
<tr><td valign="top">'''Publisher:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Publisher:'''</td><td class="PageWidthTableRemainderCell">
[[HasPublisher::{{{Publisher5|}}}]]</td></tr>
[[HasPublisher::{{{Publisher5|}}}]]</td></tr>
}}{{#ifeq:{{{City|}}}|||
}}{{#ifeq:{{{City|}}}|||
<tr><td valign="top">'''City:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''City:'''</td><td class="PageWidthTableRemainderCell">
[[HasCity::{{{City|}}}]]</td></tr>
[[HasCity::{{{City|}}}]]</td></tr>
}}{{#ifeq:{{{City2|}}}|||
}}{{#ifeq:{{{City2|}}}|||
<tr><td valign="top">'''City:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''City:'''</td><td class="PageWidthTableRemainderCell">
[[HasCity::{{{City2|}}}]]</td></tr>
[[HasCity::{{{City2|}}}]]</td></tr>
}}{{#ifeq:{{{City3|}}}|||
}}{{#ifeq:{{{City3|}}}|||
<tr><td valign="top">'''City:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''City:'''</td><td class="PageWidthTableRemainderCell">
[[HasCity::{{{City3|}}}]]</td></tr>
[[HasCity::{{{City3|}}}]]</td></tr>
}}{{#ifeq:{{{City4|}}}|||
}}{{#ifeq:{{{City4|}}}|||
<tr><td valign="top">'''City:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''City:'''</td><td class="PageWidthTableRemainderCell">
[[HasCity::{{{City4|}}}]]</td></tr>
[[HasCity::{{{City4|}}}]]</td></tr>
}}{{#ifeq:{{{City5|}}}|||
}}{{#ifeq:{{{City5|}}}|||
<tr><td valign="top">'''City:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''City:'''</td><td class="PageWidthTableRemainderCell">
[[HasCity::{{{City5|}}}]]</td></tr>
[[HasCity::{{{City5|}}}]]</td></tr>
}}{{#ifeq:{{{Institution|}}}|||
}}{{#ifeq:{{{Institution|}}}|||
<tr><td valign="top">'''Institution:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Institution:'''</td><td class="PageWidthTableRemainderCell">
[[HasInstitution::{{{Institution|}}}]]</td></tr>
[[HasInstitution::{{{Institution|}}}]]</td></tr>
}}{{#ifeq:{{{ReportNumber|}}}|||
}}{{#ifeq:{{{ReportNumber|}}}|||
<tr><td valign="top">'''Report number:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Report number:'''</td><td class="PageWidthTableRemainderCell">
[[HasReportNumber::{{{ReportNumber|}}}]]</td></tr>
[[HasReportNumber::{{{ReportNumber|}}}]]</td></tr>
}}{{#ifeq:{{{PBL-link|}}}|||
}}{{#ifeq:{{{PBL-link|}}}|||
<tr><td valign="top">'''Link to the PBL-website:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''Link to the PBL-website:'''</td><td class="PageWidthTableRemainderCell">
[[HasPBLlink::{{{PBL-link|}}}]]</td></tr>
[[HasPBLlink::{{{PBL-link|}}}]]</td></tr>
}}{{#ifeq:{{{DOI|}}}|||
}}{{#ifeq:{{{DOI|}}}|||
<tr><td valign="top">'''DOI or URL:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''DOI or URL:'''</td><td class="PageWidthTableRemainderCell">
[[HasDOI::{{{DOI|}}}]]</td></tr>
[[HasDOI::{{{DOI|}}}]]</td></tr>
}}{{#ifeq:{{{ISBN|}}}|||
}}{{#ifeq:{{{ISBN|}}}|||
<tr><td valign="top">'''ISBN:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''ISBN:'''</td><td class="PageWidthTableRemainderCell">
[[HasISBN::{{{ISBN|}}}]]</td></tr>
[[HasISBN::{{{ISBN|}}}]]</td></tr>
}}{{#ifeq:{{{ISBN2|}}}|||<tr><td valign="top">'''ISBN:'''</td><td valign="top">
}}{{#ifeq:{{{ISBN2|}}}|||<tr><td class="PageWidthTableFirstCell">'''ISBN:'''</td><td class="PageWidthTableRemainderCell">
[[HasISBN::{{{ISBN2|}}}]]</td></tr>
[[HasISBN::{{{ISBN2|}}}]]</td></tr>
}}{{#ifeq:{{{ISBN3|}}}|||
}}{{#ifeq:{{{ISBN3|}}}|||
<tr><td valign="top">'''ISBN:'''</td><td valign="top">
<tr><td class="PageWidthTableFirstCell">'''ISBN:'''</td><td class="PageWidthTableRemainderCell">
[[HasISBN::{{{ISBN3|}}}]]</td></tr>}}
[[HasISBN::{{{ISBN3|}}}]]</td></tr>}}
<tr><td valign="top">'''Citation:'''</td><td valign="top">{{#show:{{PAGENAME}}|?HasFormattedReference}}</td></tr>
<tr><td class="PageWidthTableFirstCell">'''Citation:'''</td><td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|?HasFormattedReference}}</td></tr>
</table>
</table>
<!-- Arraymap function is used to call the FormattedReferenceTemplate with the appropiate 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. -->
<!-- Arraymap function is used to call the FormattedReferenceTemplate with the appropriate 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. -->
{{#arraymap:  
{{#arraymap:  
{{FormattedReferenceTemplate
{{FormattedReferenceTemplate

Revision as of 19:03, 9 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.