Difference between revisions of "Template:Portal"
From Earth Science Information Partners (ESIP)
| (23 intermediate revisions by the same user not shown) | |||
| Line 31: | Line 31: | ||
|; | |; | ||
|@ | |@ | ||
| − | |<span class="nowrap small mr-2"><i class=" fas fa-hashtag small"></i> @</span> | + | |<span class="nowrap small mr-2"><i class=" fas fa-hashtag small"></i>@</span> |
| | | | ||
}} | }} | ||
| − | </div>< | + | </div> |
| − | + | </div> | |
| − | + | </div> | |
| − | + | {{#arraymap: {{{Portal blocks|}}} | |
| − | |||
| − | |||
| − | |||
|, | |, | ||
|@ | |@ | ||
| − | | | + | |<!-- |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
### NEWS | ### NEWS | ||
| − | --> | + | -->{{#switch: @ |
| − | |||
| − | |||
| − | |||
|News = | |News = | ||
<div class="card-deck">{{News filter | <div class="card-deck">{{News filter | ||
| − | + | |Portal={{ROOTPAGENAME}} | |
| − | + | |News status=On | |
| − | + | |Hide bottom panel=Yes | |
| − | + | |Hide news feeds=Yes | |
| − | + | }} | |
| + | </div> | ||
|#default = | |#default = | ||
}} | }} | ||
| Line 88: | Line 65: | ||
### EVENTS | ### EVENTS | ||
| − | --><div class="card mb-3 mr-0 shadow-sm"> | + | --><div id="events-front" class="card mb-3 mr-md-0 shadow-sm"> |
<div class="card-header"> | <div class="card-header"> | ||
| − | + | <div class="lead font-weight-bold">{{#formlink: form=Event | |
| + | |link text=<i class="fas fa-plus-circle float-right text-dark" title="Create new event"></i> | ||
| + | |Events[Portal]={{PAGENAME}} | ||
| + | }}<!-- -->Events</div> | ||
</div> | </div> | ||
| − | <div class=" | + | <div class="p-2 pt-0"> |
| − | {{#ask: [[Category:Events]][[Portal::{{PAGENAME}}]]|format= | + | {{#ask: |
| − | + | [[Category:Events]] | |
| − | + | [[Portal::{{PAGENAME}}]] | |
| − | + | |?Event duration label=Date | |
| + | |headers=plain | ||
| + | |format=table | ||
| + | |class=datatable | ||
| + | |mainlabel=Event | ||
| + | }} | ||
</div> | </div> | ||
</div> | </div> | ||
| Line 105: | Line 90: | ||
--><div class="card mb-3 shadow-sm"> | --><div class="card mb-3 shadow-sm"> | ||
<div class="card-header"> | <div class="card-header"> | ||
| − | + | <div class="lead font-weight-bold">{{#if: {{#show: {{PAGENAME}}/Resources |?Modification date }} | |
| + | |{{#formlink: form=Resources | ||
| + | |link text=<i class="fas fa-pencil-alt text-dark float-right" title="Edit Resources page"></i> | ||
| + | |target={{PAGENAME}}/Resources | ||
| + | |returnto={{PAGENAME}} | ||
| + | |reload | ||
| + | }} | ||
| + | |{{#formlink: form=Resources | ||
| + | |link text=<i class="fas fa-plus-circle text-dark float-right" title="Create Resources page"></i> | ||
| + | |Resources[Portal]={{PAGENAME}} | ||
| + | |returnto={{PAGENAME}} | ||
| + | |reload | ||
| + | }} | ||
| + | }}<!-- -->Resources</div> | ||
</div> | </div> | ||
<div class="card-body"> | <div class="card-body"> | ||
| − | {{:{{FULLPAGENAME}}/Resources}} | + | {{#if: {{#show: {{FULLPAGENAME}}/Resources |?Modification date }} |
| + | |{{:{{FULLPAGENAME}}/Resources}} | ||
| + | }} | ||
</div> | </div> | ||
</div> | </div> | ||
| Line 115: | Line 115: | ||
}} | }} | ||
</div> | </div> | ||
| − | <div class="card-deck"><!-- | + | <div class="card-deck">{{#arraymap: {{{Portal blocks|}}} |
| + | |, | ||
| + | |@ | ||
| + | |{{#switch: @ | ||
| + | |GoogleDocs =<!-- | ||
### GOOGLE DOCS | ### GOOGLE DOCS | ||
| − | --><div class="card mb-3 mr-0 shadow-sm"> | + | --><div class="card mb-3 mr-md-0 shadow-sm"> |
<div class="card-header"> | <div class="card-header"> | ||
<div class="lead font-weight-bold">Google Documents</div> | <div class="lead font-weight-bold">Google Documents</div> | ||
| Line 126: | Line 130: | ||
|super_page={{PAGENAME}}/GD | |super_page={{PAGENAME}}/GD | ||
|Googledoc[Portal title]={{PAGENAME}} | |Googledoc[Portal title]={{PAGENAME}} | ||
| + | |button text=Create or edit description | ||
| + | |placeholder=Enter the name of a document ... | ||
}} | }} | ||
{{#ask: | {{#ask: | ||
| Line 133: | Line 139: | ||
}} | }} | ||
</div> | </div> | ||
| − | </div><!-- | + | </div> |
| + | }} | ||
| + | | | ||
| + | }}<!-- | ||
### COMMITTEE | ### COMMITTEE | ||
--><div id="committee" class="card mb-3 shadow-sm"> | --><div id="committee" class="card mb-3 shadow-sm"> | ||
| − | <div class="card-header"> | + | <div class="card-header"> |
| − | <div class="lead font-weight-bold">{{{Committee|}}}</div> | + | <div class="lead font-weight-bold">{{{Committee|}}}</div> |
| − | </div> | + | </div> |
| − | <div class="card-body">{{{Members}}}</div> | + | <div class="card-body">{{{Members}}}</div> |
| − | </div> | + | </div> |
</div> | </div> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
Portal page layout and semantics. | Portal page layout and semantics. | ||
</noinclude> | </noinclude> | ||
Latest revision as of 02:57, July 23, 2020
Portal page layout and semantics.