Difference between revisions of "Template:Resources list item"

From Earth Science Information Partners (ESIP)
 
(2 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
|Has comment={{{Comment|}}}
 
|Has comment={{{Comment|}}}
 
}}
 
}}
<li class="ml-4">{{#switch:{{{Resources type|}}}
+
<li class="ml-2">{{#switch:{{{Resources type|}}}
 
     |Picture = <i class="fas fa-image text-muted"></i> [[media:{{{File|}}}|{{{Resources text|}}}]]
 
     |Picture = <i class="fas fa-image text-muted"></i> [[media:{{{File|}}}|{{{Resources text|}}}]]
 
     |File  = <i class="fas fa-file text-muted"></i> [[media:{{{File|}}}|{{{Resources text|}}}]]
 
     |File  = <i class="fas fa-file text-muted"></i> [[media:{{{File|}}}|{{{Resources text|}}}]]
 
     |URL  = <i class="fas fa-link text-muted"></i> [{{{URL|}}} {{{Resources text|}}}]
 
     |URL  = <i class="fas fa-link text-muted"></i> [{{{URL|}}} {{{Resources text|}}}]
 
     |Video = <i class="fas fa-video text-muted"></i> [{{{URL|}}} {{{Resources text|}}}]
 
     |Video = <i class="fas fa-video text-muted"></i> [{{{URL|}}} {{{Resources text|}}}]
     |Wiki  = <i class="fas fa-quote-left text-muted"></i> [[{{{Wikipage|}}}|{{{Resources text|{{{Wikipage|}}}}}}]] {{#show: {{{Wikipage|}}}|?Modification date#-F[M j, Y]}}
+
     |Wiki  = <i class="fas fa-quote-left text-muted"></i> [[{{{Wikipage|}}}|{{{Resources text|{{{Wikipage|}}}}}}]]
   }} <i class="text-muted">{{#if: {{{Author|}}}
+
   }}<i class="text-muted">{{#if: {{{Author|}}}
   |by {{#arraymap:{{{Author|}}}|;|@@@|@@@|,&#32;}} {{#if: {{{Has date|}}}
+
   |&#32;by {{#arraymap:{{{Author|}}}|;|@@@|@@@|,&#32;}} {{#if: {{{Has date|}}}
 
       |({{#time: Y|{{{Has date|}}} }})&#32;
 
       |({{#time: Y|{{{Has date|}}} }})&#32;
 
     }}
 
     }}
 
   |{{#if: {{{Has date|}}}
 
   |{{#if: {{{Has date|}}}
 
       |, {{#time: Y|{{{Has date|}}} }}&#32;
 
       |, {{#time: Y|{{{Has date|}}} }}&#32;
 +
      |{{#ifeq: {{{Resources type|}}}|Wiki|, {{#show: {{{Wikipage|}}}|?Modification date#-F[M j, Y]}}}}   
 
     }}
 
     }}
 
  }}</i> {{#if: {{{Comment|}}}
 
  }}</i> {{#if: {{{Comment|}}}

Latest revision as of 17:20, July 21, 2020

Resources item formatting and semantics.