Difference between revisions of "Template:Report"
From DFM Wiki
EricThrift (talk | contribs) (Modified the template for use in report listings.) Tag: 2017 source edit |
EricThrift (talk | contribs) Tag: 2017 source edit |
||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><div style="width:100%; display:table-row"><div style="display:table-cell">[[{{{cover|File:Wikibooks blank cover.svg}} | + | <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> |
− | |}}{{#if: {{{authors|}}} | {{{authors}}} | ||
− | |||
− | |}}{{#if: {{{series title|}}}|{{{series title}}} |}}{{#if: {{{report type|}}}|{{{report type}}} |}}{{#if: {{{report number|}}}|No. {{{report number}}} |}}{{#if: {{{abstract|}}}| | ||
− | |||
− | {{{abstract}}}|}} | ||
− | |||
− | {{#if:{{{DOI|}}}|DOI: {{{DOI}}} |}}{{#if: {{{ | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
Line 41: | Line 34: | ||
"type": "url" | "type": "url" | ||
}, | }, | ||
− | " | + | "zotero": { |
"description": "Link to the item in the DFM Zotero library", | "description": "Link to the item in the DFM Zotero library", | ||
+ | "type": "url" | ||
+ | }, | ||
+ | "attachments": { | ||
+ | "description": "Wikitext string with links to the attachment files (downloads).", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "url": { | ||
+ | "description": "External URL for the file.", | ||
"type": "url" | "type": "url" | ||
} | } | ||
}, | }, | ||
"description": "Template for presenting reports on the wiki and public webpage. Includes the cover, citation details, and links to Zotero and Dataverse.", | "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": [ | ||
+ | "cover", | ||
+ | "title", | ||
+ | "authors", | ||
+ | "series title", | ||
+ | "report type", | ||
+ | "report number", | ||
+ | "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 |