Difference between revisions of "Template:Infobox"
(Formatted page.) |
(Added a check for the project logo using {{#ifexist}}) |
||
Line 9: | Line 9: | ||
{{Infobox | {{Infobox | ||
| project = (Plain text. Should match an existing category) | | project = (Plain text. Should match an existing category) | ||
− | | image = (Wikilink. | + | | image = (Wikilink. Looks for the project logo, and if nothing is found, defaults to ENVRI Community logo) |
| deliverable-nr = (Any format, eg. D1.2.) | | 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) | ||
Line 24: | Line 24: | ||
<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> | ||
− | <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]] | |
+ | {{#ifexist:[[File:{{{project}}}_logo.jpg]]|[[File:{{{project}}}_logo.jpg]]|[[File:ENVRI-community-logo.jpg|200px]]}} }}</div> | ||
<table> | <table> | ||
{{#if:{{{project|}}} | | {{#if:{{{project|}}} | |
Revision as of 04:28, 1 September 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. 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.) | 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.