Template:OOO-Intro: Difference between revisions
intro template that can be used on top of pages, pre styles, just fill in |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><div class="ooo-intro"> | ||
<div class="ooo-intro"> | <div class="ooo-intro__title">{{{title|}}}</div> | ||
<div class="ooo-intro__text">{{{text|}}}</div> | |||
<div class="ooo-intro__divider"></div> | |||
</div></includeonly><noinclude> | |||
</div> | |||
</includeonly> | |||
= OOO Intro Template = | |||
Creates a styled introduction section for the top of a page. | |||
== Usage == | |||
<pre> | |||
< | |||
{{OOO-Intro | {{OOO-Intro | ||
| title = | | title = Power Systems | ||
| text = | | text = Power generation is required to operate machines and production chains. | ||
}} | }} | ||
</ | </pre> | ||
== | == Notes == | ||
* Place at the top of a page. | |||
* Text supports full wiki formatting (links, lists, bold, etc.). | |||
* Styling handled globally in Common.css. | |||
{{ | <templatedata> | ||
{ | |||
"description": "Creates a styled introduction section for the top of a page.", | |||
}} | "params": { | ||
"title": { | |||
"label": "Intro Title", | |||
"description": "Main heading displayed in brand style.", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"text": { | |||
"label": "Intro Text", | |||
"description": "Introductory paragraph(s). Supports wiki formatting.", | |||
"type": "content", | |||
"required": true | |||
} | |||
}, | |||
"paramOrder": [ | |||
"title", | |||
"text" | |||
] | |||
} | |||
</templatedata> | |||
</noinclude> | </noinclude> | ||