GuildWiki

GuildWiki has been locked down: anonymous editing and account creation are disabled. Current registered users are unaffected. Leave any comments on the Community Portal.

READ MORE

GuildWiki
m
m
 
(3 intermediate revisions by the same user not shown)
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>}}}
|►|<span style="color:{{{1|black}}}; " > </span>}}
+
|►|<span style="<spanc>">►</span>}}
|◄|<span style="color:{{{1|black}}};">◄</span>}}
+
|◄|<span style="<spanc>">◄</span>}}
|•|<span style="color:{{{1|black}}};">•</span>}}</onlyinclude>
+
|•|<span style="<spanc>">•</span>}}
  +
|<spanc>|color:{{{1|black}}}; }}</onlyinclude>
  +
<!-- this is in 2 stages because the replacement text is severely limited in length -->
 
{{/doc}}
 
{{/doc}}
 
[[Category:Templates/Formatting]]
 
[[Category:Templates/Formatting]]

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