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
m lol
No edit summary
Line 1: Line 1:
<includeonly><div style="width:{{{width|350}}}px; box-sizing:border-box; border:1px solid {{{bordercolor|#34345c}}}; color:{{{textcolor|#000000}}};">
<includeonly><div style="width:{{{width|350}}}px; box-sizing:border-box; border:1px solid {{{bordercolor|#34345c}}}; color:{{{textcolor|#000000}}};">
<div style="background:{{{headercolor|#ababff}}}; color:{{{headtextcolor|#000000}}}; padding:6px 8px; border-bottom:1px solid {{{bordercolor|#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; overflow-wrap:anywhere;">{{#if:{{{title|}}}|{{{title}}}|{{{1|Article box}}}}}</div>
{{#if:{{{title|}}}|{{{title}}}|[[{{{1|Main Page}}}|{{{1|Main Page}}}]]}}
<div style="height:{{{height|300}}}px; overflow:auto; padding:10px; box-sizing:border-box; background-color:{{{background|#ffffff}}}; color:{{{textcolor|#000000}}};">
</div>
{{#ifexist:{{{1|Main Page}}}|{{{{{1|Main Page}}}}}|''Page not found: {{{1|Main Page}}}''}}
<div style="height:{{{height|300}}}px; overflow:auto; padding:10px; background:{{{background|#ffffff}}}; color:{{{textcolor|#000000}}};">
{{ {{{1|Main Page}}} }}
</div>
</div>
</div></includeonly><noinclude>
</div></includeonly><noinclude>
== Usage ==
== Articlebox documentation ==
 
Displays a page inside a scrollable box.
 
=== Usage ===
<pre>
<pre>
{{Articlebox
{{Articlebox
|Page name
|Page name
|title=My custom heading
|title=My heading
|width=350
|width=350
|height=250
|height=250
|headercolor=#333333
|headercolor=#34345c
|headtextcolor=#ffffff
|headtextcolor=#ffffff
|background=#eeeeee
|background=#eeeeee
Line 21: Line 23:
}}
}}
</pre>
</pre>
Parameters:
* 1 — page title to display
* title — optional heading
* width — width in pixels (default 350)
* height — content height in pixels (default 300)
* headercolor — header background colour
* headtextcolor — header text colour
* background — content background colour
* textcolor — content text colour
* bordercolor — border colour
</noinclude>
</noinclude>

Revision as of 00:54, 24 October 2026

Articlebox documentation

Displays a page inside a scrollable box.

Usage

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

Parameters:

  • 1 — page title to display
  • title — optional heading
  • width — width in pixels (default 350)
  • height — content height in pixels (default 300)
  • headercolor — header background colour
  • headtextcolor — header text colour
  • background — content background colour
  • textcolor — content text colour
  • bordercolor — border colour