• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.55
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Lbox

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]

Contents

  • 1 Use
  • 2 Placement
  • 3 Example
  • 4 See also

Use

This linkbox template creates a floating linkbox to a designated target.

The syntax for this template is:

{{lbox|var1|var2|image=Image|size=Size|border=yes|boxsize=Boxsize|break=yes|left=yes|margin=Margin|link=Target|alt=Alt text}}

where:

  • var1 is the link target.
  • var2 is the link description.
    • The default link description is the link target.
  • image= The image to display.
    • The default image is File:Globe.png.
  • size= An integer representing the width of the image in pixels.
    • The default image size is the lesser width of 32 pixels or 28 pixels times the image aspect ratio.
  • border= Whether to add a one-pixel border around the image.
    • The default is no border.
  • boxsize= An integer representing the width of the link box in pixels.
    • The default boxsize is the minimum width to accommodate the image and text.
  • left= Whether to float the link box to the left instead of to the right
    • The default is float right.
  • margin= The 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.
    • The default margin is 0.5em.
  • link= The link target for the image.
    • The default image link is the image file.
  • alt= The alternate text for the image (for visually impaired readers.)
    • The default alternate text is "logo".

Placement

This template is designed to be placed in the See also section of articles.

Example

logo South
America

{{lbox|South America|South<br/>America|image=South America.svg}} creates:

See also

  • This template is similar to Template:Linkbox and Template:Minilink.
The above documentation is transcluded from Template:Lbox/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Lbox&oldid=22710"
Categories:
  • Internal link templates
  • Box templates
Last edited on 11 February 2022, at 19:13

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 11 February 2022, at 19:13.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop