Editing Template:Userbox/doc
Template page
More actions
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
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://en.wikipedia.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://en.wikipedia.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 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. | | colspan="2"| Below example is for advanced users, showing how we can specify other [[Cascading Style Sheets|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 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: | 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| ]] | <!-- Categories go here and interwikis go in Wikidata. --> | ||
[[Category:Userboxes|*]] | |||
[[Category:User namespace templates]] | |||
[[Category:Wikipedia metatemplates]] | |||
}}</includeonly> | }}</includeonly> |