Template:CharacterBox: Difference between revisions
Created page with "<div style="text-align: center; {{#if:{{{l|}}}|line-height: {{{l}}}| }}"> <div style="background: #{{{b|FFF}}}; padding: {{{p|5px}}}; border-radius: 10px; margin: 2px; overflow: hidden; height: {{{h|50px}}}; {{{css}}}"> <div>[[File:{{{1|Ash JN.png}}}|{{{2|80px}}}|center|link={{{3}}}]]</div> </div>[[{{{3}}}|{{{4|{{{3}}}}}}]]</div><noinclude> {{Documentation}} </noinclude>" |
mNo edit summary |
||
Line 2: | Line 2: | ||
<div style="background: #{{{b|FFF}}}; padding: {{{p|5px}}}; border-radius: 10px; margin: 2px; overflow: hidden; height: {{{h|50px}}}; {{{css}}}"> | <div style="background: #{{{b|FFF}}}; padding: {{{p|5px}}}; border-radius: 10px; margin: 2px; overflow: hidden; height: {{{h|50px}}}; {{{css}}}"> | ||
<div>[[File:{{{1|Ash JN.png}}}|{{{2|80px}}}|center|link={{{3}}}]]</div> | <div>[[File:{{{1|Ash JN.png}}}|{{{2|80px}}}|center|link={{{3}}}]]</div> | ||
</div>[[{{{3}}}|{{{4|{{{3}}}}}}]]</div><noinclude> | </div>[[:{{{3}}}|{{{4|{{{3}}}}}}]]</div><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 19:34, 30 June 2024
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
This template is used on Browse:Characters to create the character image boxes. It is used within {{ColorBox}}
and {{ContentGrid}}
templates to set the correct width.
Syntax
The following syntax is used (see TemplateData below for full parameters):
{{CharacterBox| 1 | 2 | 3 | 4 | l= | b= | p= | h= | css= }}
TemplateData
Character boxes used within Browse:Characters
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | 1 | Image name (include file extension, don't include "File:")
| File | required |
Image size | 2 | Size of the image (Must include "px")
| String | required |
Link | 3 | The article that the image links to.
| Page name | required |
Link label | 4 | (Optional) Text to be displayed instead of article title | String | optional |
Line height | l | (Optional) Sets the line height of the link text (use if the link falls over multiple lines) | String | optional |
Background | b | The background color of the box (don't include "#")
| String | suggested |
Padding | p | The padding of the box (Must include "px")
| String | suggested |
Height | h | The height of the box (Must include "px")
| String | suggested |
Other CSS | css | Any other CSS to include
| String | optional |