Difference between revisions of "Template:Portal"

From Earth Science Information Partners (ESIP)
Line 17: Line 17:
 
{{#if: {{{Portal tagline|}}}|<div class="lead my-3 font-weight-bold">{{{Portal tagline|}}}</div>}}
 
{{#if: {{{Portal tagline|}}}|<div class="lead my-3 font-weight-bold">{{{Portal tagline|}}}</div>}}
 
{{{Portal description|}}}
 
{{{Portal description|}}}
{{#ifeq: {{{Portal documents|}}}|Yes
 
  |<div class="card float-right shadow-sm">
 
  <div class="card-header">
 
  <div class="lead font-weight-bold">Documents</div>
 
  </div>
 
  </div>
 
}}
 
 
{{#arraymap: {{{Portal tag|}}}
 
{{#arraymap: {{{Portal tag|}}}
 
   |;
 
   |;
Line 51: Line 44:
 
         |link text=<span class="mw-ui-button mw-ui-quiet w-100 w-md-auto mb-2 mb-md-0">Add Resources</span>
 
         |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}}
 
         |Resources[Portal]={{PAGENAME}}
      }}
 
  }}<!--
 
 
-->{{#ifeq: {{{Portal documents|}}}|Yes
 
    |{{#formlink: form=Documents
 
        |link text=<span class="mw-ui-button mw-ui-quiet w-100 w-md-auto mb-2 mb-md-0">Add Document</span>
 
        |Documents[Portal]={{PAGENAME}}
 
 
       }}
 
       }}
 
   }}
 
   }}

Revision as of 03:59, July 18, 2020

Portal page layout and semantics.