Difference between revisions of "Template:Report"
From DFM Wiki
EricThrift (talk | contribs) (Added experimental book cover design output) |
EricThrift (talk | contribs) Tag: 2017 source edit |
||
(27 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>< | + | <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> |
− | + | <noinclude> | |
− | < | ||
− | |||
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | | {{{title | ||
− | |||
− | |||
− | | {{{ | ||
− | |||
− | |||
− | | {{{ | ||
− | |||
− | |||
− | | {{{ | ||
− | |||
− | |||
− | | {{{ | ||
− | |||
− | |||
− | | {{{ | ||
− | |||
− | |||
− | | {{{ | ||
− | |||
− | |||
− | | {{{ | ||
− | |||
− | |||
− | | {{{ | ||
− | |||
− | |||
− | | {{{ | ||
− | |||
− | |||
− | | {{{ | ||
− | |||
− | |||
− | | {{{ | ||
− | | | ||
− | |||
− | | {{{ | ||
− | |||
− | | | ||
− | |||
− | < | ||
− | </includeonly><noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
+ | "cover": { | ||
+ | "label": "Cover image", | ||
+ | "type": "wiki-file-name" | ||
+ | }, | ||
"title": { | "title": { | ||
− | " | + | "label": "report title", |
+ | "type": "string", | ||
"required": true | "required": true | ||
}, | }, | ||
− | " | + | "authors": { |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
"type": "string" | "type": "string" | ||
}, | }, | ||
− | + | "series title": { | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | "series": { | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
"type": "string", | "type": "string", | ||
− | "default": " | + | "default": "Dried Fish Matters" |
}, | }, | ||
− | " | + | "report type": { |
− | |||
"type": "string", | "type": "string", | ||
− | "default": " | + | "default": "Working Paper" |
}, | }, | ||
− | " | + | "report number": { |
− | + | "type": "number" | |
− | "type": " | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}, | }, | ||
"abstract": { | "abstract": { | ||
− | |||
"type": "string" | "type": "string" | ||
}, | }, | ||
− | " | + | "DOI": { |
− | "description": " | + | "description": "DOI link to the PDF version of the report on Dataverse.", |
− | "type": " | + | "type": "url" |
}, | }, | ||
− | " | + | "zotero": { |
− | "description": " | + | "description": "Link to the item in the DFM Zotero library", |
− | "type": " | + | "type": "url" |
}, | }, | ||
− | " | + | "attachments": { |
− | "description": " | + | "description": "Wikitext string with links to the attachment files (downloads).", |
"type": "string" | "type": "string" | ||
}, | }, | ||
− | " | + | "url": { |
− | + | "description": "External URL for the file.", | |
− | "description": " | + | "type": "url" |
− | "type": " | ||
− | |||
} | } | ||
}, | }, | ||
− | "description": "Template | + | "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", | ||
− | " | + | "authors", |
− | + | "series title", | |
− | + | "report type", | |
− | + | "report number", | |
− | |||
− | |||
− | |||
− | |||
− | "series", | ||
− | " | ||
− | |||
− | |||
− | |||
− | " | ||
"abstract", | "abstract", | ||
− | " | + | "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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Cover image | cover | no description | File | optional |
report title | title | no description | String | required |
Authors | authors | no description | String | optional |
Series title | series title | no description
| String | optional |
Report type | report type | no description
| String | optional |
Report number | report number | no description | Number | optional |
Abstract | abstract | no description | String | optional |
DOI | DOI | DOI link to the PDF version of the report on Dataverse. | URL | optional |
Zotero | zotero | Link to the item in the DFM Zotero library | URL | optional |
Attachments | attachments | Wikitext string with links to the attachment files (downloads). | String | optional |
Url | url | External URL for the file. | URL | optional |