Template:Aside: Difference between revisions
Fireheart& (talk | contribs) m (Typo) |
Fireheart& (talk | contribs) m (Add 'center' option.) |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude><div style="max-width: min(100vw, 360px + 2em); float: {{{float|right}}}; clear: {{{float|right}}}; background-color: #{{{color|888888}}}22; border: 2px solid #{{{color|888888}}}44; padding: 1em; font-size: 95%;"><div style="font-weight: bold; text-align: center; font-size: initial;">{{{2|}}}</div>{{{1}}}</div></onlyinclude></includeonly> | <includeonly><onlyinclude>{{#ifeq: {{{float}}} | center | <center>}}<div style="display: inline-block; max-width: min(100vw, 360px + 2em); {{#ifeq: {{{float}}} | center | | float: {{{float|right}}}; clear: {{{float|right}}};}} background-color: #{{{color|888888}}}22; border: 2px solid #{{{color|888888}}}44; padding: 1em; font-size: 95%; text-align: left;"><div style="font-weight: bold; text-align: center; font-size: initial;">{{{2|}}}</div>{{{1}}}</div>{{#ifeq: {{{float}}} | center | </center>}}</onlyinclude></includeonly> | ||
== Usage == | == Usage == | ||
Line 17: | Line 17: | ||
==== Optional Parameters ==== | ==== Optional Parameters ==== | ||
<code><nowiki>{{Aside|Lorem ipsum...|Test Heading|color=00AA44|float= | <code><nowiki>{{Aside|Lorem ipsum...|Test Heading|color=00AA44|float=center}}</nowiki></code> | ||
---- | ---- | ||
{{Aside|Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Sociis natoque penatibus et magnis.|Test Heading|color=00AA44|float= | {{Cladist|image=MakyoBust.png}} | ||
{{Aside|Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Sociis natoque penatibus et magnis.|Test Heading|color=00AA44|float=center}} |
Revision as of 03:20, 7 February 2024
Usage
This template sets its content to one side of the article in a colorable box.
{{Aside | <content> | <heading> | color = RRGGBB | float = left }}
Only content
is required. All other parameters are optional.
Examples
Minimal
{{Aside|This is some test text.}}
This is some test text.
Optional Parameters
{{Aside|Lorem ipsum...|Test Heading|color=00AA44|float=center}}
{{{name}}} | |
---|---|
{{{pronouns}}} | |
Cladistics |
Test Heading
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Sociis natoque penatibus et magnis.