Template:Portal box: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
<div class="portal-box" style="border:1px solid #a2a9b1; width:100%; height:100%; box-sizing:border-box; display:flex; flex-direction:column;"> | <div class="portal-box" style="border:1px solid #a2a9b1; width:100%; height:100%; box-sizing:border-box; display:flex; flex-direction:column;"> | ||
<div class="portal-head" style="background:#eaecf0; border-bottom:1px solid #a2a9b1; padding: | |||
{{{title}}} | <div class="portal-head" style="background:#eaecf0; border-bottom:1px solid #a2a9b1; padding:8px 10px; font-size:1.1em; font-weight:bold; display:flex; align-items:center; gap:8px;"> | ||
{{#if:{{{icon|}}}| | |||
<span class="portal-icon" aria-hidden="true">{{{icon}}}</span> | |||
}} | |||
<span>{{{title}}}</span> | |||
</div> | </div> | ||
<div class="portal-body" style="padding:10px 12px;"> | |||
<div class="portal-body" style="padding:10px 12px; flex:1;"> | |||
{{{content}}} | {{{content}}} | ||
{{#if:{{{link|}}}| | |||
<div class="portal-link" style="margin-top:12px;"> | |||
[{{fullurl:{{{link}}}}} Explore this topic →] | |||
</div> | |||
}} | |||
</div> | </div> | ||
</div><noinclude> | </div><noinclude> | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{Portal box | {{Portal box | ||
| title = | | title = Network Security | ||
| content = | | icon = 🌐 | ||
| link = Network Security | |||
| content = | |||
Networks, firewalls, protocols, and defensive architecture. | |||
}} | }} | ||
</pre> | </pre> | ||
=== Parameters === | |||
* <code>title</code> — The title displayed in the box. | |||
* <code>icon</code> — An icon displayed next to the title. | |||
* <code>link</code> — The MediaWiki page the "Explore this topic" link points to. | |||
* <code>content</code> — The main content of the box. | |||
[[Category:Layout templates]] | [[Category:Layout templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 14:35, 21 September 2026
{{#if:| }}
{{{title}}}
{{{content}}}
{{#if:|
[{{fullurl:{{{link}}}}} Explore this topic →]
}}
Usage
{{Portal box
| title = Network Security
| icon = 🌐
| link = Network Security
| content =
Networks, firewalls, protocols, and defensive architecture.
}}
Parameters
title— The title displayed in the box.icon— An icon displayed next to the title.link— The MediaWiki page the "Explore this topic" link points to.content— The main content of the box.