Template:MP News: Difference between revisions

From Inkipedia, the Splatoon wiki
(Added support for 3 items)
(Added an adjustable height, and scrollbars if content exceeds the height. Also removed a div tag that seemed to be unused.)
Line 1: Line 1:
<includeonly><templatestyles src="Main page featured/styles.css" />
<includeonly><templatestyles src="Main page featured/styles.css" />
<div style="flex: 9999 0 0px">
{{BubbleBox|background=bubbles|border={{SiteColor|Generic}}|style=flex: 9999 0 0px; height: {{{height|1500px}}}; overflow-y: auto|open}}
{{BubbleBox|background=bubbles|border={{SiteColor|Generic}}|style=flex: 9999 0 0px;height:calc(100% - 58px)|open}}
<div class="bubbleboxbg-lighter" style="border: 0.125rem solid #ffffff; border-radius: .5rem; text-align: center; font-size: 1.25rem;">'''{{{header}}}'''</div>
<div class="bubbleboxbg-lighter" style="border: 0.125rem solid #ffffff; border-radius: .5rem; text-align: center; font-size: 1.25rem;">'''{{{header}}}'''</div>
<div class="bubbleboxbg-darker" style="border: 0.125rem solid #ffffff; border-radius: .5rem; padding: .25rem; margin-top: 0.125em;">'''{{date|{{{item 1 date}}}}}'''
<div class="bubbleboxbg-darker" style="border: 0.125rem solid #ffffff; border-radius: .5rem; padding: .25rem; margin-top: 0.125em;">'''{{date|{{{item 1 date}}}}}'''
Line 15: Line 14:


{{{item 3 content}}}
{{{item 3 content}}}
</div>}}</div>
</div>}}</div></includeonly><noinclude>
</div>
</includeonly><noinclude>
For use with [[Main Page/Featured]].
For use with [[Main Page/Featured]].



Revision as of 00:14, 28 February 2022

For use with Main Page/Featured.

Parameters

Parameter Type Status Description
item <#> date Named Required The date that the item is being saved to the wiki.
  • Currently supports up to two items, named as "item 1 date" and "item 2 date".
  • The second item is optional.
item <#> content Named Required The content.
  • Currently supports up to two items, named as "item 1 content" and "item 2 content".
  • The second item is optional.