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) Created page with "<includeonly>{{#css: .inline-list ul { margin: 0 -1em 0 -0.2em; padding-top: 1em; overflow: hidden; } .ankh-separator ul { list-style-type: '\2625'; }..." |
Rigel Kent (talk | contribs) m del excess newline |
||
| (3 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"> | |||
{{{1}}} | |||
</div></includeonly><noinclude>List displayed inline. Lines break between items only. Separators at end of lines, if any, are hidden. | |||
==Parameters== | |||
;separator | |||
: ankh or dot | |||
;1 (first anonymous parameter) | |||
: Text to format. A list with standard MediaWiki asterisk markup is suggested. | |||
==Examples== | |||
<pre style="display: inline-block;"> | |||
Full width | |||
{{inline list|separator=ankh| | |||
* Air Magic | |||
* Chaos Magic | |||
* Death Magic | |||
* Earth Magic | |||
* Fire Magic | |||
* Life Magic | |||
* Moon Magic | |||
* Sun Magic | |||
* Water Magic | |||
}} | |||
</pre> | |||
Full width | |||
{{inline list|separator=ankh| | |||
* Air Magic | |||
* Chaos Magic | |||
* Death Magic | |||
* Earth Magic | |||
* Fire Magic | |||
* Life Magic | |||
* Moon Magic | |||
* Sun Magic | |||
* Water Magic | |||
}} | |||
<pre style="display: inline-block;"> | |||
<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> | |||
</pre> | |||
<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 | </div> | ||
[[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