Difference between revisions of "Template:Info block"
Jump to navigation
Jump to search
(Created page with "<includeonly><div class="info-block portal-card"> <div class="portal-tabs" style="display:flex; width:100%"> <ul> <li>{{{label|Did You Know ...}}}</li>...") |
|||
Line 1: | Line 1: | ||
− | <includeonly><div class="info-block portal-card"> | + | <includeonly><div class="info-block {{{position|left}}} portal-card"> |
<div class="portal-tabs" style="display:flex; width:100%"> | <div class="portal-tabs" style="display:flex; width:100%"> | ||
<ul> | <ul> | ||
Line 6: | Line 6: | ||
</div> | </div> | ||
<div class="portal-pills">{{{content|}}}<!-- | <div class="portal-pills">{{{content|}}}<!-- | ||
− | -->{{#if: {{{footer|}}}|<div class="info-footer"> | + | -->{{#if: {{{footer|}}}|<div class="info-footer">{{{footer|From {{SITENAME}}}}}</div>}} |
− | {{{footer|From {{SITENAME}}}}} | ||
− | </div>}} | ||
</div> | </div> | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
Line 16: | Line 14: | ||
<pre> | <pre> | ||
{{Info block | {{Info block | ||
− | |label= | + | |label= # Any short text. Default: "Did You Know ..." </nowiki> |
+ | |content= # Instances of the [[Template:Info section]] | ||
+ | |footer= # Any text | ||
+ | |position= # Tab alignment policy [ left|right ]. Default: "left" | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ;Example (left) | ||
+ | <pre> | ||
+ | {{Info block | ||
+ | |label=Label | ||
|content= | |content= | ||
− | |footer= | + | {{info section|content=Section content}} |
+ | {{info section|content=Section content}} | ||
+ | {{info section|content=Section content}} | ||
+ | |footer=Footer text | ||
}} | }} | ||
</pre> | </pre> | ||
− | ;Example | + | ;Result |
+ | {{Info block | ||
+ | |label=Label | ||
+ | |content= | ||
+ | {{info section|content=Section content}} | ||
+ | {{info section|content=Section content}} | ||
+ | {{info section|content=Section content}} | ||
+ | |footer=Footer text | ||
+ | }} | ||
+ | |||
+ | ;Example (right) | ||
+ | <pre> | ||
+ | {{Info block | ||
+ | |label=Label | ||
+ | |content= | ||
+ | {{info section|content=Section content}} | ||
+ | {{info section|content=Section content}} | ||
+ | {{info section|content=Section content}} | ||
+ | |footer=Footer text | ||
+ | |position=right | ||
+ | }} | ||
+ | </pre> | ||
;Result | ;Result | ||
− | + | {{Info block | |
+ | |label=Label | ||
+ | |content= | ||
+ | {{info section|content=Section content}} | ||
+ | {{info section|content=Section content}} | ||
+ | {{info section|content=Section content}} | ||
+ | |footer=Footer text | ||
+ | |position=right | ||
+ | }} | ||
</noinclude> | </noinclude> |
Revision as of 20:18, 18 February 2022
- Description
- Usage
{{Info block |label= # Any short text. Default: "Did You Know ..." </nowiki> |content= # Instances of the [[Template:Info section]] |footer= # Any text |position= # Tab alignment policy [ left|right ]. Default: "left" }}
- Example (left)
{{Info block |label=Label |content= {{info section|content=Section content}} {{info section|content=Section content}} {{info section|content=Section content}} |footer=Footer text }}
- Result
- Label
Section content
Section content
Section content
- Example (right)
{{Info block |label=Label |content= {{info section|content=Section content}} {{info section|content=Section content}} {{info section|content=Section content}} |footer=Footer text |position=right }}
- Result
- Label
Section content
Section content
Section content