Difference between revisions of "Template:Portal"
From Earth Science Information Partners (ESIP)
Line 12: | Line 12: | ||
}} | }} | ||
</div> | </div> | ||
− | <div class="card mb-3 shadow-sm"> | + | <div class="card mb-3 shadow-sm"><!-- |
− | {{#if: {{{Portal logo|}}}|<div class="card-img-top">[[image:{{{Portal logo|}}}|class=img-fluid|link=]]</div>}} | + | |
− | <div class="card-body">[[#committee|<span class="mw-ui-button float-right small">Contacts</span>]] | + | ### LOGO |
− | {{#if: {{{Portal tagline|}}}|<div class="lead my-3 font-weight-bold">{{{Portal tagline|}}}</div>}} | + | |
+ | -->{{#if: {{{Portal logo|}}} | ||
+ | |<div class="card-img-top">[[image:{{{Portal logo|}}}|class=img-fluid|link=]]</div> | ||
+ | }}<!-- | ||
+ | |||
+ | ### PORTAL | ||
+ | |||
+ | --><div class="card-body">[[#committee|<span class="mw-ui-button float-right small">Contacts</span>]] | ||
+ | {{#if: {{{Portal tagline|}}} | ||
+ | |<div class="lead my-3 font-weight-bold">{{{Portal tagline|}}}</div> | ||
+ | }} | ||
{{{Portal description|}}} | {{{Portal description|}}} | ||
Line 30: | Line 40: | ||
--><div class="card-footer d-block d-md-flex justify-content-between"><!-- | --><div class="card-footer d-block d-md-flex justify-content-between"><!-- | ||
− | -->{{# | + | -->{{#arraymap: {{{Portal blocks|}}} |
− | |{{#formlink: form=News | + | |, |
− | + | |@ | |
− | + | |{{#switch: @ | |
− | + | |News = {{#formlink: form=News | |
− | + | |link text=<span class="mw-ui-button mw-ui-quiet w-100 w-md-auto mb-2 mb-md-0">Add News</span> | |
− | + | |News[Portal]={{PAGENAME}} | |
− | + | }} | |
− | + | |Events = {{#formlink: form=Event | |
− | + | |link text=<span class="mw-ui-button mw-ui-quiet w-100 w-md-auto mb-2 mb-md-0">Add Event</span> | |
− | + | |Event[Portal]={{PAGENAME}} | |
− | + | }} | |
− | + | |Resources = {{#formlink: form=Resources | |
− | + | |link text=<span class="mw-ui-button mw-ui-quiet w-100 w-md-auto mb-2 mb-md-0">Add Resources</span> | |
− | + | |Resources[Portal]={{PAGENAME}} | |
− | + | }} | |
− | + | | | |
− | |||
− | |||
}} | }} | ||
</div> | </div> |
Revision as of 14:15, July 18, 2020
Portal page layout and semantics.