Latest revision |
Your text |
Line 1: |
Line 1: |
− | =Function=
| + | {{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|[[Category:Infobox templates|{{remove first word|{{SUBPAGENAME}}}}]]}}}}|}}</includeonly><noinclude> |
− | | + | {{documentation}} |
− | A succinct infobox to be used at the very top of individual pages. Meant to give the reader a quick context summary of the page. The full metadata is then given at the bottom of the page using [[Template:DocumentMetadata]].
| + | <!-- Categories go in the /doc subpage, and interwikis go in Wikidata. --> |
− | | + | </noinclude> |
− | =Syntax=
| |
− | | |
− | Parameters. Copy-paste to the top of your page (or immediately below the first heading) and fill in the balnks:
| |
− | <nowiki>
| |
− | {{Infobox | |
− | | project = (Plain text. Should match an existing category) | |
− | | image = (Wikilink. Looks for the project logo, and if nothing is found, 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.)
| |
− | | url = (Wikilink to copy of PDF file on the wiki.)
| |
− | | zenodo = (Plain URL to Zenodo page.)
| |
− | }} | |
− | </nowiki> | |
− | | |
− | =Wikitext=
| |
− | ''Transcluded content starts here.''
| |
− | <onlyinclude>
| |
− | <div class="infobox">
| |
− | <div class="infobox-title">{{#if:{{{deliverable-nr|}}} | {{{deliverable-nr}}} {{PAGENAME}} | {{PAGENAME}} }}</div>
| |
− | <div class="infobox-image">{{#if:{{{image|}}} | [[File:{{{image}}}|200px]] |
| |
− | {{#ifexist:[[File:{{{project}}}_logo.jpg]]|[[File:{{{project}}}_logo.jpg]]|[[File:ENVRI-community-logo.jpg|200px]]}} }}</div> | |
− | <table>
| |
− | {{#if:{{{project|}}} |
| |
− | <tr>
| |
− | <th>Project</th>
| |
− | <td>[[:Category:{{{project}}}{{!}}{{{project}}}]]</td>
| |
− | </tr>|}}
| |
− | {{#if:{{{deliverable-nr|}}} |
| |
− | <tr>
| |
− | <th>Deliverable nr</th>
| |
− | <td>{{{deliverable-nr}}}</td>
| |
− | </tr>|}} | |
− | {{#if:{{{submission-date|}}} | | |
− | <tr> | |
− | <th>Submission date</th>
| |
− | <td>{{{submission-date}}}</td>
| |
− | </tr>}}
| |
− | {{#if:{{{type|}}} |
| |
− | <tr>
| |
− | <th>Type</th>
| |
− | <td>[[:Category:{{ucfirst:{{lc:{{{type}}}}}}}|{{ucfirst:{{lc:{{{type}}}}}}}]]</td>
| |
− | </tr>|}}
| |
− | </table>
| |
− | <p align="center"><strong>
| |
− | {{#if:{{{url|}}}|[{{{url}}} PDF]| PDF}} |
| |
− | {{#if:{{{zenodo|}}}| [{{{zenodo}}} Zenodo]| Zenodo}}
| |
− | </strong></p>
| |
− | <p align="center">[[#metadata|Document metadata]]</p>
| |
− | </div>
| |
− | </onlyinclude> | |