Difference between revisions of "Template:Textbox"

From Changeringing Wiki
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- Parameters
+
<includeonly>
  1 - Background colour
 
  2 - Foreground colour
 
  3 - Text
 
-->
 
 
<div style="margin:0;background-color:
 
<div style="margin:0;background-color:
 
{{#switch: {{{1}}}
 
{{#switch: {{{1}}}
Line 13: Line 9:
 
  | salmon = #ffdddd;
 
  | salmon = #ffdddd;
 
  | grey = #dddddd;
 
  | grey = #dddddd;
| white = #ffffff;
 
 
  | {{{1}}};
 
  | {{{1}}};
 
}}
 
}}
 
border:1px solid #a3bfb1;text-align:left;color:{{{2}}};padding:0.2em 0.4em;">{{{3}}}</div>
 
border:1px solid #a3bfb1;text-align:left;color:{{{2}}};padding:0.2em 0.4em;">{{{3}}}</div>
 +
</includeonly>
 +
<noinclude>
 +
{{Textbox|khaki|blue|Some example text to go in the text box.}}
 +
 +
To use this template write the following:
 +
<pre>
 +
{{Textbox|<background colour>|<foreground colour>|<text>}}
 +
 +
e.g. for the example above use:
 +
 +
{{Textbox|khaki|blue|your Some example text to go in the text box.}}
 +
</pre>
 +
You can use any of the standard HTML colour names that can been found [http://www.w3schools.com/Html/html_colornames.asp here]. Or, if you prefer, you can specify your own background or foreground colour using the RGB hexadecimal colour code e.g. #40E0D0 instead of the name.
 +
 +
Some additional Changeringing Wiki colours have been created for use as very pale backgrounds:
 +
 +
{{Textbox|blue||blue}}
 +
{{Textbox|yellow||yellow}}
 +
{{Textbox|green||green}}
 +
{{Textbox|pink||pink}}
 +
{{Textbox|purple||purple}}
 +
{{Textbox|salmon||salmon}}
 +
{{Textbox|grey||grey}}
 +
 +
</noinclude>

Latest revision as of 18:04, 10 August 2008


Some example text to go in the text box.


To use this template write the following:

{{Textbox|<background colour>|<foreground colour>|<text>}}

e.g. for the example above use:

{{Textbox|khaki|blue|your Some example text to go in the text box.}}

You can use any of the standard HTML colour names that can been found here. Or, if you prefer, you can specify your own background or foreground colour using the RGB hexadecimal colour code e.g. #40E0D0 instead of the name.

Some additional Changeringing Wiki colours have been created for use as very pale backgrounds:


blue


yellow


green


pink


purple


salmon


grey