Difference between revisions of "Template:Resources list item"

From Earth Science Information Partners (ESIP)
Line 13: Line 13:
 
|Has comment={{{Comment|}}}
 
|Has comment={{{Comment|}}}
 
}}
 
}}
<div>{{#if: {{{Author|}}}
+
<div>{{#switch:{{{Resources type|}}}
  |{{#arraymap:{{{Author|}}}|;|@@@|@@@|,&#32;}} {{#if: {{{Has date|}}}
 
      |({{#time: Y|{{{Has date|}}} }})&#32;
 
    }}
 
}}{{#switch:{{{Resources type|}}}
 
 
     |Picture
 
     |Picture
 
     |File  = [[media:{{{File|}}}|{{{Resources text|}}}]]
 
     |File  = [[media:{{{File|}}}|{{{Resources text|}}}]]
Line 24: Line 20:
 
     |Wiki  = [[{{{Wikipage|}}}|{{{Resources text|{{{Wikipage|}}}}}}]]
 
     |Wiki  = [[{{{Wikipage|}}}|{{{Resources text|{{{Wikipage|}}}}}}]]
 
   }}{{#if: {{{Author|}}}
 
   }}{{#if: {{{Author|}}}
    |
+
  |by {{#arraymap:{{{Author|}}}|;|@@@|@@@|,&#32;}} {{#if: {{{Has date|}}}
     |{{#if: {{{Has date|}}}
+
      |({{#time: Y|{{{Has date|}}} }})&#32;
 +
     }}
 +
  |{{#if: {{{Has date|}}}
 
       |, {{#time: Y|{{{Has date|}}} }})&#32;
 
       |, {{#time: Y|{{{Has date|}}} }})&#32;
 
     }}
 
     }}
  }}{{#if: {{{Comment|}}}
+
}} {{#if: {{{Comment|}}}
 
       |{{#info: {{{Comment|}}} }}
 
       |{{#info: {{{Comment|}}} }}
 
     }}</div></includeonly><noinclude>
 
     }}</div></includeonly><noinclude>
 
Resources item formatting and semantics.
 
Resources item formatting and semantics.
 
</noinclude>
 
</noinclude>

Revision as of 03:31, July 21, 2020

Resources item formatting and semantics.