Info
- Template used on Project: Licensing.
- Creates the different license headers.
- Also creates the right floating image-box for CC licenses, or the image for other licenses.
- Also adds inivisible anchors to the license acronym both as defined and in all lower case.
Syntax
{{Project:Licensing/hbox|<license-shortcut>|<options>}}
Parameter
Param Description 1License shortcut
This is usually the license acronym (without the "cc-" part).
For the full list see the source of Licensing/lsw.
The parameter is not case sensitive.2Multi-purpose parameter
If defined, either an {{image box}} or a right floating image is added.- For the image-box, define the parameter with the common
ibtypecode for infoboxes.
In this case, these areib200orib240. - If the parameter does not contain "ib", an image is assumed.
In this case, two parameters can be passed divided by a semicolon;:- Full filename including file-extension
- Width in pixel, without the unit (optional, defaults to 100)
If this parameter is not defined, no image or image box is created.
3only for the image-box option
By default, the name of the image for the image box is assumed to be the lower case license acronym.
If it is different (or not all lower case), the image can be defined with this parameter.
Full filename with file extension.ncIf defined, suppresses the caption in the image box. otOther descriptive text
Would change the descriptive text from the predefined one, or if undefined.
Probably never ever used.- For the image-box, define the parameter with the common
Examples
- This example section uses TemplateStyles: styles.css
{{Project:Licensing/hbox|by-sa|ib240}}- → Example output is everything between the lines
| CC-BY-SA | → | Attribution-ShareAlike |
{{Project:Licensing/hbox|gpl|GNU.png;120}}- → Example output is everything between the lines

| GPL | → | GNU General Public License |
Dependencies
- Uses the license switch at Licensing/lsw
- Uses {{Image box}} (if parameter 2 is used)
- Uses {{Anchor invisible}}
- Uses class
lic-hboxdefined in TemplatesStyles at Licensing/styles.css - Expects the properly named CC copyright graphics for the image box