Difference between revisions of "Template:Resources list item"
From Earth Science Information Partners (ESIP)
(Created page with "<includeonly>{{#subobject: |Resources type={{{Resources type|}}} |Resources location={{#switch:{{{Resources type|}}} |Picture |File = {{{File|}}} |URL |Video...") |
|||
| (11 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
|Resources location={{#switch:{{{Resources type|}}} | |Resources location={{#switch:{{{Resources type|}}} | ||
|Picture | |Picture | ||
| − | |File = {{{File|}}} | + | |File = {{filepath:{{{File|}}}}} |
|URL | |URL | ||
|Video = {{{URL|}}} | |Video = {{{URL|}}} | ||
| − | |Wiki = {{{Wikipage|}}} | + | |Wiki = {{fullurl:{{{Wikipage|}}}}} |
}} | }} | ||
|Resources text={{{Resources text|}}} | |Resources text={{{Resources text|}}} | ||
| Line 13: | Line 13: | ||
|Has comment={{{Comment|}}} | |Has comment={{{Comment|}}} | ||
}} | }} | ||
| − | < | + | <li class="ml-2">{{#switch:{{{Resources type|}}} |
| − | |{{#arraymap:{{{Author|}}}|;|@@@|@@@|, }} {{#if: {{{Has date|}}} | + | |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|}}}]] | ||
| + | |URL = <i class="fas fa-link 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|}}}}}}]] | ||
| + | }}<i class="text-muted">{{#if: {{{Author|}}} | ||
| + | | by {{#arraymap:{{{Author|}}}|;|@@@|@@@|, }} {{#if: {{{Has date|}}} | ||
|({{#time: Y|{{{Has date|}}} }})  | |({{#time: Y|{{{Has date|}}} }})  | ||
}} | }} | ||
| − | + | |{{#if: {{{Has date|}}} | |
| − | + | |, {{#time: Y|{{{Has date|}}} }}  | |
| − | + | |{{#ifeq: {{{Resources type|}}}|Wiki|, {{#show: {{{Wikipage|}}}|?Modification date#-F[M j, Y]}}}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
}} | }} | ||
| − | + | }}</i> {{#if: {{{Comment|}}} | |
|{{#info: {{{Comment|}}} }} | |{{#info: {{{Comment|}}} }} | ||
| − | }}</ | + | }} |
| + | </li></includeonly><noinclude> | ||
Resources item formatting and semantics. | Resources item formatting and semantics. | ||
</noinclude> | </noinclude> | ||
Latest revision as of 16:20, July 21, 2020
Resources item formatting and semantics.