Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Userbox/doc: Difference between revisions

Template page
m 1 revision imported
Tags: Mobile edit Mobile web edit Advanced mobile edit
Dream Indigo (talk | contribs)
This isn't Wikipedia, but I am too lazy to remove everything else
 
(2 intermediate revisions by the same user 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://en.wikipedia.org/wiki/Template:Userbox/sandbox]<!--Display http://, but allow possibility of https:// access.-->
** '''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://en.wikipedia.org/wiki/Template:Userbox/WhateverYourNewBoxNameIs]
** '''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 [[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.  
| 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 [[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||
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Userboxes| ]]
[[Category:Userboxes|*]]
[[Category:User namespace templates]]
[[Category:Wikipedia metatemplates]]
}}</includeonly>
}}</includeonly>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.