साँचा:Userbox/doc
|
|
यह प्रलेखन उपपृष्ठ साँचा:Userbox के लिए है। इसमें उपयोग विधि की जानकारी, श्रेणियाँ और वह वस्तुएँ हैं जो कि असली साँचा के पृष्ठ पर नही हैं। |
मोड्यूल:Lua_banner में पंक्ति 37 पर लुआ त्रुटि: attempt to index local 'maybeSandbox' (a nil value)।
Usage
[स्रोत सम्पादित करौ]{{Userbox
| bodyclass = <!--Adds an HTML class attribute to the entire template's HTML table, to allow for styling, emission of microformats, etc.-->
| border-c = <!--border color (default=id-c)-->
| border-s = <!--border width in pixels (default=1)-->
| float = <!--left|right|none (default=left)-->
| id = <!--id image or text (standard height=x45px)-->
| id-class = <!--Adds an HTML class attribute to the "id" HTML table cell, to allow for styling, emission of microformats, etc.-->
| id-a = <!--id horizontal alignment left/center/right/justify (default=center)-->
| id-c = <!--id background color (default=#d0d0d0)-->
| id-fc = <!--id font color (default=black)-->
| id-h = <!--id box height in pixels (default=45)-->
| id-lh = <!--id line height (default=1.25em)-->
| id-op = <!--id other CSS parameters-->
| id-p = <!--id cell padding (default=0 1px 0 0)-->
| id-s = <!--id text size in points (default=14)-->
| id-w = <!--id box width in pixels (default=45)-->
| info-class = <!--Adds an HTML class attribute to the "info" HTML table cell, to allow for styling, emission of microformats, etc.-->
| info = <!--info text or image-->
| info-a = <!--info horizontal alignment left/center/right/justify (default=left)-->
| info-c = <!--info background color (default=#e0e0e0)-->
| info-fc = <!--info font color (default=black)-->
| info-lh = <!--info line height (default=1.25em)-->
| info-op = <!--info other CSS parameters-->
| info-p = <!--info padding (default=0 4px 0 4px)-->
| info-s = <!--info text size in points (default=8)-->
| usercategory = <!--user category (optional)-->
| usercategory2 = <!--user category (optional)-->
| usercategory3 = <!--user category (optional)-->
| nocat = <!--block page category declarations; see [[w:WP:NOCAT]] (default=false)-->
}}
- All parameters are optional
- Images should normally be scaled to x45px or less.
TemplateData
[स्रोत सम्पादित करौ]TemplateData for Userbox
This template can be used to quickly create a userbox for display on a user's user page without having to know HTML or Wikitable syntax.
| पैरामीटर | विवरण | प्रकार | स्थिति | |
|---|---|---|---|---|
| Body – Class Attribute | bodyclass | Adds an HTML class attribute to the entire template’s HTML table, to allow for styling, emission of microformats, etc. | स्ट्रिंग | वैकल्पिक |
| Body – Border Color | border-c | border color
| स्ट्रिंग | वैकल्पिक |
| Body – Border Width | border-s | border width in pixels
| संख्या | वैकल्पिक |
| Body – Float | float | left|right|none
| स्ट्रिंग | वैकल्पिक |
| ID | id | id image or text | पंक्ति | सुझावित |
| ID – Class Attribute | id-class | Adds an HTML class attribute to the “id” HTML table cell, to allow for styling, emission of microformats, etc. | स्ट्रिंग | वैकल्पिक |
| ID – Background Color | id-c | id background color
| स्ट्रिंग | वैकल्पिक |
| ID – Text Color | id-fc | id font color
| स्ट्रिंग | वैकल्पिक |
| ID – Box Height | id-h | id box height in pixels
| संख्या | वैकल्पिक |
| ID – Box Width | id-w | id box width in pixels
| संख्या | वैकल्पिक |
| ID – Padding | id-p | id cell padding
| स्ट्रिंग | वैकल्पिक |
| ID – Text Size | id-s | id text size in points
| संख्या | वैकल्पिक |
| ID – CSS line-height | id-lh | id line height
| स्ट्रिंग | वैकल्पिक |
| ID – Horizontal Alignment | id-a | id horizontal alignment left/center/right/justify
| स्ट्रिंग | वैकल्पिक |
| ID – Other CSS Parameters | id-op | id other CSS parameters | स्ट्रिंग | वैकल्पिक |
| Info | info | info text or image | सामग्री | आवश्यक |
| Info – Class Attribute | info-class | Adds an HTML class attribute to the “info” HTML table cell, to allow for styling, emission of microformats, etc. | स्ट्रिंग | वैकल्पिक |
| Info – Background Color | info-c | info background color
| स्ट्रिंग | वैकल्पिक |
| Info – Text Color | info-fc | info font color
| स्ट्रिंग | वैकल्पिक |
| Info – Padding | info-p | info padding
| स्ट्रिंग | वैकल्पिक |
| Info – Text Size | info-s | info text size in points
| संख्या | वैकल्पिक |
| Info – CSS line-height | info-lh | info line height
| स्ट्रिंग | वैकल्पिक |
| Info – Horizontal Alignment | info-a | info horizontal alignment left/center/right/justify
| स्ट्रिंग | वैकल्पिक |
| Info – Other CSS Parameters | info-op | info other CSS parameters | स्ट्रिंग | वैकल्पिक |
| User Category 1 | usercategory | user category (optional) | स्ट्रिंग | वैकल्पिक |
| User Category 2 | usercategory2 | user category (optional) | स्ट्रिंग | वैकल्पिक |
| User Category 3 | usercategory3 | user category (optional) | स्ट्रिंग | वैकल्पिक |
| No Category? | nocat | block page category declarations (see WP:NOCAT) | बूलियन | वैकल्पिक |