Template:MP News: Difference between revisions

From Inkipedia, the Splatoon wiki
(Specified style sheet)
(Actually, that did work. This adds link anchors.)
Tag: Manual revert
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Main page featured/styles.css" />
<includeonly><div id="{{{date}}}" class="bubbleboxbg-darker" style="border: 2px solid #ffffff; border-radius: 8px; padding: 4px; margin-top: 2px;">'''{{date|{{{date}}}}}'''
<div style="flex: 9999 0 0px">
<div class="lightmode" style="height:100%">
{{BubbleBox|background=bubbles|border={{SiteColor|Generic}}|style=flex: 9999 0 0px;height:calc(100% - 58px)|open}}
<div style="background-color: rgba(255, 255, 255, 0.65); border: 0.125rem solid #ffffff; border-radius: .5rem; text-align: center; font-size: 1.25rem;">'''{{{header}}}'''</div>
<div style="background-color: rgba(255, 255, 255, 0.5); border: 0.125rem solid #ffffff; border-radius: .5rem; padding: .25rem; margin-top: 0.125em;">'''{{date|{{{item 1 date}}}}}'''


{{{item 1 content}}}
{{{content}}}
</div>
</div></includeonly><noinclude>
For use with [[Template:MP News Start]] and [[Template:MP News End]].


{{#if: {{{item 2 date|}}} |<div style="background-color: rgba(255, 255, 255, 0.5); border: 0.125rem solid #ffffff; border-radius: .5rem; padding: .25rem; margin-top: 0.125em;">'''{{date|{{{item 2 date}}}}}'''
{{{item 2 content}}}
</div>}}</div>
</div>
<div class="darkmode" style="display:none;height:100%">
<div style="border: 2px solid #577100; border-radius: 8px; padding: 10px;flex: 9999 0 0px;height:calc(100% - 24px)">
<div style="background-color: rgba(255, 255, 255, 0.2); border: 0.125rem solid #577100; border-radius: .5rem; text-align: center; font-size: 1.25rem;">'''{{{header}}}'''</div>
<div style="border: 0.125rem solid #577100; border-radius: .5rem; padding: .25rem; margin-top: 0.125em;">'''{{date|{{{item 1 date}}}}}'''
{{{item 1 content}}}
</div>
{{#if: {{{item 2 date|}}} |<div style="background-color: rgba(255, 255, 255, 0.5); border: 0.125rem solid #ffffff; border-radius: .5rem; padding: .25rem; margin-top: 0.125em;">'''{{date|{{{item 2 date}}}}}'''
{{{item 2 content}}}
</div>}}</div>
</div>
</div>
</includeonly><noinclude>
For use with [[Main Page/Featured]].
== Parameters ==
{| class="wikitable"
|-
! 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.
|}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>

Latest revision as of 07:11, 5 March 2024