Template:ReferenceTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
(Created page with "<noinclude> This is the "ReferenceTemplate" template. It should be called in the following format: <pre> {{ReferenceTemplate |PublicationType= |Author= |Year= |Editor= |Journa...")
 
No edit summary
 
(206 intermediate revisions by 5 users not shown)
Line 4: Line 4:
<pre>
<pre>
{{ReferenceTemplate
{{ReferenceTemplate
|PublicationType=
|Author=
|Author=
|Year=
|Year=
|Title=
|DOI=
|PublicationType=
|Editor=
|Editor=
|Journal=
|Journal=
Line 13: 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>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
</noinclude><includeonly>
! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>{{PAGENAME}}</big>
<table class="PageWidthTableTemplate">
|-
{{TableRowTemplate|header=Publication type:|prop=HasPublicationType}}
! Publication type
{{TableRowTemplate|header=Title:|prop=HasTitle}}
| [[HasPublicationType::{{{PublicationType|}}}]]
{{TableRowTemplate|header=Authors:|prop=HasAuthorList}}
|-
{{TableRowTemplate|header=Secondary title:|prop=HasSecondaryTitle}}
! Authors
{{TableRowTemplate|header=Secondary authors:|prop=HasSecondaryAuthor}}
| {{#arraymap:{{{Author|}}}|;|x|[[HasAuthor::x]]}}
{{TableRowTemplate|header=Year:|prop=HasPublicationYear}}
|-
{{TableRowTemplate|header=Journal:|prop=HasJournal}}
! Year
{{TableRowTemplate|header=Date:|prop=HasPublicationDate}}
| [[HasPublicationYear::{{{Year|}}}]]
{{TableRowTemplate|header=Book title:|prop=HasBookTitle}}
|-
{{TableRowTemplate|header=Series title:|prop=HasSeriesTitle}}
! Editors
{{TableRowTemplate|header=Conference name:|prop=HasConferenceName}}
| {{#arraymap:{{{Editor|}}}|;|x|[[HasEditor::x]]}}
{{TableRowTemplate|header=Volume:|prop=HasVolume}}
|-
{{TableRowTemplate|header=Issue:|prop=HasIssue}}
! Journal
{{TableRowTemplate|header=Pages:|prop=HasPages}}
| [[HasJournal::{{{Journal|}}}]]
{{TableRowTemplate|header=Publisher:|prop=HasPublisher}}
|-
{{TableRowTemplate|header=City:|prop=HasCity}}
! Volume
{{TableRowTemplate|header=Institution:|prop=HasInstitution}}
| [[HasVolume::{{{Volume|}}}]]
{{TableRowTemplate|header=Report number:|prop=HasReportNumber}}
|-
{{TableRowTemplate|header=Link to the PBL-website:|prop=HasPBLlink}}
! Issue
{{TableRowTemplate|header=DOI or URL:|prop=HasDOI}}
| [[HasIssue::{{{Issue|}}}]]
{{TableRowTemplate|header=ISBN:|prop=HasISBN}}
|-
{{TableRowTemplate|header=Citation:|prop=HasFormattedReference}}
! Pages
</table>
| [[HasPages::{{{Pages|}}}]]
<!-- Arraymap function is used to call the FormattedReferenceTemplate with all reference parameters and
|-
then display and assign the result to the property "HasFormattedReference".
! Conference
This property can be used whenever you need a reference in citation format. -->
| [[HasConferenceName::{{{Conference|}}}]]
{{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}}
    |}}
}}
 
{{#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)


[[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 08: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.