Thank you for visiting SotAwiki, a Shroud of the Avatar Wiki Encyclopedia. If you see any information that is outdated, please take the time to update it, or if you prefer, leave a message for other editors. This community wiki is for the benefit of all Avatars!
Template:Inline list: Difference between revisions
Jump to navigation
Jump to search
Rigel Kent (talk | contribs) doc |
Rigel Kent (talk | contribs) m del excess newline |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 7: | Line 7: | ||
.ankh-separator ul { | .ankh-separator ul { | ||
list-style-type: '\2625'; | list-style-type: '\2625'; | ||
} | |||
.dot-separator ul { | |||
list-style-type: '\00B7'; | |||
} | } | ||
.inline-list li { | .inline-list li { | ||
float: left; | float: left; | ||
position: relative; | |||
margin: -0.5em 0 0.5em; | margin: -0.5em 0 0.5em; | ||
padding: 0 1em | padding-left: 0.3em; | ||
} | |||
.ankh-separator li { | |||
padding-right: 1em; | |||
} | |||
.dot-separator li { | |||
padding-right: 0.6em; | |||
} | } | ||
}} | }}<div class="inline-list {{{separator}}}-separator"> | ||
<div class="inline-list {{{separator}}}-separator"> | |||
{{{1}}} | {{{1}}} | ||
</div></includeonly><noinclude>List displayed inline. Lines break between items only. Separators at end of lines, if any, are hidden. | </div></includeonly><noinclude>List displayed inline. Lines break between items only. Separators at end of lines, if any, are hidden. | ||
| Line 20: | Line 29: | ||
==Parameters== | ==Parameters== | ||
;separator | ;separator | ||
: | : ankh or dot | ||
;1 (first anonymous parameter) | ;1 (first anonymous parameter) | ||
: Text to format. A list with standard MediaWiki asterisk markup is suggested. | : Text to format. A list with standard MediaWiki asterisk markup is suggested. | ||
| Line 28: | Line 37: | ||
Full width | Full width | ||
{{inline list|separator=ankh| | {{inline list|separator=ankh| | ||
* Air | * Air Magic | ||
* Chaos | * Chaos Magic | ||
* Death | * Death Magic | ||
* Earth | * Earth Magic | ||
* Fire | * Fire Magic | ||
* Life | * Life Magic | ||
* Moon | * Moon Magic | ||
* Sun | * Sun Magic | ||
* Water | * Water Magic | ||
}} | }} | ||
</pre> | </pre> | ||
Full width | Full width | ||
{{inline list|separator=ankh| | {{inline list|separator=ankh| | ||
* Air | * Air Magic | ||
* Chaos | * Chaos Magic | ||
* Death | * Death Magic | ||
* Earth | * Earth Magic | ||
* Fire | * Fire Magic | ||
* Life | * Life Magic | ||
* Moon | * Moon Magic | ||
* Sun | * Sun Magic | ||
* Water | * Water Magic | ||
}} | }} | ||
<pre style="display: inline-block;"> | <pre style="display: inline-block;"> | ||
<div style="width: | <div style="max-width: 20em; background: #333;"> | ||
Small container | Small container | ||
{{inline list|separator= | {{inline list|separator=dot| | ||
* Air | * Air Magic | ||
* Chaos | * Chaos Magic | ||
* Death | * Death Magic | ||
* Earth | * Earth Magic | ||
* Fire | * Fire Magic | ||
* Life | * Life Magic | ||
* Moon | * Moon Magic | ||
* Sun | * Sun Magic | ||
* Water | * Water Magic | ||
}} | }} | ||
</div> | </div> | ||
</pre> | </pre> | ||
<div style="width: | <div style="max-width: 20em; background: #333;"> | ||
Small container | Small container | ||
{{inline list|separator= | {{inline list|separator=dot| | ||
* Air | * Air Magic | ||
* Chaos | * Chaos Magic | ||
* Death | * Death Magic | ||
* Earth | * Earth Magic | ||
* Fire | * Fire Magic | ||
* Life | * Life Magic | ||
* Moon | * Moon Magic | ||
* Sun | * Sun Magic | ||
* Water | * Water Magic | ||
}} | }} | ||
</div> | </div> | ||
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> | ||
Latest revision as of 03:11, 15 June 2021
List displayed inline. Lines break between items only. Separators at end of lines, if any, are hidden.
Parameters[edit]
- separator
- ankh or dot
- 1 (first anonymous parameter)
- Text to format. A list with standard MediaWiki asterisk markup is suggested.
Examples[edit]
Full width
{{inline list|separator=ankh|
* Air Magic
* Chaos Magic
* Death Magic
* Earth Magic
* Fire Magic
* Life Magic
* Moon Magic
* Sun Magic
* Water Magic
}}
Full width
- Air Magic
- Chaos Magic
- Death Magic
- Earth Magic
- Fire Magic
- Life Magic
- Moon Magic
- Sun Magic
- Water Magic
<div style="max-width: 20em; background: #333;">
Small container
{{inline list|separator=dot|
* Air Magic
* Chaos Magic
* Death Magic
* Earth Magic
* Fire Magic
* Life Magic
* Moon Magic
* Sun Magic
* Water Magic
}}
</div>
Small container
- Air Magic
- Chaos Magic
- Death Magic
- Earth Magic
- Fire Magic
- Life Magic
- Moon Magic
- Sun Magic
- Water Magic