No edit summary |
No edit summary |
||
| (12 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>[[Category:Box Template]]</includeonly> | <includeonly>[[Category:Box Template]]</includeonly> | ||
{{Template|Imagebox}} is a variation of {{Template|Box}}. It generates image | {{Template|Imagebox}} is a variation of {{Template|Box}}. It generates image slideshows with an icon in the upper left corner. | ||
==Usage== | ==Usage== | ||
It accepts one {{Parameter|mandatory|string}} and three {{Parameter|optional}}s. | It accepts one {{Parameter|mandatory|string}} and three {{Parameter|optional}}s. | ||
* {{Code|1}} is the image | * {{Code|1}} is a semi-colon delimited list of the image files to be included in the box. | ||
* {{code|width}} (defaults to {{Code|300px}}) | * {{code|width}} (defaults to {{Code|300px}}) | ||
* {{Code|color}} (default: {{Code|blue}}) controls the color of the background. The valid options are: {{Box/Color}} | * {{Code|color}} (default: {{Code|blue}}) controls the color of the background. The valid options are: {{Box/Color}} | ||
==Return== | ==Return== | ||
{{Code|<nowiki>{{Imagebox|Scire-footprint-overlay.webp}}</nowiki>}} returns: {{Return|{{Imagebox|Scire-footprint-overlay.webp}}{{Lorem Ipsum}}}} | |||
{{Code|<nowiki>{{Imagebox|Scire-footprint-overlay.webp|float=left}}</nowiki>}} returns the image box on the left. | |||
{{Code|<nowiki>{{Imagebox|shirayuri-jacket-p.png; shirayuri-jumpsuit-p.png; shirayuri-student_violinist-p.png|color=yellow}}</nowiki>}} returns the box on the right: {{Return|{{Imagebox|Scire-footprint-overlay.webp|float=left}}{{Lorem Ipsum}}{{Imagebox|shirayuri-jacket-p.png; shirayuri-jumpsuit-p.png; shirayuri-student_violinist-p.png|color=yellow}}{{Lorem Ipsum}}}} | |||
Latest revision as of 15:00, 9 January 2025
Template:Imagebox is a variation of Template:Box. It generates image slideshows with an icon in the upper left corner.
Usage
It accepts one mandatory string parameter and three optional parameters.
1is a semi-colon delimited list of the image files to be included in the box.width(defaults to300px)color(default:blue) controls the color of the background. The valid options are:
red
green
blue
yellow
purple
cyan
gray
white
Return
{{Imagebox|Scire-footprint-overlay.webp|float=left}} returns the image box on the left.
{{Imagebox|shirayuri-jacket-p.png; shirayuri-jumpsuit-p.png; shirayuri-student_violinist-p.png|color=yellow}} returns the box on the right:
