Template:MiiversePostRow: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(I think I edited it right)
(Let's see if this works…)
Tag: Mobile edit
Line 6: Line 6:
!Link
!Link
</noinclude>|-{{#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)}}"}}
</noinclude>|-{{#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)}}"}}
|rowspan={{#expr:1+{{#if:{{{reply|{{{reply1|}}}}}}|1|0}}+{{#if:{{{reply2|}}}|1|0}}+{{#if:{{{reply3|}}}|1|0}}}}|{{{date}}}
|rowspan={{#expr:1+{{#if:{{{reply|{{{reply1|}}}}}}|1|0}}+{{#if:{{{reply2|}}}|1|0}}+{{#if:{{{reply3|}}}|1|0}}+{{#if:{{{reply|{{{reply4|}}}|1|0}}+{{#if:{{{reply5|}}}|1|0}}+{{#if:{{{reply6|}}}|1|0}}}}|{{{date}}}
|rowspan={{#if:{{{replyimage|}}}{{{reply1image|}}}{{{reply2image|}}}{{{reply3image|}}}|1|{{#expr:1+{{#if:{{{reply|{{{reply1|}}}}}}|1|0}}+{{#if:{{{reply2|}}}|1|0}}+{{#if:{{{reply3|}}}|1|0}}}}}} style="text-align:center"|[[Image:{{{image}}}|100x50px]]
|rowspan={{#if:{{{replyimage|}}}{{{reply1image|}}}{{{reply2image|}}}{{{reply3image|}}}{{{reply4image|}}}{{{reply5image|}}}{{{reply6image|}}}|1|{{#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}}}}}} style="text-align:center"|[[Image:{{{image}}}|100x50px]]
|{{{text}}}
|{{{text}}}
|rowspan={{#expr:1+{{#if:{{{reply|{{{reply1|}}}}}}|1|0}}+{{#if:{{{reply2|}}}|1|0}}+{{#if:{{{reply3|}}}|1|0}}}}|{{{notes|&mdash;}}}
|rowspan={{#expr:1+{{#if:{{{reply|{{{reply1|}}}}}}|1|0}}+{{#if:{{{reply2|}}}|1|0}}+{{#if:{{{reply3|}}}|1|0}}+{{#if:{{{reply4|}}}|1|0}}+{{#if:{{{reply4|}}}|1|0}}+{{#if:{{{reply5|}}}|1|0}}+{{#if:{{{reply6|}}}|1|0}}}}|{{{notes|&mdash;}}}
|rowspan={{#expr:1+{{#if:{{{reply|{{{reply1|}}}}}}|1|0}}+{{#if:{{{reply2|}}}|1|0}}+{{#if:{{{reply3|}}}|1|0}}}} style="text-align:center"|[[Image:Miiverse Icon.png|16px|link=https://miiverse.nintendo.net/posts/{{{postID}}}]]
|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}}}} style="text-align:center"|[[Image:Miiverse Icon.png|16px|link=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|}}}}}}|{{!}}[[Image:{{{replyimage|{{{reply1image|}}}}}}|100x50px]]}}
{{#if:{{{replyimage|{{{reply1image|}}}}}}|{{!}}[[Image:{{{replyimage|{{{reply1image|}}}}}}|100x50px]]}}
Line 31: Line 31:
<noinclude>
<noinclude>
|}
|}
==Usage==
==Usage==
Intended for [[List of Director's Room Miiverse posts|this article]], though can in theory be used for any sort of Miiverse post listing.
Intended for [[List of Director's Room Miiverse posts|this article]], though can in theory be used for any sort of Miiverse post listing.

Revision as of 11:30, December 22, 2014

Date Image Comment Notes Link
{{{date}}} [[Image:{{{image}}}|100x50px]] {{{text}}} Miiverse Icon.png

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.