Difference between revisions of "Template:DocumentMetadata"

From
Jump to: navigation, search
m
m (Function)
 
(54 intermediate revisions by the same user not shown)
Line 1: Line 1:
Lorem ipsum. The following has been passed through the Test template: {{{1}}}
+
=Function=
 +
 
 +
A collapsible navFrame for displaying document metadata (see bottom of this page for an example). Meant to be added to the end of pages which are based on physical documents, such as project deliverables.
 +
 
 +
=Syntax=
 +
 
 +
Copy the following unto the page and fill in the blanks:
 +
 
 +
<nowiki>
 +
{{DocumentMetadata
 +
| pdf = (Wikilink to a copy of the PDF stored on the wiki)
 +
| url = (Plain URL to document, if stored externally, eg. on the project website)
 +
| zenodo = (Plain URL to Zenodo)
 +
 
 +
| project = (Should match an existing category)
 +
| deliverable-nr =
 +
| title =
 +
 
 +
| type = (Plain text, no special characters. Should match a category)
 +
| work-package =
 +
| leading-beneficiary =
 +
| accepted-by = (Format: Full Name - Affiliation - Role)
 +
| dissemination-level = (By default, Public)
 +
| deliverable-due-date = (ISO 8601 format, ie. YYYY-MM-DD)
 +
| actually-delivered-on = (ISO 8601 format)
 +
 
 +
| author1 =
 +
| author-affiliation1 =
 +
| author2 =
 +
| author-affiliation2 =
 +
| author3 =
 +
| author-affiliation3 =
 +
| author4 =
 +
| author-affiliation4 =
 +
| author5 =
 +
| author-affiliation5 =
 +
| author6 =
 +
| author-affiliation6 =
 +
| author7 =
 +
| author-affiliation7 =
 +
| author8 =
 +
| author-affiliation8 =
 +
| author9 =
 +
| author-affiliation9 =
 +
| author10 =
 +
| author-affiliation10 =
 +
| author11 =
 +
| author-affiliation11 =
 +
| author12 =
 +
| author-affiliation12 =
 +
| author13 =
 +
| author-affiliation13 =
 +
| author14 =
 +
| author-affiliation14 =
 +
| author15 =
 +
| author-affiliation15 =
 +
 
 +
| reviewer1 =
 +
| reviewer-affiliation1 =
 +
| reviewer2 =
 +
| reviewer-affiliation2 =
 +
| reviewer3 =
 +
| reviewer-affiliation3 =
 +
| reviewer4 =
 +
| reviewer-affiliation4 =
 +
| reviewer5 =
 +
| reviewer-affiliation5 =
 +
 
 +
<!--Document history:-->
 +
| date1 =
 +
| version1 =
 +
| date2 =
 +
| version2 =
 +
| date3 =
 +
| version3 =
 +
| date4 =
 +
| version4 =
 +
| date5 =
 +
| version5 =
 +
| date6 =
 +
| version6 =
 +
| date7 =
 +
| version7 =
 +
| date8 =
 +
| version8 =
 +
| date9 =
 +
| version9 =
 +
| date10 =
 +
| version10 =
 +
}}
 +
</nowiki>
 +
 
 +
Styling is set under the navX (navFrame, navHead etc.) class in [[MediaWiki:Common.css]].
 +
 
 +
=Wikitext=
 +
 
 +
''Transcluded content starts here.''
 +
<onlyinclude>
 +
<div class="NavFrame">
 +
<div class="NavHead" id="metadata">Document metadata</div>
 +
<div class="NavContent">
 +
{|
 +
!Original document
 +
|{{#if:{{{url|}}} | [{{{url}}}] | – }}
 +
|-
 +
{{#if:{{{pdf|}}} | {{!}}&#x200B;{{!}}{{!}}PDF: [{{{pdf}}}]
 +
{{!}}- | }}
 +
{{#if:{{{zenodo|}}} | {{!}}&#x200B;{{!}}{{!}}Zenodo: [{{{zenodo}}}]
 +
{{!}}- | }}
 +
!Title
 +
|{{{deliverable-nr}}} {{{title}}}
 +
|-
 +
!Work package
 +
|{{{work-package}}}
 +
|-
 +
!Leading beneficiary
 +
|{{{leading-beneficiary}}}
 +
|-
 +
!scope="row" | Author{{#if:{{{author2|}}}|s}}
 +
|{{{author1}}} ({{{author-affiliation1}}})
 +
|-
 +
{{#if:{{{author2|}}} | {{!}}&#x200B;{{!}}{{!}}{{{author2}}} ({{{author-affiliation2}}})
 +
{{!}}- | }}
 +
{{#if:{{{author3|}}} | {{!}}&#x200B;{{!}}{{!}}{{{author3}}} ({{{author-affiliation3}}})
 +
{{!}}- | }}
 +
{{#if:{{{author4|}}} | {{!}}&#x200B;{{!}}{{!}}{{{author4}}} ({{{author-affiliation4}}})
 +
{{!}}- | }}
 +
{{#if:{{{author5|}}} | {{!}}&#x200B;{{!}}{{!}}{{{author5}}} ({{{author-affiliation5}}})
 +
{{!}}- | }}
 +
{{#if:{{{author6|}}} | {{!}}&#x200B;{{!}}{{!}}{{{author6}}} ({{{author-affiliation6}}})
 +
{{!}}- | }}
 +
{{#if:{{{author7|}}} | {{!}}&#x200B;{{!}}{{!}}{{{author7}}} ({{{author-affiliation7}}})
 +
{{!}}- | }}
 +
{{#if:{{{author8|}}} | {{!}}&#x200B;{{!}}{{!}}{{{author8}}} ({{{author-affiliation8}}})
 +
{{!}}- | }}
 +
{{#if:{{{author9|}}} | {{!}}&#x200B;{{!}}{{!}}{{{author9}}} ({{{author-affiliation9}}})
 +
{{!}}- | }}
 +
{{#if:{{{author10|}}} | {{!}}&#x200B;{{!}}{{!}}{{{author10}}} ({{{author-affiliation10}}})
 +
{{!}}- | }}
 +
{{#if:{{{author11|}}} | {{!}}&#x200B;{{!}}{{!}}{{{author11}}} ({{{author-affiliation11}}})
 +
{{!}}- | }}
 +
{{#if:{{{author12|}}} | {{!}}&#x200B;{{!}}{{!}}{{{author12}}} ({{{author-affiliation12}}})
 +
{{!}}- | }}
 +
{{#if:{{{author13|}}} | {{!}}&#x200B;{{!}}{{!}}{{{author13}}} ({{{author-affiliation13}}})
 +
{{!}}- | }}
 +
{{#if:{{{author14|}}} | {{!}}&#x200B;{{!}}{{!}}{{{author14}}} ({{{author-affiliation14}}})
 +
{{!}}- | }}
 +
{{#if:{{{author15|}}} | {{!}}&#x200B;{{!}}{{!}}{{{author15}}} ({{{author-affiliation15}}})
 +
{{!}}- | }}
 +
!Accepted by
 +
|{{{accepted-by}}}
 +
|-
 +
!Deliverable type
 +
|{{{type}}}
 +
|-
 +
!Dissemination level
 +
|{{{dissemination-level}}}
 +
|-
 +
!Deliverable due date
 +
|{{{deliverable-due-date}}}
 +
|-
 +
!Actual Date of Submission
 +
|{{{actually-delivered-on}}}
 +
|-
 +
!Abstract
 +
|[[#Abstract]]
 +
|-
 +
! scope="row" | Project internal reviewer{{#if:{{{reviewer2|}}}|s}}
 +
|{{{reviewer1}}} ({{{reviewer-affiliation1}}})
 +
|-
 +
{{#if:{{{reviewer2|}}} | {{!}}&#x200B;{{!}}{{!}}{{{reviewer2}}} ({{{reviewer-affiliation2}}})
 +
{{!}}- | }}
 +
{{#if:{{{reviewer3|}}} | {{!}}&#x200B;{{!}}{{!}}{{{reviewer3}}} ({{{reviewer-affiliation3}}})
 +
{{!}}- | }}
 +
{{#if:{{{reviewer4|}}} | {{!}}&#x200B;{{!}}{{!}}{{{reviewer4}}} ({{{reviewer-affiliation4}}})
 +
{{!}}- | }}
 +
{{#if:{{{reviewer5|}}} | {{!}}&#x200B;{{!}}{{!}}{{{reviewer5}}} ({{{reviewer-affiliation5}}})
 +
{{!}}- | }}
 +
!Document history
 +
|-
 +
!Date !! Version
 +
|-
 +
|{{{date1}}} || {{{version1}}}
 +
|-
 +
{{#if:{{{date2|}}}{{{version2|}}} |
 +
{{!}}{{{date2}}} {{!}}{{!}} {{{version2}}}
 +
{{!}}- | }}
 +
{{#if:{{{date3|}}}{{{version3|}}} |
 +
{{!}}{{{date3}}} {{!}}{{!}} {{{version3}}}
 +
{{!}}- | }}
 +
{{#if:{{{date4|}}}{{{version4|}}} |
 +
{{!}}{{{date4}}} {{!}}{{!}} {{{version4}}}
 +
{{!}}- | }}
 +
{{#if:{{{date5|}}}{{{version5|}}} |
 +
{{!}}{{{date5}}} {{!}}{{!}} {{{version5}}}
 +
{{!}}- | }}
 +
{{#if:{{{date6|}}}{{{version6|}}} |
 +
{{!}}{{{date6}}} {{!}}{{!}} {{{version6}}}
 +
{{!}}- | }}
 +
{{#if:{{{date7|}}}{{{version7|}}} |
 +
{{!}}{{{date7}}} {{!}}{{!}} {{{version7}}}
 +
{{!}}- | }}
 +
{{#if:{{{date8|}}}{{{version8|}}} |
 +
{{!}}{{{date8}}} {{!}}{{!}} {{{version8}}}
 +
{{!}}- | }}
 +
{{#if:{{{date9|}}}{{{version9|}}} |
 +
{{!}}{{{date9}}} {{!}}{{!}} {{{version9}}}
 +
{{!}}- | }}
 +
{{#if:{{{date10|}}}{{{version10|}}} |
 +
{{!}}{{{date10}}} {{!}}{{!}} {{{version10}}}
 +
{{!}}- | }}
 +
|}
 +
</div>
 +
</div>
 +
</onlyinclude>

Latest revision as of 14:43, 26 October 2020

Function[edit]

A collapsible navFrame for displaying document metadata (see bottom of this page for an example). Meant to be added to the end of pages which are based on physical documents, such as project deliverables.

Syntax[edit]

Copy the following unto the page and fill in the blanks:

{{DocumentMetadata
| pdf = (Wikilink to a copy of the PDF stored on the wiki)
| url = (Plain URL to document, if stored externally, eg. on the project website)
| zenodo = (Plain URL to Zenodo)

| project = (Should match an existing category)
| deliverable-nr = 
| title = 

| type = (Plain text, no special characters. Should match a category)
| work-package = 
| leading-beneficiary = 
| accepted-by = (Format: Full Name - Affiliation - Role)
| dissemination-level = (By default, Public)
| deliverable-due-date = (ISO 8601 format, ie. YYYY-MM-DD)
| actually-delivered-on = (ISO 8601 format)

| author1 = 
| author-affiliation1 = 
| author2 = 
| author-affiliation2 = 
| author3 = 
| author-affiliation3 = 
| author4 = 
| author-affiliation4 = 
| author5 = 
| author-affiliation5 = 
| author6 = 
| author-affiliation6 = 
| author7 = 
| author-affiliation7 = 
| author8 = 
| author-affiliation8 = 
| author9 = 
| author-affiliation9 = 
| author10 = 
| author-affiliation10 = 
| author11 = 
| author-affiliation11 = 
| author12 = 
| author-affiliation12 = 
| author13 = 
| author-affiliation13 = 
| author14 = 
| author-affiliation14 = 
| author15 = 
| author-affiliation15 = 

| reviewer1 = 
| reviewer-affiliation1 = 
| reviewer2 = 
| reviewer-affiliation2 = 
| reviewer3 = 
| reviewer-affiliation3 = 
| reviewer4 = 
| reviewer-affiliation4 = 
| reviewer5 = 
| reviewer-affiliation5 = 

<!--Document history:-->
| date1 = 
| version1 = 
| date2 = 
| version2 = 
| date3 = 
| version3 = 
| date4 = 
| version4 = 
| date5 = 
| version5 = 
| date6 = 
| version6 = 
| date7 = 
| version7 = 
| date8 = 
| version8 = 
| date9 = 
| version9 = 
| date10 = 
| version10 = 
}}

Styling is set under the navX (navFrame, navHead etc.) class in MediaWiki:Common.css.

Wikitext[edit]

Transcluded content starts here.