Difference between revisions of "Template:Bullet"

From GuildWiki
Jump to: navigation, search
m
m
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
'''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>}}}
|►|<span-{{{1|black}}}";>►</span>}}
+
|►|<span style="<spanc>">►</span>}}
|◄|<span-{{{1|black}}}";>◄</span>}}
+
|◄|<span style="<spanc>">◄</span>}}
|•|<span-{{{1|black}}}";>•</span>}}
+
|•|<span style="<spanc>">•</span>}}
|<span-|<span style="color:}}</onlyinclude>
+
|<spanc>|color:{{{1|black}}}; }}</onlyinclude>
 
<!-- this is in 2 stages because the replacement text is severely limited in length -->
 
<!-- this is in 2 stages because the replacement text is severely limited in length -->
 
{{/doc}}
 
{{/doc}}

Latest revision as of 22:33, 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