Template:ReferenceTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
Line 22: Line 22:
<table class="PageWidthTableTemplate">
<table class="PageWidthTableTemplate">
{{TableRowTemplate|header=Publication type:|prop=HasPublicationType}}
{{TableRowTemplate|header=Publication type:|prop=HasPublicationType}}
<tr><td class="PageWidthTableFirstCell">'''Publication type:'''</td>
{{TableRowTemplate|header=Title:|prop=HasTitle}}
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasPublicationType}}</td></tr>
{{TableRowTemplate|header=Authors:|prop=HasAuthor}}
<tr><td class="PageWidthTableFirstCell">'''Title:'''</td>
{{TableRowTemplate|header=Secondary title:|prop=HasSecondaryTitle}}
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasTitle}}</td></tr>
{{TableRowTemplate|header=Secondary authors:|prop=HasSecondaryAuthor}}
<tr><td class="PageWidthTableFirstCell">'''Authors:'''</td>
{{TableRowTemplate|header=Year:|prop=HasPublicationYear}}
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasAuthor}}</td></tr>
{{TableRowTemplate|header=Date:|prop=HasPublicationDate}}
{{#ifeq:{{PropertyTestTemplate|prop=HasSecondaryTitle|page={{PAGENAME}} }}|0||
{{TableRowTemplate|header=Book title:|prop=HasBookTitle}}
<tr><td class="PageWidthTableFirstCell">'''Secondary title:'''</td>
{{TableRowTemplate|header=Series title:|prop=HasSeriesTitle}}
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasSecondaryTitle}}</td></tr>
{{TableRowTemplate|header=Conference name:|prop=HasConferenceName}}
}}{{#ifeq:{{PropertyTestTemplate|prop=HasSecondaryAuthor|page={{PAGENAME}} }}|0||
{{TableRowTemplate|header=Volume:|prop=HasVolume}}
<tr><td class="PageWidthTableFirstCell">'''Secondary authors:'''</td>
{{TableRowTemplate|header=Issue:|prop=HasIssue}}
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasSecondaryAuthor}}</td></tr>
{{TableRowTemplate|header=Pages:|prop=HasPages}}
}}
{{TableRowTemplate|header=Publisher:|prop=HasPublisher}}
<tr><td class="PageWidthTableFirstCell">'''Year:'''</td>
{{TableRowTemplate|header=City:|prop=HasCity}}
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasPublicationYear}}</td></tr>
{{TableRowTemplate|header=Institution:|prop=HasInstitution}}
{{#ifeq:{{PropertyTestTemplate|prop=HasPublicationDate|page={{PAGENAME}} }}|0||
{{TableRowTemplate|header=Report number:|prop=HasReportNumber}}
<tr><td class="PageWidthTableFirstCell">'''Date:'''</td>
{{TableRowTemplate|header=Link to the PBL-website:|prop=HasPBLlink}}
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasPublicationDate}}</td></tr>
{{TableRowTemplate|header=DOI or URL:|prop=HasDOI}}
}}{{#ifeq:{{PropertyTestTemplate|prop=HasBookTitle|page={{PAGENAME}} }}|0||
{{TableRowTemplate|header=ISBN:|prop=HasISBN}}
<tr><td class="PageWidthTableFirstCell">'''Book title:'''</td>
{{TableRowTemplate|header=Authors:|prop=HasAuthor}}
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasBookTitle}}</td></tr>
{{TableRowTemplate|header=Authors:|prop=HasAuthor}}
}}{{#ifeq:{{PropertyTestTemplate|prop=HasSeriesTitle|page={{PAGENAME}} }}|0||
{{TableRowTemplate|header=Citation:|prop=HasFormattedReference}}
<tr><td class="PageWidthTableFirstCell">'''Series title:'''</td>
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasSeriesTitle}}</td></tr>
}}{{#ifeq:{{PropertyTestTemplate|prop=HasEditor|page={{PAGENAME}} }}|0||
<tr><td class="PageWidthTableFirstCell">'''Editors:'''</td>
    <td class="PageWidthTableFirstCell">{{#show:{{PAGENAME}}|? HasEditor}}</td></tr>
}}{{#ifeq:{{PropertyTestTemplate|prop=HasJournal|page={{PAGENAME}} }}|0||
<tr><td class="PageWidthTableFirstCell">'''Journal:'''</td>
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasJournal}}</td></tr>
}}{{#ifeq:{{PropertyTestTemplate|prop=HasConferenceName|page={{PAGENAME}} }}|0||
<tr><td class="PageWidthTableFirstCell">'''Conference name:'''</td>
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasConferenceName}}</td></tr>
}}{{#ifeq:{{PropertyTestTemplate|prop=HasVolume|page={{PAGENAME}} }}|0||
<tr><td class="PageWidthTableFirstCell">'''Volume:'''</td>
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasVolume}}</td></tr>
}}{{#ifeq:{{{Issue|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Issue:'''</td><td class="PageWidthTableRemainderCell">
[[HasIssue::{{{Issue|}}}]]</td></tr>
}}{{#ifeq:{{{Pages|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Pages:'''</td><td class="PageWidthTableRemainderCell">
[[HasPages::{{{Pages|}}}]]</td></tr>
}}{{#ifeq:{{{Pages2|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Pages:'''</td><td class="PageWidthTableRemainderCell">
[[HasPages::{{{Pages2|}}}]]</td></tr>
}}{{#ifeq:{{{Pages3|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Pages:'''</td><td class="PageWidthTableRemainderCell">
[[HasPages::{{{Pages3|}}}]]</td></tr>
}}{{#ifeq:{{{Publisher|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Publisher:'''</td><td class="PageWidthTableRemainderCell">
[[HasPublisher::{{{Publisher|}}}]]</td></tr>
}}{{#ifeq:{{{Publisher2|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Publisher:'''</td><td class="PageWidthTableRemainderCell">
[[HasPublisher::{{{Publisher2|}}}]]</td></tr>
}}{{#ifeq:{{{Publisher3|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Publisher:'''</td><td class="PageWidthTableRemainderCell">
[[HasPublisher::{{{Publisher3|}}}]]</td></tr>
}}{{#ifeq:{{{Publisher4|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Publisher:'''</td><td class="PageWidthTableRemainderCell">
[[HasPublisher::{{{Publisher4|}}}]]</td></tr>
}}{{#ifeq:{{{Publisher5|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Publisher:'''</td><td class="PageWidthTableRemainderCell">
[[HasPublisher::{{{Publisher5|}}}]]</td></tr>
}}{{#ifeq:{{{City|}}}|||
<tr><td class="PageWidthTableFirstCell">'''City:'''</td><td class="PageWidthTableRemainderCell">
[[HasCity::{{{City|}}}]]</td></tr>
}}{{#ifeq:{{{City2|}}}|||
<tr><td class="PageWidthTableFirstCell">'''City:'''</td><td class="PageWidthTableRemainderCell">
[[HasCity::{{{City2|}}}]]</td></tr>
}}{{#ifeq:{{{City3|}}}|||
<tr><td class="PageWidthTableFirstCell">'''City:'''</td><td class="PageWidthTableRemainderCell">
[[HasCity::{{{City3|}}}]]</td></tr>
}}{{#ifeq:{{{City4|}}}|||
<tr><td class="PageWidthTableFirstCell">'''City:'''</td><td class="PageWidthTableRemainderCell">
[[HasCity::{{{City4|}}}]]</td></tr>
}}{{#ifeq:{{{City5|}}}|||
<tr><td class="PageWidthTableFirstCell">'''City:'''</td><td class="PageWidthTableRemainderCell">
[[HasCity::{{{City5|}}}]]</td></tr>
}}{{#ifeq:{{{Institution|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Institution:'''</td><td class="PageWidthTableRemainderCell">
[[HasInstitution::{{{Institution|}}}]]</td></tr>
}}{{#ifeq:{{{ReportNumber|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Report number:'''</td><td class="PageWidthTableRemainderCell">
[[HasReportNumber::{{{ReportNumber|}}}]]</td></tr>
}}{{#ifeq:{{{PBL-link|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Link to the PBL-website:'''</td><td class="PageWidthTableRemainderCell">
[[HasPBLlink::{{{PBL-link|}}}]]</td></tr>
}}{{#ifeq:{{{DOI|}}}|||
<tr><td class="PageWidthTableFirstCell">'''DOI or URL:'''</td><td class="PageWidthTableRemainderCell">
[[HasDOI::{{{DOI|}}}]]</td></tr>
}}{{#ifeq:{{{ISBN|}}}|||
<tr><td class="PageWidthTableFirstCell">'''ISBN:'''</td><td class="PageWidthTableRemainderCell">
[[HasISBN::{{{ISBN|}}}]]</td></tr>
}}{{#ifeq:{{{ISBN2|}}}|||<tr><td class="PageWidthTableFirstCell">'''ISBN:'''</td><td class="PageWidthTableRemainderCell">
[[HasISBN::{{{ISBN2|}}}]]</td></tr>
}}{{#ifeq:{{{ISBN3|}}}|||
<tr><td class="PageWidthTableFirstCell">'''ISBN:'''</td><td class="PageWidthTableRemainderCell">
[[HasISBN::{{{ISBN3|}}}]]</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 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 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. -->
{{#arraymap:  
{{#arraymap:  
{{FormattedReferenceTemplate
{{FormattedReferenceTemplate

Revision as of 13:08, 12 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.