Template:Divround: Difference between revisions

From Songs of Syx Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
<div class="rounddiv" style="color: {{{2}}}; width:{{{3}}}; background-color:{{{4}}};">{{{1}}}</div><noinclude>
<div class="rounddiv" style="color: {{{2}}}; width:{{{3}}}; background-color:{{{4}}};">{{{1}}}</div><noinclude><br>{{Divround/doc}}[[Category:Templates]]</noinclude>
As shown above, this template can add text inside a rounded css-div box with a shadow.<br />
The color of the box as well the width can be customized.<br />
The format of this template is <code><nowiki>{{divround|shown text|text color|width|bg color}}</nowiki></code>.
<br />
<hr>
For example, the following code <code><nowiki>{{divround|This is more text.|yellow|400px|#006666}}</nowiki></code>, would show this:
{{divround|This is more text.|yellow|400px|#006666}}
The width, text color and background color entries can be left out completely, which will just create default values for those three.<br />
 
<hr>
Leaving the text field blank could have this template be used as an interest separator, if coded like this: <code><nowiki>{{divround|||300px|}}</nowiki></code>, this creates...<br />
Still more text.
{{divround|}}
...and even more.
{{divround|}}
...aaaaand still more.
[[Category:Templates]]</noinclude>

Latest revision as of 21:39, 19 November 2021

{{{1}}}


Template Documentation

Description

This template is used to create a rounded rectangle that can contain anything: text, images or even other templates including more divround templates inside more divround templates. The text's color, background color and width can all be customized. Some fields can be left blank to leave them at their default values.

Syntax

{{divround|TEXT|TEXT_COLOR|WIDTH|BG_COLOR}}

Examples

For example, the following code {{divround|This is more text.|yellow|400px|darkgreen}}, would show this:

This is more text.

The width, text color and background color entries can be left out completely, which will just create default values for those three.


Leaving the text field blank could have this template be used as an interesting separator, if typed like this: {{divround|||300px|}}, this creates...
Still more text.

...and even more.

...aaaaand still more.