Difference between revisions of "Template:Infobox"

From
Jump to: navigation, search
m
(Formatted page.)
Line 1: Line 1:
<noinclude>
+
=Function=
 +
 
 
A succinct infobox for individual pages.
 
A succinct infobox for individual pages.
  
Parameters. Copy-paste to the top of your page and fill in:
+
=Syntax=
<!-- Leave empty if irrelevant -->
+
 
 +
Parameters. Copy-paste to the top of your page (or immediately below the first heading) and fill in the balnks:
 
  <nowiki>
 
  <nowiki>
 
{{Infobox
 
{{Infobox
| project = (Should match an existing category.)
+
| project = (Plain text. Should match an existing category)
| deliverable-nr = (Any ID format, eg. D1.2.)
+
| image = (Wikilink. Defaults to ENVRI Community logo)
 +
| deliverable-nr = (Any format, eg. D1.2.)
 
| submission-date = (ISO 8601 format, ie. YYYY-MM-DD)
 
| submission-date = (ISO 8601 format, ie. YYYY-MM-DD)
| type = (Should match an existing category.)
+
| type = (Plain text. Should match an existing category.)
| pdf = (Wikilink to PDF file.)
+
| pdf = (Wikilink to copy of PDF file on the wiki.)
 
| zenodo = (Plain URL to Zenodo page.)
 
| zenodo = (Plain URL to Zenodo page.)
| url = (Plain URL to document copy hosted elsewhere, eg. on the project website.)
+
| url = (Plain URL to document copy elsewhere, eg. on the project website.)
 
}}
 
}}
 
</nowiki>
 
</nowiki>
Output (with all blank fields): →
 
</noinclude>
 
  
 +
=Wikitext=
 +
''Transcluded content starts here.''
 +
<onlyinclude>
 
<div class="infobox">
 
<div class="infobox">
 
<div class="infobox-title">{{#if:{{{deliverable-nr|}}} | {{{deliverable-nr}}} {{PAGENAME}} | {{PAGENAME}} }}</div>
 
<div class="infobox-title">{{#if:{{{deliverable-nr|}}} | {{{deliverable-nr}}} {{PAGENAME}} | {{PAGENAME}} }}</div>
Line 50: Line 54:
 
<p align="center">[[#metadata|Document metadata]]</p>
 
<p align="center">[[#metadata|Document metadata]]</p>
 
</div>
 
</div>
 +
</onlyinclude>

Revision as of 08:22, 31 August 2020

Function

A succinct infobox for individual pages.

Syntax

Parameters. Copy-paste to the top of your page (or immediately below the first heading) and fill in the balnks:

{{Infobox
| project = (Plain text. Should match an existing category)
| image = (Wikilink. Defaults to ENVRI Community logo)
| deliverable-nr = (Any format, eg. D1.2.)
| submission-date = (ISO 8601 format, ie. YYYY-MM-DD)
| type = (Plain text. Should match an existing category.)
| pdf = (Wikilink to copy of PDF file on the wiki.)
| zenodo = (Plain URL to Zenodo page.)
| url = (Plain URL to document copy elsewhere, eg. on the project website.)
}}

Wikitext

Transcluded content starts here.

Infobox
ENVRI-community-logo.jpg

Link | PDF | Zenodo

Document metadata