Template:Box: Difference between revisions
From Fanon Wiki
(Created page with "<center> {|style="padding:2px; background-color:#ceb; {{round}} border:2px solid #cbd; width: {{{2|auto}}}; {{{3|}}}" |- {{#if:{{{li|}}}| {{!}} <div align="left">[[File:{{{li}}}|{{{lis|50px}}}]]</div>}} |{{#if:{{{class|}}}|class="{{{class}}}"{{!}}}} <center>{{{1}}}</center> {{#if:{{{ri|}}}| {{!}} <div align="right">[[File:{{{ri}}}|{{{ris|{{{lis|50px}}}}}}]]</div>}} |}</center><noinclude> {{otheruses|the template for message boxes|the template indicating the cardboard...") |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<center> | <center> | ||
{|style="padding:2px; background-color:# | {|style="padding:2px; background-color:#d6d6d6; {{round}} border:2px solid #cbd; width: {{{2|auto}}}; {{{3|}}}" | ||
|- | |- | ||
{{#if:{{{li|}}}| {{!}} <div align="left">[[File:{{{li}}}|{{{lis|50px}}}]]</div>}} | {{#if:{{{li|}}}| {{!}} <div align="left">[[File:{{{li}}}|{{{lis|50px}}}]]</div>}} | ||
Line 7: | Line 7: | ||
{{#if:{{{ri|}}}| {{!}} <div align="right">[[File:{{{ri}}}|{{{ris|{{{lis|50px}}}}}}]]</div>}} | {{#if:{{{ri|}}}| {{!}} <div align="right">[[File:{{{ri}}}|{{{ris|{{{lis|50px}}}}}}]]</div>}} | ||
|}</center><noinclude> | |}</center><noinclude> | ||
==Info== | ==Info== | ||
This is the base template for a box note. It places a box in an article in the standard | This is the base template for a box note. It places a box in an article in the standard Fanon Wiki style. Normally, other templates expand this one. | ||
==Parameters== | ==Parameters== | ||
Line 69: | Line 67: | ||
| {{box|A red text box.||color: red;}} | | {{box|A red text box.||color: red;}} | ||
|- | |- | ||
| <pre>{{box|A | | <pre>{{box|A box with the wiki logo.|li=Logo mono black.png}}</pre> | ||
|li= | | {{box|A box with the wiki logo.|li=Logo mono black.png}} | ||
| {{box|A | |||
|} | |} | ||
[[Category:Box templates| ]]</noinclude> | [[Category:Box templates| ]]</noinclude> |
Latest revision as of 20:26, 5 May 2022
|
Info
This is the base template for a box note. It places a box in an article in the standard Fanon Wiki style. Normally, other templates expand this one.
Parameters
Parameter | Mandatory | Default | Purpose | Detailed description |
---|---|---|---|---|
1 | Yes | Content | The box's content. | |
2 | No | auto | Width | The box's width, used in the CSS. |
3 | No | Extra style | Any extra CSS rules. | |
li | No | Left image | Image file name to use on the left of the message, extension included. | |
ri | No | Right image | Image file name to use on the right of the message, extension included. | |
lis | No | 50px | Left image size | Size of the image on the left. |
ris | No | lis | Right image size | Size of the image on the right. |
class | No | CSS class | CSS class for the content of the box (text only). | |
boxclass | No | CSS class | CSS class for the box itself. |
Skeleton
{{box |<content> |<width>|<extra style> |li=<left image>|ri=<right image>|lis=<left image size>|ris=<right image size> |class=<content class> |boxclass=<box class> }}
Examples
Code | Result | ||
---|---|---|---|
{{box|A normal box.}} |
| ||
{{box|A long box.|300px}} |
| ||
{{box|A box of red text.||color: red;}} |
| ||
{{box|A box with the wiki logo.|li=Logo mono black.png}} |
|