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 Shroud of the Avatar Wiki - SotA
Jump to navigation Jump to search
Rigel Kent (talk | contribs)
doc
Rigel Kent (talk | contribs)
dot separator
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;
     margin: -0.5em 0 0.5em;
     margin: -0.5em 0 0.5em;
     padding: 0 1em 0 0.3em;
     padding-left: 0.3em;
  }
  .ankh-separator li {
    padding-right: 1em;
  }
  .dot-separator li {
    padding-right: 0.6em;
   }
   }
}}
}}
Line 20: Line 29:
==Parameters==
==Parameters==
;separator
;separator
: Currently must be "ankh". Other types to be implemented.
: 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: 10em; background: #333;">
<div style="max-width: 20em; background: #333;">
Small container
Small container
{{inline list|separator=ankh|
{{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: 10em; background: #333;">
<div style="max-width: 20em; background: #333;">
Small container
Small container
{{inline list|separator=ankh|
{{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>

Revision as of 02:50, 15 June 2021

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

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