ទំព័រគំរូ:NBbox/doc
This is a documentation subpage for ទំព័រគំរូ:NBbox. It may contain usage information, categories and other content that is not part of the original ទំព័រគំរូ page. |
Use
កែប្រែThis template creates a floating box linking to a designated Notice Board.
The syntax for this template is:
{{WPbox|name|target|image=|height=|size=|link=|alt=|label=|align=|boxsize=|margin=|left=}}
where:
- name is the notice board name
- name=Directory (default)
- target is the notice board location
- name=Wikipedia:Regional notice boards (default)
- image= an optional file name parameter of the image to display
- The default image file names are stored in the Template:Portal/Images files.
- Placing the 11 characters {{!}}border at the end of the image file name will display a one pixel border around the image.
- height= an optional integer parameter representing the maximum height of the image in pixels.
- height=26 (default with image border)
- height=28 (default without image border)
- size= an optional integer parameter representing the maximum width of the image in pixels.
- The width defaults to the height times the image aspect ratio.
- link= an optional link target for the image.
- The image link defaults to the image file.
- alt= an optional alternate text for the image
- The alternate text is available to visually impaired readers.
- label= an optional link label.
- The link label defaults to name<br/>notice board.
- align= an optional link label alignment parameter.
- align=left
- align=center (default)
- align=right
- boxsize= an optional integer representing the width of the link box in pixels.
- The default boxsize is the minimum width to accommodate the image and text.
- boxsize=200 (maximum boxsize)
- margin= an optional margin around the box. The margins can be customized using |margin=top right bottom left (e.g., |margin=0.25em 0 0.25em 0.25em) or removed using |margin=0.
- left= an optional parameter to float the link box to the left instead of the right.
- left=no (default)
- left=yes
Restriction
កែប្រែThis template may only be placed on pages with a prefix such as Category:, Template:, Wikipedia:, or User:. This template should not be placed in the main article namespace {{NS:0}}.
Examples
កែប្រែ{{NBbox}} creates:
{{NBbox|United States|Wikipedia:U.S. Wikipedians' notice board}} creates:
{{NBbox|Portuguese-speaking|Wikipedia:Portuguese-speaking Wikipedians' notice board|align=left}} creates:
See also
កែប្រែThis template is compatible with Template:Portal, Template:WPbox, and Template:WGbox.