Template:Box: Difference between revisions
From Bibliotheca Anonoma
Antonizoon (talk | contribs) (Created page with "<noinclude> <br style="clear:both" /> {{Template:Template}} == Generic box template == Parameters: * '''title''' - The box title. Default: "I am a box" * '''text''' - The box...") |
Antonizoon (talk | contribs) m (Protected "Template:Box" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{Template:Template}} | {{Template:Template}} | ||
This antiquated box template is inherited from the [http://tanasinn.info/wiki/Template:Box Tanasinn.info wiki], and by extension Wikichan. It was likely found in Wikipedia around that time period, so it's a nice throwback: as well as much simpler to install, since MediaWiki's templates have become significantly more complicated with time. | |||
== Generic box template == | == Generic box template == | ||
Parameters: | Parameters: | ||
Line 69: | Line 71: | ||
220px is the de facto standard sidebar width. Don't change it if it is not necessary. | 220px is the de facto standard sidebar width. Don't change it if it is not necessary. | ||
</noinclude> | </noinclude><includeonly>{| cellspacing="0" cellpadding="0" style="border: 1px solid {{{border|rgb(125, 106, 141)}}}; margin: 10px auto; padding: 0pt; text-align: left; width: {{{width|450}}}px; background-color: {{{bg|rgb(224, 190, 253)}}}; color: {{{color|rgb(0, 0, 0)}}}" | ||
<includeonly> | |||
{| cellspacing="0" cellpadding="0" style="border: 1px solid {{{border|rgb(125, 106, 141)}}}; margin: 10px auto; padding: 0pt; text-align: left; width: {{{width|450}}}px; background-color: {{{bg|rgb(224, 190, 253)}}}; color: {{{color|rgb(0, 0, 0)}}}" | |||
| <div style="border-bottom: 1px solid {{{border|rgb(125, 106, 141)}}}; background-color: {{{head_bg|{{{border|rgb(125, 106, 141)}}}}}}; font-size: 1px; height: 8px;"></div> | | <div style="border-bottom: 1px solid {{{border|rgb(125, 106, 141)}}}; background-color: {{{head_bg|{{{border|rgb(125, 106, 141)}}}}}}; font-size: 1px; height: 8px;"></div> | ||
<div class="box_image" style="margin: 5px 8px 8px; float: left; border:{{{img_border|1px solid rgb(127,127,127)}}};"> | <div class="box_image" style="margin: 5px 8px 8px; float: left; border:{{{img_border|1px solid rgb(127,127,127)}}};"> | ||
Line 79: | Line 79: | ||
</div> | </div> | ||
{{{text|I contain lots of interesting things}}} | {{{text|I contain lots of interesting things}}} | ||
|} | |}</includeonly> | ||
</includeonly> |
Latest revision as of 12:34, 5 March 2017
This page is a template. It contains no Bibliotheca Anonoma-related information, but should be used as part of other articles. For more information, read Help:Template.
Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.
Feel free to voice your opinion regarding this template.This antiquated box template is inherited from the Tanasinn.info wiki, and by extension Wikichan. It was likely found in Wikipedia around that time period, so it's a nice throwback: as well as much simpler to install, since MediaWiki's templates have become significantly more complicated with time.
Generic box template
Parameters:
- title - The box title. Default: "I am a box"
- text - The box text. Default: "I contain lots of interesting things "
- image - The image on the left of the box. Default: "BA_Logo_mini_184px.png"
- img_border - CSS for the border around the image. Default: "1px solid rgb(127,127,127)"
- img_width - The images desired width. Default: "100"
- border - Colour for the box border. Default: "rgb(125, 106, 141)"
- head_bg - Colour of the box head. Default: Same as border
- bg - Background colour of the box. Default: "rgb(224, 190, 253)"
- width - Width of the box. Default: "450"
- color - Text color for the box text. Default: "rgb(0, 0, 0)"
Example Box
{{box
|title=Example Box
|text='''This box.''' It is an ''example''.
|image=USA_10191_x10207_Monument_Valley_Luca_Galuzzi_2007.jpg
|img_border=2px solid rgb(224, 190, 253)
|img_width=120
|border=rgb(0, 43, 184)
|head_bg=rgb(231, 165, 86)
|bg=rgb(186, 0, 0)
|width=300
|color=rgb(186, 215, 134)
}}
Will create...
Example Box
This box. It is an example. |
Use in sidebar
<div style="clear:right; float:right; width:220px;"> {{Box
|bg = rgb( 255, 255, 255 )
|head_bg = #DDAACC
|border = #B58BA7
|title = DQN
|text = DQN DQN LOL
|image = jj.png
|img_width = 74
|width = 220
}}</div>
DQN
DQN DQN LOL |
Will look like this ▶
220px is the de facto standard sidebar width. Don't change it if it is not necessary.