Difference between revisions of "Template:Portal"
From Earth Science Information Partners (ESIP)
Line 25: | Line 25: | ||
}} | }} | ||
</div> | </div> | ||
− | <div class="card-footer d-block d-md-flex justify-content-between">{{#ifeq: {{{Portal news|}}}|Yes | + | <div class="card-footer d-block d-md-flex justify-content-between"> |
+ | {{#ifeq: {{{Portal news|}}}|Yes | ||
|{{#formlink: form=News | |{{#formlink: form=News | ||
|link text=<span class="mw-ui-button mw-ui-progressive w-100 w-md-auto">Add News</span> | |link text=<span class="mw-ui-button mw-ui-progressive w-100 w-md-auto">Add News</span> | ||
|News[Portal]={{PAGENAME}} | |News[Portal]={{PAGENAME}} | ||
}} | }} | ||
− | }} | + | }} |
− | + | {{#ifeq: {{{Portal events|}}}|Yes | |
− | |||
|{{#formlink: form=Event | |{{#formlink: form=Event | ||
− | |link text=<span class="mw-ui-button mw-ui-progressive">Add Event</span> | + | |link text=<span class="mw-ui-button mw-ui-progressive w-100 w-md-auto">Add Event</span> |
|Event[Portal]={{PAGENAME}} | |Event[Portal]={{PAGENAME}} | ||
}} | }} | ||
− | }} | + | }} |
− | + | {{#ifeq: {{{Portal resources|}}}|Yes | |
− | |||
|{{#formlink: form=Resources | |{{#formlink: form=Resources | ||
− | |link text=<span class="mw-ui-button mw-ui-destructive">Add Resources</span> | + | |link text=<span class="mw-ui-button mw-ui-destructive w-100 w-md-auto">Add Resources</span> |
|Resources[Portal]={{PAGENAME}} | |Resources[Portal]={{PAGENAME}} | ||
}} | }} | ||
− | }} | + | }} |
− | + | {{#ifeq: {{{Portal documents|}}}|Yes | |
− | |||
|{{#formlink: form=Documents | |{{#formlink: form=Documents | ||
− | |link text=<span class="mw-ui-button mw-ui-destructive">Add Document</span> | + | |link text=<span class="mw-ui-button mw-ui-destructive w-100 w-md-auto">Add Document</span> |
|Documents[Portal]={{PAGENAME}} | |Documents[Portal]={{PAGENAME}} | ||
}} | }} | ||
− | }} | + | }} |
− | + | </div> | |
− | |||
</div> | </div> | ||
</div> | </div> |
Revision as of 03:08, July 18, 2020
Portal page layout and semantics.