Difference between revisions of "Template:Report"

From DFM Wiki
Tag: 2017 source edit
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><table class="report_cover">
+
<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>
<tr><td> <div style="height:100px; padding:0 2em;">{{{logos}}}</div>
+
<noinclude>
<tr><td style="padding:0 2em;height:100px;"><p>{{{series|}}}<p><big><b>{{{title|}}}</b></big>
 
<tr><td style="height:200px;width:450px;" class="cover">{{{cover_image}}}
 
<tr><td style="padding:0 2em;height:125px;">{{{author|}}}
 
</table>{{{abstract|}}}
 
 
 
== Report metadata ==
 
 
 
{| class="wikitable"
 
! title
 
| {{{title|}}}
 
|-
 
! short title
 
| {{{short_title|}}}
 
|-
 
! date
 
| {{{date|}}}
 
|-
 
! author(s)
 
| {{{author|}}}
 
|-
 
! contributor(s)
 
| {{{contributor|}}}
 
|-
 
! translator
 
| {{{translator|}}}
 
|-
 
! editor
 
| {{{editor|}}}
 
|-
 
! series editor
 
| {{{series_editor|}}}
 
|-
 
! technical editor
 
| {{{technical_editor|}}}
 
|-
 
! advisor(s)
 
| {{{advisor|}}}
 
|-
 
! license
 
| {{{license|}}}
 
|-
 
! address
 
| {{{address|}}}
 
|-
 
! acknowledgements
 
| {{{acknowledgements|}}}
 
|-
 
|}
 
 
 
<span class="plainlinks">[https://driedfishmatters.org/cgi-bin/report.py?page={{urlencode:{{{pagename|{{FULLPAGENAME}}}}}|WIKI}}<span class="mw-ui-button mw-ui-progressive" role="button">View report</span>]</span>
 
</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"
 
},
 
"translator": {
 
"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"
 
"type": "string"
 
},
 
},
"date": {
+
"series title": {
"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",
 
"type": "string",
"default": "[[File:DFM_logo.png|300px]]"
+
"default": "Dried Fish Matters"
 
},
 
},
"license": {
+
"report type": {
"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": "Working Paper"
 
},
 
},
"address": {
+
"report number": {
"description": "Publisher address (should usually use the default)",
+
"type": "number"
"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]"
 
},
 
"acknowledgements": {
 
"description": "Paragraph describing the contributions of individuals and organizations who participated in the creation of the report.",
 
"type": "string",
 
"default": "{{SSHRC acknowledgement}}",
 
"required": true
 
 
},
 
},
 
"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"
 
},
 
},
"short_title": {
+
"url": {
"label": "Short title",
+
"description": "External URL for the file.",
"description": "A shortened version of the title, for use in the document footer",
+
"type": "url"
"type": "string",
 
"required": true
 
 
}
 
}
 
},
 
},
"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",
"short_title",
+
"authors",
"author",
+
"series title",
"contributor",
+
"report type",
"translator",
+
"report number",
"editor",
 
"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