Difference between revisions of "Template:DocumentMetadata"

From
Jump to: navigation, search
m
(Fixed some errors, formatted page, added authors.)
Line 1: Line 1:
<noinclude>
+
=Function=
An expandable navFrame for document metadata.
 
  
Parameters:
+
A collapsible navFrame for document metadata.
 +
 
 +
=Syntax=
 +
 
 +
Copy the following unto the page and fill in the blanks:
  
 
  <nowiki>
 
  <nowiki>
 
{{DocumentMetadata
 
{{DocumentMetadata
| url = (External URL to document.)
+
| pdf = (Wikilink to a copy of the PDF stored on the wiki)
| pdf = (Wikilink to PDF.)
+
| url = (Plain URL to document, if stored externally, eg. on the project website)
| zenodo = (Zenodo link.)
+
| zenodo = (Plain URL to Zenodo)
  
| project = (Should match a category.)
+
| project = (Should match an existing category)
 
| deliverable-nr =  
 
| deliverable-nr =  
 
| title =  
 
| title =  
 +
 +
| type = (Plain text, no special characters. Should match a category)
 
| work-package =  
 
| work-package =  
| type = (Should match a category.)
 
 
| leading-beneficiary =  
 
| 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 =  
 
| author1 =  
Line 37: Line 45:
 
| author10 =  
 
| author10 =  
 
| author-affiliation10 =  
 
| author-affiliation10 =  
 +
| author11 =
 +
| author-affiliation11 =
 +
| author12 =
 +
| author-affiliation12 =
 +
| author13 =
 +
| author-affiliation13 =
 +
| author14 =
 +
| author-affiliation14 =
 +
| author15 =
 +
| author-affiliation15 =
  
 
| reviewer1 =  
 
| reviewer1 =  
Line 48: Line 66:
 
| reviewer5 =  
 
| reviewer5 =  
 
| reviewer-affiliation5 =  
 
| reviewer-affiliation5 =  
 
| accepted-by = (Format: Full Name - Affiliation - Role)
 
| type = (Should match a category. Plain text; no special characters.)
 
| dissemination-level = (By default PUBLIC)
 
| deliverable-due-date = (ISO 8601 format, ie. YYYY-MM-DD)
 
| actually-delivered-on = (ISO 8601)
 
  
 
<!--Document history:-->
 
<!--Document history:-->
Line 82: Line 94:
  
 
Output:
 
Output:
</noinclude>
 
 
__NOTOC__
 
  
 +
<onlyinclude>
 
<div class="NavFrame">
 
<div class="NavFrame">
 
<div class="NavHead" id="metadata">Document metadata</div>
 
<div class="NavHead" id="metadata">Document metadata</div>
Line 126: Line 136:
 
{{!}}- | }}
 
{{!}}- | }}
 
{{#if:{{{author10|}}} | {{!}}&#x200B;{{!}}{{!}}{{{author10}}} ({{{author-affiliation10}}})
 
{{#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
Line 192: Line 212:
 
</div>
 
</div>
 
</div>
 
</div>
 +
</onlyinclude>

Revision as of 08:18, 31 August 2020

Function

A collapsible navFrame for document metadata.

Syntax

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.

Output: