Editing
Template:Userbox
(section)
From PWI Wiki
Jump to navigation
Jump to search
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!
== Examples == {| style="background:transparent" !style="width: 300px;"| Code !Result |- | <pre>{{Userbox}}</pre> || {{Userbox}} |- | colspan="2"| Below example shows how an image may be substituted for text. The Image parameter takes the filename, display size, and alt-text (seen when you hover your mouse over the image). |- | <pre>{{Userbox | id = [[Image:TigerSmileySet.png| 45px|Tiger Smiley]] | info = ''foo bar'' | info-s = 12 | border-s = 2 }}</pre> || {{Userbox|id=[[Image:TigerSmileySet.png|45px|Tiger Smiley]]|id-s=20|info=''foo bar''|info-s=12|border-s=2}} |- | colspan="2"| Below example shows the default appearance of a userbox, which is (much) higher than the 45px. Compare the height of the one below with the above userbox. |- | <pre>{{Userbox | id = foo logo | 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.'' | border-s = 2 }}</pre> || {{Userbox|id=foo logo|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.''|border-s=2}} |- | colspan="2"| Below example shows how we can change that userbox and further specify 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>{{Userbox | id = foo logo | id-s = 14 | 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-s = 8 | info-p = 1pt | info-lh = 1.05em | border-s = 1 }}</pre> || {{Userbox|id=foo logo|id-s=14|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-s=8|info-p=1pt|info-lh=1.05em|border-s=1}} |} </noinclude>
Summary:
Please note that all contributions to PWI Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, 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 (see
PWpedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Template
Discussion
Read
Edit
History
Page actions
Template
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information