Template:MiiversePostRow: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (No need for style-center when it can be applied to files directly. Fixed issue of reply images not centering, most noticeable on archive 4. I have a plan for linking to archives, but I want to make sure they're all correct) |
(Linking to archive.org. I checked *every* post and they all work. Avoiding archiverse because it seems to make a lot of requests to archive.org, leading to long loads and archive.org yelling about too many requests. Only 2 posts by SmashGuide don't show replies/images, but can be seen in other revisions. Changing it to 201601 fixes that but I'm not going back through everything to make sure those work and some had Cyrillic in a random sample of those revisions) |
||
(One intermediate revision by the same user not shown) | |||
Line 10: | Line 10: | ||
|{{{text}}} | |{{{text}}} | ||
|rowspan={{#expr:1+{{#if:{{{reply|{{{reply1|}}}}}}|1|0}}+{{#if:{{{reply2|}}}|1|0}}+{{#if:{{{reply3|}}}|1|0}}+{{#if:{{{reply4|}}}|1|0}}+{{#if:{{{reply5|}}}|1|0}}+{{#if:{{{reply6|}}}|1|0}}}}|{{{notes|—}}} | |rowspan={{#expr:1+{{#if:{{{reply|{{{reply1|}}}}}}|1|0}}+{{#if:{{{reply2|}}}|1|0}}+{{#if:{{{reply3|}}}|1|0}}+{{#if:{{{reply4|}}}|1|0}}+{{#if:{{{reply5|}}}|1|0}}+{{#if:{{{reply6|}}}|1|0}}}}|{{{notes|—}}} | ||
|rowspan={{#expr:1+{{#if:{{{reply|{{{reply1|}}}}}}|1|0}}+{{#if:{{{reply2|}}}|1|0}}+{{#if:{{{reply3|}}}|1|0}}+{{#if:{{{reply4|}}}|1|0}}+{{#if:{{{reply5|}}}|1|0}}+{{#if:{{{reply6|}}}|1|0}}}} | |rowspan={{#expr:1+{{#if:{{{reply|{{{reply1|}}}}}}|1|0}}+{{#if:{{{reply2|}}}|1|0}}+{{#if:{{{reply3|}}}|1|0}}+{{#if:{{{reply4|}}}|1|0}}+{{#if:{{{reply5|}}}|1|0}}+{{#if:{{{reply6|}}}|1|0}}}} |[[File:Miiverse Icon.png|16px|center|link=https://web.archive.org/web/2016/https://miiverse.nintendo.net/posts/{{{postID}}}]] | ||
|-{{#if:{{{bg|}}}|style="background:{{#switch:{{lc:{{{bg|}}}}}|newcomer=rgba(255,0,0,0.25)|veteran=rgba(255,127,0,0.25)|stage=rgba(0,255,0,0.25)|assist=rgba(0,0,255,0.25)|move=rgba(255,0,255,0.25)|item=rgba(255,255,0,0.25)|other=rgba(0,255,255,0.25)}}"}} | |-{{#if:{{{bg|}}}|style="background:{{#switch:{{lc:{{{bg|}}}}}|newcomer=rgba(255,0,0,0.25)|veteran=rgba(255,127,0,0.25)|stage=rgba(0,255,0,0.25)|assist=rgba(0,0,255,0.25)|move=rgba(255,0,255,0.25)|item=rgba(255,255,0,0.25)|other=rgba(0,255,255,0.25)}}"}} | ||
{{#if:{{{replyimage|{{{reply1image|}}}}}}|{{!}}[[File:{{{replyimage|{{{reply1image|}}}}}}|100x50px|center]]}} | {{#if:{{{replyimage|{{{reply1image|}}}}}}|{{!}}[[File:{{{replyimage|{{{reply1image|}}}}}}|100x50px|center]]}} |
Latest revision as of 13:36, April 2, 2022
Date | Image | Comment | Notes | Link |
---|---|---|---|---|
{{{date}}} | [[File:{{{image}}}|100x50px|center]] | {{{text}}} | — |
Usage
Intended for this article, though can in theory be used for any sort of Miiverse post listing.
bg = "newcomer", "veteran", "stage", "assist", "move", "item", or "other" - colour-codes row (assist is for both ATs and Pokémon) date = date of post text = text of post image = image of post (just the filename) postID = the URL fragment that comes after /posts/ notes = notes such as "at the time, the community thought it meant this" reply = reply, if there is one replyimage = image of reply, if there is one reply1, reply2, reply3 and so on to reply6 = for multiple replies reply1image, reply2image, reply3image and so on to reply6image
Note that:
- ...it is assumed that an image cannot exist without accompanying text
- ...it is assumed that either the original post is the only image, or each post has its own image
- ...things may or may not work if a later reply is specified but an earlier one is not.