Template:Messagebox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (1 revision: updated content for site upgrade)
(Write little tutorial, how to use this template. Please fix my speech... And some "parts" of tutorial too. I made this in 5 minutes.)
Line 9: Line 9:
</td>
</td>
</tr>
</tr>
</table><noinclude>
</table>
<noinclude>
----
 
How to use:
<pre>
{{messagebox
|text = Text here
|small = Small text here
|txtcolor = Red
|image = [[File:en.png|55px|link=Template:Messagebox]]
|bgcolor = yellow
|bdcolor = green
}}
</pre>
 
text = Write your text
 
small = Write small text
 
txtcolor = Color of all text
 
image = [[File:''name_of_image''|''width_of_image''|''link_to_some_resource_or_page_at_this_wiki'']]
 
:link in format <nowiki>''http://...''</nowiki> or just name of page at this wiki (like "Template:Messagebox" '''without quotes''')
 
bgcolor = ''color of background''
 
bdcolor = ''color of border''
 
And that will look like this:
{{messagebox
|text = Text here
|small = Small text here
|txtcolor = Red
|image = [[File:en.png|55px|link=Template:Messagebox]]
|bgcolor = yellow
|bdcolor = green
}}
For ''bgcolor'' and ''bdcolor'' and ''txtcolor'' you can use color codes (in format #XXXXXX where "'''X'''" is a Hexadecimal)
[[Category:Notice templates|{{PAGENAME}}]]
[[Category:Notice templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 08:57, 1 September 2011


How to use:

{{messagebox
|text = Text here
|small = Small text here
|txtcolor = Red
|image = [[File:en.png|55px|link=Template:Messagebox]]
|bgcolor = yellow
|bdcolor = green
}}

text = Write your text

small = Write small text

txtcolor = Color of all text

image = link_to_some_resource_or_page_at_this_wiki

link in format ''http://...'' or just name of page at this wiki (like "Template:Messagebox" without quotes)

bgcolor = color of background

bdcolor = color of border

And that will look like this:

For bgcolor and bdcolor and txtcolor you can use color codes (in format #XXXXXX where "X" is a Hexadecimal)