Difference between revisions of "Template:Media annotation"

From Wayne County, Ohio Online Resource Center
Jump to navigation Jump to search
 
(8 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={{{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}}<!--
  
--><h2>Media annotation </h2>
+
--><div class="wcpl-infobox">[[{{FULLPAGENAME}}|class=wcpl-infobox-image|320px]]
This table is created automatically in the process of batch files upload.
+
  <div class="wcpl-infobox-section">
<div class="wcpl-infobox">
+
    <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 133: 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 146: Line 147:
 
   }}</ul></td>
 
   }}</ul></td>
 
</tr>
 
</tr>
 +
}}
 
}}
 
}}
 
   |
 
   |
 
}}
 
}}
 
</table>
 
</table>
 +
</div>
 +
</div>
 
</div>
 
</div>
 
{{#switch: {{{Media category|}}}
 
{{#switch: {{{Media category|}}}
Line 185: Line 189:
 
}}
 
}}
 
}}
 
}}
 +
</includeonly>

Latest revision as of 11:44, 27 August 2022