Difference between revisions of "Template:Userboxframe"
From eRepublik Official Wiki
m (<noinclude>|}</noinclude>) |
Democr1tus (Talk | contribs) m |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{|class="userboxes" style="margin-left: {{{left|1}}}em;; margin-bottom: 0.5em; width: 248px; border: {{{bordercolor|#99B3FF}}} solid 1px; background-color: {{{backgroundcolor|#FFFFFF}}}; color: {{{textcolor|#000000}}}; float: {{{2|{{{align|right}}}}}}; {{{extra-css|}}}" | {|class="userboxes" style="margin-left: {{{left|1}}}em;; margin-bottom: 0.5em; width: 248px; border: {{{bordercolor|#99B3FF}}} solid 1px; background-color: {{{backgroundcolor|#FFFFFF}}}; color: {{{textcolor|#000000}}}; float: {{{2|{{{align|right}}}}}}; {{{extra-css|}}}" | ||
|<div style="text-align: center; font-size: 120%; font-weight: bold;">{{{1|{{{toptext|Userboxes}}}}}}</div> | |<div style="text-align: center; font-size: 120%; font-weight: bold;">{{{1|{{{toptext|Userboxes}}}}}}</div> | ||
− | <noinclude>|}</noinclude> | + | <noinclude>|}</noinclude><noinclude> |
− | <noinclude> | + | {{Documentation|Template:Userbox/doc}}[[Category:Templates]]</noinclude> |
Latest revision as of 09:09, 2 July 2020
Userboxes
|
Template {{Userbox}} has been created as a standardization tool to create userboxes to be used in the user pages, it will float on the right side of an article while having a smaller box on the left and bigger box on the right. If you want the other way around use Template {{Userbox-r}}.
Userboxes can be also added in a frame to hold all of them together by using template {{Userboxframe}}.
This template needs to be closed off with {{End}}
Creating userbox
To create a userbox, the following code is to be used:
{{Userbox | border-s = insert only number which px size of the border you want (insert 0 if no border is needed); default is 1 | border-c = insert a color code (e.g. #DDD; white; #FF5600) for the color of the border; default is black | id = smaller box usually reserved for an image and the image is inserted as [[File:**name of the file**|***logo-size; suggested 40x40px***|****link if any****]] | id-c = insert a color code (e.g. #DDD; white; #FF5600) for the smaller box background color | id-fc = insert a color code (e.g. #DDD; white; #FF5600) for the smaller box font color; default is black | info = the bigger box where usually text is placed | info-c = insert a color code (e.g. #DDD; white; #FF5600) for the bigger box background color | info-fc = insert a color code (e.g. #DDD; white; #FF5600) for the bigger box font color; default is black | info-align= align the bigger box; default is left }}
Usage
{{Userbox | border-s = | border-c = | id = | id-c = | id-fc = | info = | info-c = | info-fc = | info-align= }}
Samples
{{Userbox | border-s = 2 | border-c = #999 | id = [[File:Wiki bureaucrat.png|40px]] | id-c = #DDD | id-fc = white | info = This is a userbox where big box is on the right and the text is aligned to the right. | info-c = white | info-fc = #FF5600 | info-align= right }}
This is a userbox where big box is on the left and the text is aligned to the center. The image is also bigger. |
{{Userbox-r | border-s = 5 | border-c = #FF5600 | id = [[File:Exclamation.png|80px]] | id-c = #DDD | id-fc = white | info = '''This is a userbox where big box is on the left and the text is aligned to the center. The image is also bigger.''' | info-c = orange | info-fc = green | info-align= center }}
Quick userbox with fixed settings
This userbox has preset border size (1) and default font color (black).
{{Userbox|'''border color and background in the smaller box'''|'''the background color of the big box'''|'''content of the small box'''|'''content of the big box'''|}}
This is a text |
{{Userbox|#FF5733|yellow|[[File:Wiki bureaucrat.png|40px|link=]]|This is a text|}}
Multiple userboxes in the frame
Users can also put multiple userboxes in a frame by using the following code:{{Userboxframe|Name of the frame}} following the userboxes and ending with {{End}}
Please note that {{End}} template has to be in the new line.
Example:
These are userboxes in this frame
|
{{Userboxframe|These are userboxes in this frame}}{{Wiki user for|year=2009|month=1|day=9}}{{User country|Croatia}}{{Mentor Request}} {{End}}