User:PetraMagna/Sandbox: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
PetraMagna (talk | contribs) (Created page with "<div class="fp-item fp-item-current-gacha"> <div class="fp-item-header">Current Gacha Banner <tabs style="display:inline;" plain> <tab name="JP"> {{#cargo_query: tables = banners | fields = Image, Rateup_character=Rateup_character, Limited, date_format(Start_date, '%m/%d')=sdate, date_format(End_date, '%m/%d')=edate | where = End_date > NOW() AND Start_date < DATE_ADD(NOW(), INTERVAL 2 DAY) AND Server="JP" | order by = Start_date DESC, Id ASC | format = template | temp...") |
PetraMagna (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
WIP. Todo: |
|||
<div class="fp-item fp-item-current-gacha"> |
|||
* Templatize. Too much work. Maybe just use a bot to autogenerate the table. |
|||
<div class="fp-item-header">Current Gacha Banner |
|||
* Selfie image class with round borders (need example image). |
|||
<tabs style="display:inline;" plain> |
|||
* Use png image as background. Low priority. Need to get past MW's CSS sanitizer? |
|||
<tab name="JP"> |
|||
* Adjustment to padding, font size, etc. |
|||
{{#cargo_query: |
|||
tables = banners |
|||
<templatestyles src="MomoTalk/style.css" /> |
|||
| fields = Image, Rateup_character=Rateup_character, Limited, date_format(Start_date, '%m/%d')=sdate, date_format(End_date, '%m/%d')=edate |
|||
<div class="momotalk-container"> |
|||
| where = End_date > NOW() AND Start_date < DATE_ADD(NOW(), INTERVAL 2 DAY) AND Server="JP" |
|||
<div class="momotalk-top"><span class="momotalk-logo-text">MomoTalk</span><span class="momotalk-close">✕</span></div> |
|||
| order by = Start_date DESC, Id ASC |
|||
<table class="momotalk-table"> |
|||
| format = template |
|||
<tr><td class="momotalk-profile-picture">[[File:Shiroko.png|50px]]</td><td><div class="momotalk-student-name">Shiroko dddd</div><div class="momotalk-student-line-container"><div class="momotalk-student-line momotalk-dialog-text">Test1</div></div></td></tr> |
|||
| template = FrontpageBanner |
|||
<tr><td></td><td><div class="momotalk-student-line-container"><div class="momotalk-student-line momotalk-dialog-text">Test1</div></div></td></tr> |
|||
| named args = yes |
|||
<tr><td class="momotalk-profile-picture">[[File:Shiroko.png|50px]]</td><td><div class="momotalk-student-line-container">[[File:Shiroko_full.png|200px]]</div></td></tr> |
|||
}} |
|||
<tr><td></td><td><div class="momotalk-sensei-line momotalk-dialog-text">Test2</div></td></tr> |
|||
</tab> |
|||
<tr><td></td><td><div class="momotalk-reply-container"><div class="momotalk-reply-header">Reply</div><hr><div class="momotalk-reply-option">What's up?</div><div class="momotalk-reply-option">Hello?</div></div></td></tr> |
|||
<tab name="GL"> |
|||
<tr><td></td><td><div class="momotalk-relationship-story-container"><div class="momotalk-relationship-story-header">Relationship Event</div><hr><div class="momotalk-relationship-story-option">To Shiroko's Relationship Story</div></div></td></tr> |
|||
{{#cargo_query: |
|||
</table> |
|||
| fields = Image, Rateup_character=Rateup_character, Limited, date_format(Start_date, '%m/%d')=sdate, date_format(End_date, '%m/%d')=edate |
|||
| where = End_date > NOW() AND Start_date < DATE_ADD(NOW(), INTERVAL 2 DAY) AND Server="GL" |
|||
| order by = Start_date DESC, Id ASC |
|||
| format = template |
|||
| template = FrontpageBanner |
|||
| named args = yes |
|||
}} |
|||
</tab> |
|||
</tabs> |
|||
</div> |
|||
</div> |
</div> |
Revision as of 07:49, 4 December 2023
WIP. Todo:
- Templatize. Too much work. Maybe just use a bot to autogenerate the table.
- Selfie image class with round borders (need example image).
- Use png image as background. Low priority. Need to get past MW's CSS sanitizer?
- Adjustment to padding, font size, etc.