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

From SotA Wiki
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)
doc
Line 16: Line 16:
<div class="inline-list {{{separator}}}-separator">
<div class="inline-list {{{separator}}}-separator">
{{{1}}}
{{{1}}}
</div></includeonly><noinclude>[[Category:Formatting templates]]</noinclude>
</div></includeonly><noinclude>List displayed inline. Lines break between items only. Separators at end of lines, if any, are hidden.
 
==Parameters==
;separator
: Currently must be "ankh". Other types to be implemented.
;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
* Chaos
* Death
* Earth
* Fire
* Life
* Moon
* Sun
* Water
}}
</pre>
Full width
{{inline list|separator=ankh|
* Air
* Chaos
* Death
* Earth
* Fire
* Life
* Moon
* Sun
* Water
}}
 
<pre style="display: inline-block;">
<div style="width: 10em; background: #333;">
Small container
{{inline list|separator=ankh|
* Air
* Chaos
* Death
* Earth
* Fire
* Life
* Moon
* Sun
* Water
}}
</div>
</pre>
<div style="width: 10em; background: #333;">
Small container
{{inline list|separator=ankh|
* Air
* Chaos
* Death
* Earth
* Fire
* Life
* Moon
* Sun
* Water
}}
</div>
[[Category:Formatting templates]]</noinclude>

Revision as of 02:33, 15 June 2021

List displayed inline. Lines break between items only. Separators at end of lines, if any, are hidden.

Parameters

separator
Currently must be "ankh". Other types to be implemented.
1 (first anonymous parameter)
Text to format. A list with standard MediaWiki asterisk markup is suggested.

Examples

Full width
{{inline list|separator=ankh|
* Air
* Chaos
* Death
* Earth
* Fire
* Life
* Moon
* Sun
* Water
}}

Full width

  • Air
  • Chaos
  • Death
  • Earth
  • Fire
  • Life
  • Moon
  • Sun
  • Water
<div style="width: 10em; background: #333;">
Small container
{{inline list|separator=ankh|
* Air
* Chaos
* Death
* Earth
* Fire
* Life
* Moon
* Sun
* Water
}}
</div>

Small container

  • Air
  • Chaos
  • Death
  • Earth
  • Fire
  • Life
  • Moon
  • Sun
  • Water