Template:post

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(combine columns if there is no transcript)
Line 16: Line 16:
|align=center|{{hcount|}}{{#switch:{{{pic|}}}|=<p style="text-align:center; line-height:136px;font-style:italic;font-size:85%;color: #aaa">({{#switch:{{{video transcript|}}}|=no pic|#default=thumbnail unavailable}})</p>|#default={{#switch:{{{video transcript|}}}|=[[File:{{{pic|}}}{{!}}{{{size|200px}}}{{!}}{{#switch:{{{site|{{PAGENAME}}}}}|Instagram=Post|#default=Tweet}} image for {{{date|Date}}}]]|#default=<div style="background-color: black; padding:6px; display:inline-block;"><div style="display:block; margin-bottom:8px; border-bottom: 10px dotted white;"></div>[[File:{{{pic|}}}{{!}}{{{size|185px}}}{{!}}Video thumbnail for {{{date|Date}}}]]<div style="display:block; margin-top:6px; border-top: 10px dotted white;"></div></div>}}}}
|align=center|{{hcount|}}{{#switch:{{{pic|}}}|=<p style="text-align:center; line-height:136px;font-style:italic;font-size:85%;color: #aaa">({{#switch:{{{video transcript|}}}|=no pic|#default=thumbnail unavailable}})</p>|#default={{#switch:{{{video transcript|}}}|=[[File:{{{pic|}}}{{!}}{{{size|200px}}}{{!}}{{#switch:{{{site|{{PAGENAME}}}}}|Instagram=Post|#default=Tweet}} image for {{{date|Date}}}]]|#default=<div style="background-color: black; padding:6px; display:inline-block;"><div style="display:block; margin-bottom:8px; border-bottom: 10px dotted white;"></div>[[File:{{{pic|}}}{{!}}{{{size|185px}}}{{!}}Video thumbnail for {{{date|Date}}}]]<div style="display:block; margin-top:6px; border-top: 10px dotted white;"></div></div>}}}}
-
|{{#switch:{{{pic2|}}}|=|#default={{#switch:{{{pic3|}}}|=rowspan=2{{!}}|#default={{#switch:{{{pic4|}}}|=rowspan=3{{!}}|#default=rowspan=4{{!}}}}}}}}
+
|{{#ifeq:{{{image transcript|}}}||{{#ifeq:{{{video transcript|}}}||{{#ifeq:{{{live video transcript|}}}||colspan=2{{!}}}}|}}|}} {{#switch:{{{pic2|}}}|=|#default={{#switch:{{{pic3|}}}|=rowspan=2{{!}}|#default={{#switch:{{{pic4|}}}|=rowspan=3{{!}}|#default=rowspan=4{{!}}}}}}}}
{{#switch:{{{text|}}}|=<p style="line-height:136px;font-style:italic;font-size:85%;color: #aaa">(no text)</p>|#default=<span style="font-size:120%">{{{text|}}}</span>}}{{#switch:{{{reply|}}}|=|#default=
{{#switch:{{{text|}}}|=<p style="line-height:136px;font-style:italic;font-size:85%;color: #aaa">(no text)</p>|#default=<span style="font-size:120%">{{{text|}}}</span>}}{{#switch:{{{reply|}}}|=|#default=
<br style="clear:both;">
<br style="clear:both;">
Line 31: Line 31:
{{{fun facts|}}}}}
{{{fun facts|}}}}}
-
|{{#switch:{{{pic2|}}}|=|#default={{#switch:{{{pic3|}}}|=rowspan=2{{!}}|#default={{#switch:{{{pic4|}}}|=rowspan=3{{!}}|#default=rowspan=4{{!}}}}}}}}
 
-
{{#ifeq:{{{image transcript|}}}||{{#ifeq:{{{video transcript|}}}||{{#ifeq:{{{live video transcript|}}}||<p style="line-height:136px;font-style:italic;font-size:85%;color: #aaa">(no transcript)</p>}}|}}|}}
 
-
{{#switch:{{{image transcript|}}}|=|#default=<h3>Image Transcript</h3>
 
-
{{{image transcript|}}}}}{{#switch:{{{video transcript|}}}|=|#default=<h3>Video Transcript</h3>
+
{{#switch:{{{image transcript|}}}|=|#default=
 +
{{!}}{{#switch:{{{pic2|}}}|=|#default={{#switch:{{{pic3|}}}|=rowspan=2{{!}}|#default={{#switch:{{{pic4|}}}|=rowspan=3{{!}}|#default=rowspan=4{{!}}}}}}}}
 +
<h3>Image Transcript</h3>
-
{{{video transcript|}}}}}{{#switch:{{{live video transcript|}}}|=|#default=<h3>Live Video Transcript</h3>
+
{{{image transcript|}}}}}{{#switch:{{{video transcript|}}}|=|#default=
 +
{{!}}{{#switch:{{{pic2|}}}|=|#default={{#switch:{{{pic3|}}}|=rowspan=2{{!}}|#default={{#switch:{{{pic4|}}}|=rowspan=3{{!}}|#default=rowspan=4{{!}}}}}}}}
 +
<h3>Video Transcript</h3>
 +
 
 +
{{{video transcript|}}}}}{{#switch:{{{live video transcript|}}}|=|#default=
 +
{{!}}{{#switch:{{{pic2|}}}|=|#default={{#switch:{{{pic3|}}}|=rowspan=2{{!}}|#default={{#switch:{{{pic4|}}}|=rowspan=3{{!}}|#default=rowspan=4{{!}}}}}}}}
 +
<h3>Live Video Transcript</h3>
{{{live video transcript|}}}}}
{{{live video transcript|}}}}}
 +
|{{#switch:{{{pic2|}}}|=|#default={{#switch:{{{pic3|}}}|=rowspan=2{{!}}|#default={{#switch:{{{pic4|}}}|=rowspan=3{{!}}|#default=rowspan=4{{!}}}}}}}}
|{{#switch:{{{pic2|}}}|=|#default={{#switch:{{{pic3|}}}|=rowspan=2{{!}}|#default={{#switch:{{{pic4|}}}|=rowspan=3{{!}}|#default=rowspan=4{{!}}}}}}}}
{{#switch:{{{site|{{PAGENAME}}}}}|#default=[[twitter:StrongBadActual/status/{{{id|}}}|{{{date|Date}}}]]|Instagram=[[instagram:p/{{{id|}}}/|{{{date|Date}}}]]}}{{#switch:{{{pic2|}}}|=|#default=
{{#switch:{{{site|{{PAGENAME}}}}}|#default=[[twitter:StrongBadActual/status/{{{id|}}}|{{{date|Date}}}]]|Instagram=[[instagram:p/{{{id|}}}/|{{{date|Date}}}]]}}{{#switch:{{{pic2|}}}|=|#default=

Revision as of 20:42, 28 October 2017

Thumbnail Text Transcript Date / Link
2

(no pic)

(no text)


Date

How to use the template

{{post
|id=The number at the end of the post's URL (for example, 913122813711708161). This is used for two reasons— links to the section on the page ([[@StrongBadActual (Twitter)#913122813711708161]]) and the URL in the Link column.
|site=For differentiating Twitter or Instagram posts. DO NOT USE unless absolutely necessary, as this template is programmed to match the page it's on.
|pic=The post's image or a video thumbnail.
|pic2=A second image.
|pic3=A third image.
|pic4=A fourth image.
|size=For changing the size of the image. Again, DO NOT USE unless there is a good reason, as the images are automatically formatted to be 200 pixels wide (185 for videos, due to the filmstrip border).
|size2=Size of the second image.
|size3=Size of the third image.
|size4=Size of the fourth image.
|text=The text of the post.
|reply=If the post is a reply, put any additional information here, including the person who was replied to, and a paraphrase of what they posted.
|link=If the post is a link, put any additional information here, including the person who posted what was linked to, and a paraphrase of what they posted.
|refers=If the post refers to someone else's, but does not link to it, put any additional information here (such as a link to the post that was referenced).
|image transcript=Transcribing the image if there is any text in it.
|video transcript=Transcribing the video.
|live video transcript=Transcribing a live video.
|poll=If a poll is posted, put the options here.
|fun facts=Fun facts regarding the post.
|date=The date of the post.
}}