Difference between revisions of "Template:Media annotation"
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#vardefine: date|{{#if:{{{Day|}}} | + | <includeonly>{{#vardefine: date|{{#if:{{{Day|}}} |
|{{#time:Y/m/d|{{{Year|}}}-{{padleft:{{{Month|}}}|2}}-{{padleft:{{{Day|}}}|2}}}} | |{{#time:Y/m/d|{{{Year|}}}-{{padleft:{{{Month|}}}|2}}-{{padleft:{{{Day|}}}|2}}}} | ||
|{{#if: {{{Month|}}} | |{{#if: {{{Month|}}} | ||
Line 50: | Line 50: | ||
|Location={{{Location|}}} | |Location={{{Location|}}} | ||
|Has date={{#var: date}} | |Has date={{#var: date}} | ||
− | |Year={{{ | + | |Year={{{year|{{#if:{{#var:date}}|{{#time:Y|{{#var:date}}}}}} }}} |
|Authored by={{{Creator|}}}|+sep=; | |Authored by={{{Creator|}}}|+sep=; | ||
|Map publisher={{{Publisher|}}} | |Map publisher={{{Publisher|}}} | ||
Line 69: | Line 69: | ||
-->{{#default_form: Media annotation}}<!-- | -->{{#default_form: Media annotation}}<!-- | ||
− | --> | + | --><div class="wcpl-infobox">[[{{FULLPAGENAME}}|class=wcpl-infobox-image|320px]] |
− | + | <div class="wcpl-infobox-section"> | |
− | + | <div class="wcpl-infobox-section-header">{{{Media category|}}}</div> | |
− | + | <div class="wcpl-infobox-section-body"> | |
− | |||
− | |||
<table class="wikitable display" style="width:100%"> | <table class="wikitable display" style="width:100%"> | ||
{{#if:{{{Creator|}}}| | {{#if:{{{Creator|}}}| | ||
Line 136: | Line 134: | ||
}}</td> | }}</td> | ||
</tr> | </tr> | ||
− | }}{{#ifeq: @@@|Organization name| | + | }}{{#ifeq: @@@|Organization name|{{#ifexpr: 0{{#arraysize: industries}} > 0| |
<tr valign=top> | <tr valign=top> | ||
<td width=214>''Industry Sector''</td> | <td width=214>''Industry Sector''</td> | ||
Line 149: | Line 147: | ||
}}</ul></td> | }}</ul></td> | ||
</tr> | </tr> | ||
+ | }} | ||
}} | }} | ||
| | | | ||
Line 190: | Line 189: | ||
}} | }} | ||
}} | }} | ||
+ | </includeonly> |