Difference between revisions of "Template:Report"

From DFM Wiki
Tag: 2017 source edit
 
(34 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable"
+
<includeonly><div style="width:100%; display:table-row"><div style="display:table-cell; vertical-align:top;width:300px">[[{{#if:{{{cover|}}}|{{{cover}}}|File:Wikibooks blank cover.svg}}|frameless|300px|border|link=]]</div><div style="display:table-cell; padding-left:2em; vertical-align:top">{{#if: {{{title|}}} |'''{{{title}}}'''|}}{{#if: {{{authors|}}} |<div style="margin:1em 0">{{{authors}}}</div>|}}<div style="margin:1em 0">{{#if: {{{series title|}}}|{{{series title}}} |}} {{#if: {{{report type|}}}| {{{report type}}} |}} {{#if: {{{report number|}}}| No. {{{report number}}} |}}</div>{{#if: {{{abstract|}}}|<div style="margin:1em 0">{{{abstract}}}</div>|}}{{#if:{{{attachments|}}}|<div style="margin:1em 0">'''Download:''' {{{attachments}}} </div>|}} {{#if: {{{title|}}}|{{#ifexist: {{{title}}} |<div style="margin:1em 0">'''HTML format:''' [[{{{title}}}]] </div> |}} |}} {{#if:{{{url|}}}|<div style="margin:1em 0">'''URL:''' {{{url}}} </div>|}} {{#if:{{{DOI|}}}|<div style="margin:1em 0">'''DOI:''' {{{DOI}}} </div>|}} {{#if: {{{zotero|}}}|<div style="margin:1em 0">'''Zotero:''' {{{zotero}}}</div> |}}</div></div></includeonly>
! title
+
<noinclude>
| {{{title|Report}}}
 
|-
 
! date
 
| {{{date|}}}
 
|-
 
! author(s)
 
| {{{author|}}}
 
|-
 
! contributor(s)
 
| {{{contributor|}}}
 
|-
 
! translator
 
| {{{translator|}}}
 
|-
 
! editor
 
| {{{editor|}}}
 
|-
 
! series editor
 
| {{{series_editor|}}}
 
|-
 
! technical editor
 
| {{{technical_editor|}}}
 
|-
 
! advisor(s)
 
| {{{advisor|}}}
 
|-
 
! series
 
| {{{series|DFM Working paper}}}
 
|-
 
! cover image
 
| {{{cover_image|https://driedfishmatters.org/static/printjs/report-cover.jpg}}}
 
|-
 
! license
 
| {{{license|[[File:CC-BY-SA icon.svg|140px]]<BR>This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/.}}}
 
|-
 
! address
 
| {{{address|'''Dried Fish Matters:'''<br>Mapping the social economy of dried fish in South and Southeast Asia for enhanced wellbeing and nutrition<br>The University of Manitoba, Canada<br>[http://driedfishmatters.org driedfishmatters.org]}}}
 
|-
 
! acknowledgements
 
| {{{acknowledgements|[[File:SSHRC_CRSH_logo.svg|500px]]<BR>This research is supported by the Social Sciences and Humanities Research Council of Canada.}}}
 
|-
 
! abstract
 
| {{{abstract|}}}
 
|-
 
! organizational logos
 
| {{{logos|[[File:DFM_logo.png|300px]]}}}
 
|}
 
</includeonly><noinclude>
 
 
<templatedata>
 
<templatedata>
 
{
 
{
 
"params": {
 
"params": {
 +
"cover": {
 +
"label": "Cover image",
 +
"type": "wiki-file-name"
 +
},
 
"title": {
 
"title": {
"description": "The title of the report",
+
"label": "report title",
 +
"type": "string",
 
"required": true
 
"required": true
 
},
 
},
"author": {
+
"authors": {
"description": "Author(s) of the report. If multiple authors are given, provide as a string using \"and\" before the final author's name.",
 
"example": "J. Adam and J. Doe",
 
"type": "string"
 
},
 
"contributor": {
 
"description": "Contributor(s) to the report, such as authors of figures and tables.",
 
 
"type": "string"
 
"type": "string"
 
},
 
},
"translator": {
+
"series title": {
"description": "Translator(s) of the report.",
 
"type": "string"
 
},
 
"editor": {
 
"description": "Editor(s) of the report, if different chapters or sections are authored by different people.",
 
"type": "string"
 
},
 
"series_editor": {
 
"description": "General or managing editor of the report series.",
 
"type": "string"
 
},
 
"date": {
 
"description": "Date of publication of this version of the report.",
 
"example": "2021",
 
"type": "date",
 
"required": true
 
},
 
"series": {
 
"description": "Title of the report series.",
 
"default": "DFM Working Papers",
 
"type": "string"
 
},
 
"logos": {
 
"description": "Images to be included in the institutional logos section at the top of the report cover. Use HTML <img> tags or wiki logo templates that produce them.",
 
"type": "string",
 
"default": "[[File:DFM_logo.png|300px]]"
 
},
 
"license": {
 
"description": "License text for the report, generally Creative Commons BY-SA or similar.",
 
 
"type": "string",
 
"type": "string",
"default": "[[File:CC-BY-SA icon.svg|140px]]<BR>This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/."
+
"default": "Dried Fish Matters"
 
},
 
},
"address": {
+
"report type": {
"description": "Publisher address (should usually use the default)",
 
 
"type": "string",
 
"type": "string",
"default": "'''Dried Fish Matters:'''<br>Mapping the social economy of dried fish in South and Southeast Asia for enhanced wellbeing and nutrition<br>The University of Manitoba, Canada<br>[http://driedfishmatters.org driedfishmatters.org]"
+
"default": "Working Paper"
 
},
 
},
"acknowledgements": {
+
"report number": {
"description": "Paragraph describing the contributions of individuals and organizations who participated in the creation of the report.",
+
"type": "number"
"type": "string",
 
"default": "[[File:SSHRC_CRSH_logo.svg|500px]]<BR>This research is supported by the Social Sciences and Humanities Research Council of Canada."
 
 
},
 
},
 
"abstract": {
 
"abstract": {
"description": "Abstract of the report.",
 
 
"type": "string"
 
"type": "string"
 
},
 
},
"technical_editor": {
+
"DOI": {
"description": "Technical editor of the report, responsible for formatting and copy-editing.",
+
"description": "DOI link to the PDF version of the report on Dataverse.",
"type": "string"
+
"type": "url"
 
},
 
},
"cover_image": {
+
"zotero": {
"description": "Image to be used on the cover of the report.",
+
"description": "Link to the item in the DFM Zotero library",
"type": "wiki-file-name"
+
"type": "url"
 
},
 
},
"advisor": {
+
"attachments": {
"description": "Advisor(s) who guided the preparation of the report.",
+
"description": "Wikitext string with links to the attachment files (downloads).",
 
"type": "string"
 
"type": "string"
 +
},
 +
"url": {
 +
"description": "External URL for the file.",
 +
"type": "url"
 
}
 
}
 
},
 
},
"description": "Template specifying metadata for publishable reports. Wiki pages linked on the same page as this template will be included in a printable report generated by the https://driedfishmatters.org/cgi-bin/report.py report tool, using the metadata supplied here.",
+
"description": "Template for presenting reports on the wiki and public webpage. Includes the cover, citation details, and links to Zotero and Dataverse.",
 
"format": "block",
 
"format": "block",
 
"paramOrder": [
 
"paramOrder": [
 +
"cover",
 
"title",
 
"title",
"author",
+
"authors",
"contributor",
+
"series title",
"translator",
+
"report type",
"editor",
+
"report number",
"series_editor",
 
"technical_editor",
 
"date",
 
"series",
 
"cover_image",
 
"logos",
 
"license",
 
"address",
 
"acknowledgements",
 
 
"abstract",
 
"abstract",
"advisor"
+
"DOI",
 +
"zotero",
 +
"attachments",
 +
"url"
 
]
 
]
 
}
 
}
 
</templatedata>
 
</templatedata>
 
</noinclude>
 
</noinclude>

Latest revision as of 11:00, 16 March 2022


Template for presenting reports on the wiki and public webpage. Includes the cover, citation details, and links to Zotero and Dataverse.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Cover imagecover

no description

Fileoptional
report titletitle

no description

Stringrequired
Authorsauthors

no description

Stringoptional
Series titleseries title

no description

Default
Dried Fish Matters
Stringoptional
Report typereport type

no description

Default
Working Paper
Stringoptional
Report numberreport number

no description

Numberoptional
Abstractabstract

no description

Stringoptional
DOIDOI

DOI link to the PDF version of the report on Dataverse.

URLoptional
Zoterozotero

Link to the item in the DFM Zotero library

URLoptional
Attachmentsattachments

Wikitext string with links to the attachment files (downloads).

Stringoptional
Urlurl

External URL for the file.

URLoptional