Template:ReferenceTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
apostrophe: &apos;
This is the "ReferenceTemplate" template.
This is the "ReferenceTemplate" template.
It should be called in the following format:
It should be called in the following format:
Line 22: Line 21:
</noinclude><includeonly>
</noinclude><includeonly>
<table class="PageWidthTableTemplate">
<table class="PageWidthTableTemplate">
<tr>
<tr><td class="PageWidthTableFirstCell">'''Publication type:'''</td>
<td class="PageWidthTableFirstCell">'''Publication type:'''</td>
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasPublicationType}}</td></tr>
<td class="PageWidthTableRemainderCell">{{{PublicationType|}}}</td></tr>
<tr><td class="PageWidthTableFirstCell">'''Title:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Title:'''</td>
<td class="PageWidthTableRemainderCell">{{{Title|}}}</td></tr>
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasTitle}}</td></tr>
<tr><td class="PageWidthTableFirstCell">'''Authors:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Authors:'''</td>
<td class="PageWidthTableRemainderCell">{{{Author|}}}</td></tr>
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasAuthor}}</td></tr>
{{#ifeq:{{{SecondaryTitle|}}}|||
{{#ifeq:{{PropertyTestTemplate|prop=HasSecondaryTitle|page={{PAGENAME}}|0||
<tr><td class="PageWidthTableFirstCell">'''Secondary title:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Secondary title:'''</td>
<td class="PageWidthTableRemainderCell">
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasSecondaryTitle}}</td></tr>
[[HasSecondaryTitle::{{{SecondaryTitle|}}}]]</td></tr>
}}{{PropertyTestTemplate|prop=HasSecondaryAuthor|page={{PAGENAME}}|0||
}}{{#ifeq:{{{SecondaryAuthor|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Secondary authors:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Secondary authors:'''</td>
<td class="PageWidthTableRemainderCell">{{#arraymap:{{{SecondaryAuthor|}}}|;|x|
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasSecondaryAuthor}}</td></tr>
[[HasSecondaryAuthor::x]]}}</td></tr>
}}
}}{{#ifeq:{{{Year|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Year:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Year:'''</td><td class="PageWidthTableRemainderCell">
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasPublicationYear}}</td></tr>
[[HasPublicationYear::{{{Year|}}}]]</td></tr>
{{PropertyTestTemplate|prop=HasPublicationDate|page={{PAGENAME}}|0||
}}{{#ifeq:{{{Date|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Date:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Date:'''</td><td class="PageWidthTableRemainderCell">
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasPublicationDate}}</td></tr>
[[HasPublicationDate::{{{Date|}}}]]</td></tr>
}}{{PropertyTestTemplate|prop=HasBookTitle|page={{PAGENAME}}|0||
}}{{#ifeq:{{{BookTitle|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Book title:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Book title:'''</td><td class="PageWidthTableRemainderCell">
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasBookTitle}}</td></tr>
[[HasBookTitle::{{{BookTitle|}}}]]</td></tr>
}}{{PropertyTestTemplate|prop=HasSeriesTitle|page={{PAGENAME}}|0||
}}{{#ifeq:{{{SeriesTitle|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Series title:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Series title:'''</td><td class="PageWidthTableRemainderCell">
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasSeriesTitle}}</td></tr>
[[HasSeriesTitle::{{{SeriesTitle|}}}]]</td></tr>
}}{{PropertyTestTemplate|prop=HasEditor|page={{PAGENAME}}|0||
}}{{#ifeq:{{{SeriesTitle2|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Series title:'''</td><td class="PageWidthTableRemainderCell">
[[HasSeriesTitle::{{{SeriesTitle2|}}}]]</td></tr>
}}{{#ifeq:{{{Editor|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Editors:'''</td>
<td class="PageWidthTableFirstCell">{{#arraymap:{{{Editor|}}}|;|x|
[[HasEditor::x]]}}</td></tr>
}}{{#ifeq:{{{Editor2|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Editors:'''</td>
<td class="PageWidthTableRemainderCell">{{#arraymap:{{{Editor2|}}}|;|x|
[[HasEditor::x]]}}</td></tr>
}}{{#ifeq:{{{Editor3|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Editors:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Editors:'''</td>
<td class="PageWidthTableRemainderCell">{{#arraymap:{{{Editor3|}}}|;|x|
    <td class="PageWidthTableFirstCell">{{#show:{{PAGENAME}}|? HasEditor}}</td></tr>
[[HasEditor::x]]}}</td></tr>
}}{{PropertyTestTemplate|prop=HasJournal|page={{PAGENAME}}|0||
}}{{#ifeq:{{{Journal|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Journal:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Journal:'''</td><td class="PageWidthTableRemainderCell">
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasJournal}}</td></tr>
[[HasJournal::{{{Journal|}}}]]</td></tr>
}}{{PropertyTestTemplate|prop=HasConferenceName|page={{PAGENAME}}|0||
}}{{#ifeq:{{{ConferenceName|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Conference name:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Conference name:'''</td><td class="PageWidthTableRemainderCell">
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasConferenceName}}</td></tr>
</td></tr>
}}{{PropertyTestTemplate|prop=HasVolume|page={{PAGENAME}}|0||
}}{{#ifeq:{{{Volume|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Volume:'''</td>
<tr><td class="PageWidthTableFirstCell">'''Volume:'''</td><td class="PageWidthTableRemainderCell">
    <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? HasVolume}}</td></tr>
[[HasVolume::{{{Volume|}}}]]</td></tr>
}}{{#ifeq:{{{Volume2|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Volume:'''</td><td class="PageWidthTableRemainderCell">
[[HasVolume::{{{Volume2|}}}]]</td></tr>
}}{{#ifeq:{{{Volume3|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Volume:'''</td><td class="PageWidthTableRemainderCell">
[[HasVolume::{{{Volume3|}}}]]</td></tr>
}}{{#ifeq:{{{Volume4|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Volume:'''</td><td class="PageWidthTableRemainderCell">
[[HasVolume::{{{Volume4|}}}]]</td></tr>
}}{{#ifeq:{{{Volume5|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Volume:'''</td><td class="PageWidthTableRemainderCell">
[[HasVolume::{{{Volume5|}}}]]</td></tr>
}}{{#ifeq:{{{Issue|}}}|||
}}{{#ifeq:{{{Issue|}}}|||
<tr><td class="PageWidthTableFirstCell">'''Issue:'''</td><td class="PageWidthTableRemainderCell">
<tr><td class="PageWidthTableFirstCell">'''Issue:'''</td><td class="PageWidthTableRemainderCell">

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