Difference between revisions of "Template:Bullet"

From GuildWiki
Jump to: navigation, search
m
m
Line 1: Line 1:
<onlyinclude>{{#replace: {{#replace: {{#replace:
+
<onlyinclude>{{#replace: {{#replace: {{#replace: {{#replace:
 
{{{2|<span style="color:red;">
 
{{{2|<span style="color:red;">
 
'''Error: no text;
 
'''Error: no text;
 
prepend "<code>2=</code>" to your text and try again.</span>}}}
 
prepend "<code>2=</code>" to your text and try again.</span>}}}
|►|{{colorize|{{{1|black}}}|}}}}
+
|►|<span-{{{1|black}}}";></span>}}
|◄|{{colorize|{{{1|black}}}|}}}}
+
|◄|<span-{{{1|black}}}";></span>}}
|•|{{colorize|{{{1|black}}}|}}}}</onlyinclude>
+
|•|<span-{{{1|black}}}";>•</span>}}
  +
|<span-|<span style="color:}}</onlyinclude>
  +
<!-- this is in 2 stages because the replacement text is severely limited in length -->
 
{{/doc}}
 
{{/doc}}
 
[[Category:Templates/Formatting]]
 
[[Category:Templates/Formatting]]

Revision as of 22:26, 14 May 2009

Error: no text; prepend "2=" to your text and try again.

Usage

This template colors all bullets in the given text.

  • Currently supported bullets: ►, ◄, •
  • The list of supported bullets is simple to extend.
  • Do not use spaces around the color name.
  • Color names get truncated after 23 characters; this depends on server settings.
Wikicode Display
{{bullet|darkorange|◄ [[Dagnar Stonepate]] • [[Flame Djinn]] ►}}

Dagnar Stonepate Flame Djinn

{{bullet|red|x=2 • y=3 }}
{{bullet|red|2= x=2 • y=3 }}

Error: no text; prepend "2=" to your text and try again.
x=2 y=3

{{bullet|pink |◄ whitespace ► }}
{{bullet|pink|◄ no whitespace ► }}

whitespace
no whitespace

Testing color name truncation:

               {{bullet|012345678901234567890123456789|long • long }}
long <span style="color:012345678901234567890123456789";>•</span> long