YEAH WE ARE BACK NIGGA, NIGGA SOYCHECKMARK TRIED TO DDOS OUR SERVER HOST NIGGA

Template:Articlebox: Difference between revisions

From Soypaper wiki
Jump to navigationJump to search
No edit summary
lol
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="width:{{{width|350}}}px; box-sizing:border-box; border:1px solid {{{border|#34345c}}}; color:{{{textcolor|#000}}};">
<includeonly><div style="width:{{{width|350}}}px; box-sizing:border-box; border:1px solid {{{bordercolor|#34345c}}}; color:{{{textcolor|#000000}}};">
<div style="background:{{{headercolor|#ababff}}}; padding:6px 8px; border-bottom:1px solid {{{border|#34345c}}}; font-weight:bold;">
<div style="background-color:{{{headercolor|#ababff}}}; color:{{{headtextcolor|#000000}}}; padding:6px 8px; border-bottom:1px solid {{{bordercolor|#34345c}}}; font-weight:bold;">
[[{{{1|Main Page}}}|{{{title|{{{1|Main Page}}}}}}]]
{{{title|{{{1|Article box}}}}}}
</div>
</div>
<div style="height:{{{height|300}}}px; overflow:auto; padding:10px; background:{{{background|#fff}}};">
<div style="height:{{{height|300}}}px; overflow:auto; padding:10px; box-sizing:border-box; background-color:{{{background|#ffffff}}}; color:{{{textcolor|#000000}}};">
{{ {{{1|Main Page}}} }}
{{ {{{1|Main Page}}} }}
</div>
</div>
</div></includeonly><noinclude>
</div></includeonly><noinclude>
An article box displays another wiki page inside a scrollable container.
== Usage ==
== Usage ==
<pre>
<pre>
{{Articlebox|Page name|width=350|height=300}}
{{Articlebox
|Page name
|title=My heading
|width=350
|height=250
|headercolor=#34345c
|headtextcolor=#ffffff
|background=#eeeeee
|textcolor=#222222
|bordercolor=#555555
}}
</pre>
</pre>
Parameters:
* 1 — page to display (required)
* title — optional header title
* width — box width in pixels (default 350)
* height — box height in pixels (default 300)
* headercolor — header background (default #ababff)
* background — content background (default white)
* textcolor — text colour (default black)
* border — border colour (default #34345c)
</noinclude>
</noinclude>

Latest revision as of 00:55, 24 October 2026

{{Articlebox
|Page name
|title=My heading
|width=350
|height=250
|headercolor=#34345c
|headtextcolor=#ffffff
|background=#eeeeee
|textcolor=#222222
|bordercolor=#555555
}}