Template:post
From Homestar Runner Wiki
(Difference between revisions)
(test) |
(let's see if this works) |
||
(includes 31 intermediate revisions) | |||
Line 1: | Line 1: | ||
- | {{#switch:{{{1}}}|#default=|top={{#resetcount:}}}} | + | {{#switch:{{{1|}}}|=|#default= |
+ | {{#switch:{{{2|}}}|={{!}}}|top=}}{{#resetcount:}}}} | ||
{{#switch:{{#COUNT:}}|#default=|1= | {{#switch:{{#COUNT:}}|#default=|1= | ||
+ | {{clear}} | ||
+ | {{#switch:{{PAGENAME}}|@strongbadactual (Instagram)=<h2>{{{1|{{CURRENTYEAR}}}}}</h2>|#default=<h2>{{{1|{{#time: F}}}}}</h2>}} | ||
{{{!}} width=100% border=1 cellspacing=0 cellpadding=3 style="border-collapse:collapse" | {{{!}} width=100% border=1 cellspacing=0 cellpadding=3 style="border-collapse:collapse" | ||
{{!}}- bgcolor=#eeeeee | {{!}}- bgcolor=#eeeeee | ||
- | ! class="unsortable" | + | ! class="unsortable" colspan=2{{!}} Text / Transcript |
- | + | ||
! width=100{{!}} Date / Link}} | ! width=100{{!}} Date / Link}} | ||
|- id="{{{id|}}}" {{#switch:{{{reply|}}}|=|#default=style="background:#F9F9F9"}} | |- id="{{{id|}}}" {{#switch:{{{reply|}}}|=|#default=style="background:#F9F9F9"}} | ||
- | | | + | |width="200px" {{#switch:{{{pic|}}}|=colspan=2{{!}}|#default=align=center{{!}}{{#switch:{{{pic|}}}|=|#default={{#switch:{{{video transcript|}}}|=[[File:{{{pic|}}}{{!}}{{{size|200px}}}{{!}}{{#switch:{{{site|{{PAGENAME}}}}}|@strongbadactual (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|188px}}}{{!}}Video thumbnail for {{{date|Date}}}]]<div style="display:block; margin-top:6px; border-top: 10px dotted white;"></div></div>}}}}{{#switch:{{{pic2|}}}|=|#default=<br />[[File:{{{pic2|}}}{{!}}{{{size2|200px}}}{{!}}{{#switch:{{{site|{{PAGENAME}}}}}|@strongbadactual (Instagram)=Post|#default=Tweet}} image for {{{date|Date}}}]]}}{{#switch:{{{pic3|}}}|=|#default=<br />[[File:{{{pic3|}}}{{!}}{{{size3|200px}}}{{!}}{{#switch:{{{site|{{PAGENAME}}}}}|@strongbadactual (Instagram)=Post|#default=Tweet}} image for {{{date|Date}}}]]}}{{#switch:{{{pic4|}}}|=|#default=<br />[[File:{{{pic4|}}}{{!}}{{{size4|200px}}}{{!}}{{#switch:{{{site|{{PAGENAME}}}}}|@strongbadactual (Instagram)=Post|#default=Tweet}} image for {{{date|Date}}}]]}} |
- | |{{#switch:{{{text|}}}|=<p style="font-style:italic;font-size:85%;color: #aaa">(no text)</p>|#default=< | + | {{!}}}}{{#switch:{{{retweet|}}}|={{#switch:{{{text|}}}|=<p style="font-style:italic;font-size:85%;color: #aaa">(no text)</p>|#default=<div style="font-size:120%">{{{text|}}}</div>}}|#default=''This is a Retweet of {{{retweet|}}}''}}{{#switch:{{{link|}}}|=|#default= |
+ | :''This {{#switch:{{{site|{{PAGENAME}}}}}|@strongbadactual (Instagram)=post|#default=Tweet}} links to {{{link|}}}''}}{{#switch:{{{reply|}}}|=|#default= | ||
+ | :''This {{#switch:{{{site|{{PAGENAME}}}}}|@strongbadactual (Instagram)=post|#default=Tweet}} is a reply to {{{reply|}}}''}}{{#switch:{{{refer|}}}|=|#default= | ||
+ | :''This {{#switch:{{{site|{{PAGENAME}}}}}|@strongbadactual (Instagram)=post|#default=Tweet}}, while not technically a reply, refers to {{{refer|}}}''}}{{#switch:{{{deleted|}}}|=|#default= | ||
+ | :''This {{#switch:{{{site|{{PAGENAME}}}}}|@strongbadactual (Instagram)=post|#default=Tweet}} has been deleted.''}}{{#switch:{{{image transcript|}}}|=|#default= | ||
<br style="clear:both;"> | <br style="clear:both;"> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
<h3>Image Transcript</h3> | <h3>Image Transcript</h3> | ||
{{{image transcript|}}}}}{{#switch:{{{video transcript|}}}|=|#default= | {{{image transcript|}}}}}{{#switch:{{{video transcript|}}}|=|#default= | ||
+ | <br style="clear:both;"> | ||
<h3>Video Transcript</h3> | <h3>Video Transcript</h3> | ||
{{{video transcript|}}}}}{{#switch:{{{live video transcript|}}}|=|#default= | {{{video transcript|}}}}}{{#switch:{{{live video transcript|}}}|=|#default= | ||
+ | <br style="clear:both;"> | ||
<h3>Live Video Transcript</h3> | <h3>Live Video Transcript</h3> | ||
{{{live video transcript|}}}}}{{#switch:{{{poll|}}}|=|#default= | {{{live video transcript|}}}}}{{#switch:{{{poll|}}}|=|#default= | ||
+ | <br style="clear:both;"> | ||
<h3>Poll Options</h3> | <h3>Poll Options</h3> | ||
{{{poll|}}}}}{{#switch:{{{fun facts|}}}|=|#default= | {{{poll|}}}}}{{#switch:{{{fun facts|}}}|=|#default= | ||
+ | <br style="clear:both;"> | ||
<h3>Fun Facts</h3> | <h3>Fun Facts</h3> | ||
{{{fun facts|}}}}} | {{{fun facts|}}}}} | ||
- | |{{#switch:{{{site|{{PAGENAME}}}}}|#default=[[twitter:StrongBadActual/status/{{{id|}}}|{{{date|Date}}}]]|Instagram=[[instagram:p/{{{id|}}}/|{{{date|Date}}}]]}}<noinclude> | + | |{{#switch:{{{deleted|}}}|#default={{{date|Date}}}|={{#switch:{{{site|{{PAGENAME}}}}}|#default=[[twitter:StrongBadActual/status/{{{id|}}}|{{{date|Date}}}]]|@strongbadactual (Instagram)=[[instagram:p/{{{id|}}}/|{{{date|Date}}}]]}}}}<noinclude> |
- | |} | + | |}<span style="display:none">{{{film|}}}</span> |
===How to use the template=== | ===How to use the template=== | ||
Line 43: | Line 48: | ||
|pic3=A third image. | |pic3=A third image. | ||
|pic4=A fourth 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 ( | + | |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 (188 for videos, due to the filmstrip border). |
|size2=Size of the second image. | |size2=Size of the second image. | ||
|size3=Size of the third image. | |size3=Size of the third image. | ||
|size4=Size of the fourth image. | |size4=Size of the fourth image. | ||
|text=The text of the post. | |text=The text of the post. | ||
- | |||
|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. | |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. | ||
+ | |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. | ||
|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). | |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). | ||
+ | |deleted=If the post has been deleted, put something here (for example, "yes" or "true"). | ||
+ | |retweet=If a post is Retweeted with no additional text, put the username and content type here (for example, "@trogdorgame's video"). | ||
|image transcript=Transcribing the image if there is any text in it. | |image transcript=Transcribing the image if there is any text in it. | ||
|video transcript=Transcribing the video. | |video transcript=Transcribing the video. | ||
Line 57: | Line 64: | ||
|fun facts=Fun facts regarding the post. | |fun facts=Fun facts regarding the post. | ||
|date=The date of the post. | |date=The date of the post. | ||
+ | |film=Characters who appeared in the post. | ||
}} | }} | ||
</pre> | </pre> | ||
[[Category:Formatting Templates]]</noinclude> | [[Category:Formatting Templates]]</noinclude> |
Revision as of 01:50, 7 March 2020
April
Text / Transcript | Date / Link | |
---|---|---|
(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 (188 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. |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. |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. |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). |deleted=If the post has been deleted, put something here (for example, "yes" or "true"). |retweet=If a post is Retweeted with no additional text, put the username and content type here (for example, "@trogdorgame's video"). |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. |film=Characters who appeared in the post. }}