Difference between revisions of "Template:Infobox"

From
Jump to: navigation, search
m
m
Line 6: Line 6:
 
  <nowiki>
 
  <nowiki>
 
{{Infobox
 
{{Infobox
| project =  
+
| project = (Should match existing category.)
 
| deliverable-nr =  
 
| deliverable-nr =  
 
| submission-date =  
 
| submission-date =  
| type =  
+
| type = (Should match existing category.)
 
| =  
 
| =  
 
| =  
 
| =  
Line 25: Line 25:
 
<div class="infobox-image">{{#if:{{{image|}}} | [[File:{{{image}}}|200px]] | [[File:ENVRI-community-logo.jpg|200px]] }}</div>
 
<div class="infobox-image">{{#if:{{{image|}}} | [[File:{{{image}}}|200px]] | [[File:ENVRI-community-logo.jpg|200px]] }}</div>
 
<table>
 
<table>
{{#if:{{{project|}}} | <tr><th>Project</th><td>[[:Category:{{{project}}}|{{{project}}}]]</td></tr> | }}
+
{{#if:{{{project|}}} |
{{#if:{{{deliverable-nr|}}}|<tr>
+
<tr>
 +
    <th>Project</th>
 +
    <td>[[:Category:{{{project}}}|{{{project}}}]]</td>
 +
</tr>|}}
 +
{{#if:{{{deliverable-nr|}}} |
 +
<tr>
 
     <th>Deliverable nr</th>
 
     <th>Deliverable nr</th>
 
     <td>{{{deliverable-nr}}}</td>
 
     <td>{{{deliverable-nr}}}</td>
</tr>}}{{#if:{{{submission-date|}}}|<tr>
+
</tr>|}}
 +
{{#if:{{{submission-date|}}} |
 +
<tr>
 
     <th>Submission date</th>
 
     <th>Submission date</th>
 
     <td>{{{submission-date}}}</td>
 
     <td>{{{submission-date}}}</td>
</tr>}}{{#if:{{{type|}}}|<tr>
+
</tr>}}
 +
{{#if:{{{type|}}}|
 +
<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">[[#metadata|Document metadata]]</p>
 
<p align="center">[[#metadata|Document metadata]]</p>
 
</div>
 
</div>

Revision as of 05:04, 25 August 2020

A succinct infobox for individual pages.

Parameters:

{{Infobox
| project = (Should match existing category.)
| deliverable-nr = 
| submission-date = 
| type = (Should match existing category.)
| = 
| = 
| = 
| = 
| = 
| = 
}}

Output: →