Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
All Pages
New Files
Recent Changes
Random Page
Random File
About
Content
Games
Characters
Novels
Novels
Weapons
Resources
Files
THS Wiki
Search
Search
Appearance
Appearance
move to sidebar
hide
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template:Userbox
(section)
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Example=== {| !style="width:300px"|Code !Result |- |<pre>{{subst:userbox}}</pre>||{{userbox}} |- |<pre>{{subst:userbox |id=foo |id-s=20 |id-c=#ffe |info=''foo bar'' |info-c=#fef |info-s=12 |border-c=#afa |border-s=2 }}</pre>||{{userbox|id=foo|id-s=20|id-c=#ffe|info=''foo bar''|info-c=#fef|info-s=12|border-c=#afa|border-s=2}} |- |colspan=2|Below example showing the default appearance of a userbox. Which is (much) higher than the 45px. Compare the height of the below one with the above userbox. |- |<pre>{{subst:userbox |id=foo logo |id-c=#ffe |info=''We are trying to see default distance in between text lines, and, see the distance in between cell content and its border and also see total height.'' |info-c=#fef |border-c=#afa |border-s=2 }}</pre>||{{userbox|id=foo logo|id-c=#ffe|info=''We are trying to see default distance in between text lines, and, see the distance in between cell content and its border and also see total height.''|info-c=#fef|border-c=#afa|border-s=2}} |- |colspan=2|Below example showing how we can change that userbox and specify further parameters to bring down the overall height of the userbox, to the recommended height of 45px, even with four text lines. Cell padding parameter "''info-p''" can also be set at "''1pt 1pt 1pt 2pt''" or, "''1pt 2pt''" for better appearance, when there are 4 text lines. |- |<pre>{{subst:userbox |id=foo logo |id-s=14 |id-c=#ffe |id-lh=1.1em |info=''We have specified values to lessen the distance in between text lines & padding space in between cell content and its border.'' |info-c=#fef |info-s=8 |info-p=1pt |info-lh=1.05em |border-c=#afa |border-s=1 }}</pre>||{{userbox|id=foo logo|id-s=14|id-lh=1.1em|id-c=#ffe|info=''We have specified values to lessen the distance in between text lines & padding space in between cell content and its border.''|info-c=#fef|info-s=8|info-p=1pt|info-lh=1.05em|border-c=#afa|border-s=1}} |- |colspan=2|Below example is for advanced users, showing how we can specify other {{w|Cascading Style Sheets|CSS}} properties, for example, "''font-family''", to change the font, which are not existing inside the template already. At below, right side shows two userboxes; top one is displayed without the "''font-family''" parameter, but the bottom userbox is displayed by using the below codes, with the help of "''info-op''" parameter. |- |<pre>{{subst:userbox |id=foo logo |id-s=14 |id-c=#ffe |id-lh=1.1em |info=foo bar |info-c=#fef |info-s=14 |info-op=font-family:'Courier New'; |border-c=#afa |border-s=2 }}</pre>||colspan=2|{{Userbox|id=foo logo|id-s=14|id-lh=1.1em|id-c=#ffe|info=foo bar|info-c=#fef|info-s=14|border-c=#afa|border-s=2}} <br style="clear:both"> <br /> {{Userbox|id=foo logo|id-s=14|id-lh=1.1em|id-c=#ffe|info=foo bar|info-c=#fef|info-s=14|info-op=font-family:'Courier New';|border-c=#afa|border-s=2}} |} [[Category:Templates]] [[Category:Userboxes| ]]</noinclude>
Summary:
Please note that all contributions to THS Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
ths-wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Template:Userbox
(section)
Add topic