Template:Userbox/doc: Difference between revisions
Template page
More actions
Wikipedia >JustSomeoneNo |
Dream Indigo (talk | contribs) This isn't Wikipedia, but I am too lazy to remove everything else |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 14: | Line 14: | ||
* In your Browser's address bar, change "sandbox" or "testcases" to the name of your new Userbox. | * In your Browser's address bar, change "sandbox" or "testcases" to the name of your new Userbox. | ||
** Example: | ** Example: | ||
** '''CHANGE''' [{{Fullurl:Template:Userbox/sandbox}} http:// | ** '''CHANGE''' [{{Fullurl:Template:Userbox/sandbox}} http://meta.wikioasis.org/wiki/Template:Userbox/sandbox]<!--Display http://, but allow possibility of https:// access.--> | ||
** '''TO''' [{{Fullurl:Template:Userbox/sandbox}} https:// | ** '''TO''' [{{Fullurl:Template:Userbox/sandbox}} https://meta.wikioasis.org/wiki/Template:Userbox/WhateverYourNewBoxNameIs] | ||
** If the name of your new Userbox is taken, create a different name. | ** If the name of your new Userbox is taken, create a different name. | ||
* You will be prompted to Start or Create your new Template Userbox! | * You will be prompted to Start or Create your new Template Userbox! | ||
Line 125: | Line 125: | ||
}}</syntaxhighlight> || {{userbox|id=foo logo|id-s=14|id-lh=1.1em|id-c=#ffffee|info=''We have specified values to lessen the distance between text lines and padding space between cell content and its border.''|info-c=#ffeeff|info-s=8|info-p=1pt|info-lh=1.05em|border-c=#aaffaa|border-s=1}} | }}</syntaxhighlight> || {{userbox|id=foo logo|id-s=14|id-lh=1.1em|id-c=#ffffee|info=''We have specified values to lessen the distance between text lines and padding space between cell content and its border.''|info-c=#ffeeff|info-s=8|info-p=1pt|info-lh=1.05em|border-c=#aaffaa|border-s=1}} | ||
|- | |- | ||
| colspan="2"| Below example is for advanced users, showing how we can specify other | | colspan="2"| Below example is for advanced users, showing how we can specify other CSS properties,for example, "''font-family''",<br>to change the font or "''text-decoration''" to add lines around the text. Below, on the right side are two userboxes:<br>the top one is displayed without either parameters; and the bottom userbox is displayed by using the below code,<br>with the help of the "''info-op''" field. | ||
|- | |- | ||
| <syntaxhighlight lang="wikitext">{{userbox | | <syntaxhighlight lang="wikitext">{{userbox | ||
Line 145: | Line 145: | ||
; info-class : This parameter is inserted into the "class" attribute for the info component. | ; info-class : This parameter is inserted into the "class" attribute for the info component. | ||
This template supports the addition of | This template supports the addition of microformat information. This is done by adding "class" attributes to various data cells, indicating what kind of information is contained within. To flag a userbox as containing hCard information about a person, for example, add the following parameter: | ||
<syntaxhighlight lang="wikitext"> | <syntaxhighlight lang="wikitext"> | ||
Line 500: | Line 500: | ||
{{UBT}} | {{UBT}} | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
[[Category:Userboxes| ]] | |||
[[Category:Userboxes| | |||
}}</includeonly> | }}</includeonly> |