Module:Icon box/doc
| This is a documentation subpage for Module:Icon box. It may contain usage information, categories and other content that is not part of the original module page. |
| This Lua module is used on approximately 260,000 pages. To avoid major disruption and server load, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
| This module depends on the following other modules: |
Create a compact box with a list of icons and links, suitable for talk page banners. For mainspace usage, see {{Portal}} instead.
Usage
[edit]{{#invoke:Icon box|main|portal1=|portal2=|...|project1=|project2=|...|noticeboard1=|noticeboard2=|...}}
- Create a box with a optional list of portals, projects, and noticeboards
Specialized usage
[edit]{{#invoke:Icon box|portal|portal1|portal2|...}}
- Create box with a list of portals
{{#invoke:Icon box|wikiproject|projectname1|projectname2|...}}
- Create box with a list of wikiprojects
{{#invoke:Icon box|noticeboard|projectname1|projectname2|...}}
- Create box with a list of notice boards (usually WikiProject talk pages)
{{#invoke:Icon box|all|projectname}}
- Create box with a Portal, WikiProject, and Noticeboard/talk page
{{#invoke:Icon box|workgroup|wikiproject|work group}}
- Create box with a link to a work group within a wikiproject
{{#invoke:Icon box|taskforce|wikiproject|task force}}
- Create box with a link to a task force within a wikiproject
Named arguments
[edit]- align, float
- how to place box on page, default "right"
- color
- background color for box
- size
- font size. If bare number, interpreted as pt
- lh
- line height
- width
- width of box. If bare number, interpreted as px
- talign
- alignment of link text, defaults to "center"
- image
- (all, workgroup, and taskforce only, no namespace prefix) override default image
- ilink
- (all, workgroup, and taskforce only) override link in icon