Difference between revisions of "Template:Infobox"
m |
m |
||
Line 3: | Line 3: | ||
Parameters: | Parameters: | ||
− | + | <!-- Leave empty if irrelevant --> | |
<nowiki> | <nowiki> | ||
{{Infobox | {{Infobox | ||
| project = (Should match an existing category.) | | project = (Should match an existing category.) | ||
− | | deliverable-nr = ( | + | | deliverable-nr = (Any ID 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 = (Should match an existing category.) | ||
+ | | pdf = (Wikilink to PDF file.) | ||
+ | | zenodo = (URL to Zenodo page.) | ||
+ | | url = (Document URL.) | ||
}} | }} | ||
</nowiki> | </nowiki> | ||
Line 22: | Line 25: | ||
<tr> | <tr> | ||
<th>Project</th> | <th>Project</th> | ||
− | <td>[[:Category:{{{project}}} | + | <td>[[:Category:{{{project}}}{{!}}{{{project}}}]]</td> |
</tr>|}} | </tr>|}} | ||
{{#if:{{{deliverable-nr|}}} | | {{#if:{{{deliverable-nr|}}} | | ||
Line 34: | Line 37: | ||
<td>{{{submission-date}}}</td> | <td>{{{submission-date}}}</td> | ||
</tr>}} | </tr>}} | ||
− | {{#if:{{{type|}}}| | + | {{#if:{{{type|}}} | |
<tr> | <tr> | ||
<th>Type</th> | <th>Type</th> | ||
<td>[[:Category:{{ucfirst:{{lc:{{{type}}}}}}}|{{ucfirst:{{lc:{{{type}}}}}}}]]</td> | <td>[[:Category:{{ucfirst:{{lc:{{{type}}}}}}}|{{ucfirst:{{lc:{{{type}}}}}}}]]</td> | ||
− | </tr> | }} | + | </tr>|}} |
</table> | </table> | ||
+ | <p align="center">[{{{url}}} Link] | [File:{{{pdf}}} PDF | [{{{zenodo}}} Zenodo]</p> | ||
<p align="center">[[#metadata|Document metadata]]</p> | <p align="center">[[#metadata|Document metadata]]</p> | ||
</div> | </div> |
Revision as of 13:48, 26 August 2020
A succinct infobox for individual pages.
Parameters:
{{Infobox | project = (Should match an existing category.) | deliverable-nr = (Any ID format, eg. D1.2.) | submission-date = (ISO 8601 format, ie. YYYY-MM-DD) | type = (Should match an existing category.) | pdf = (Wikilink to PDF file.) | zenodo = (URL to Zenodo page.) | url = (Document URL.) }}
Output: →