Template:Divround: Difference between revisions

From Songs of Syx Wiki
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
No edit summary
Line 1: Line 1:
<div class="rounddiv" style="width:{{{2}}}; background-color:{{{3}}};">{{{1}}}</div>
<div class="rounddiv" style="color: {{{2}}}; width:{{{3}}}; background-color:{{{4}}};">{{{1}}}</div><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|}}</nowiki></code>, this creates...<br />
Still more text.
{{divround|}}
...and even more.
{{divround|}}
...aaaaand still more.
[[Category:Templates]]</noinclude>

Revision as of 00:16, 9 June 2021

{{{1}}}

As shown above, this template can add text inside a rounded css-div box with a shadow.
The color of the box as well the width can be customized.
The format of this template is {{divround|shown text|text color|width|bg color}}.


For example, the following code {{divround|This is more text.|yellow|400px|#006666}}, 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 interest separator, if coded like this: {{divround|}}, this creates...
Still more text.

...and even more.

...aaaaand still more.