Template:Twitter archive: Difference between revisions
From Inkipedia, the Splatoon wiki
SuperHamster (talk | contribs) (Removing unnecessary #ifs) |
SuperHamster (talk | contribs) (Migrating CSS to TemplateStyles stylesheet) |
||
Line 1: | Line 1: | ||
<div | <templatestyles src="Twitter archive/styles.css" /><div class="twitter-archive-container"> | ||
{{#switch:{{{pfp|}}}|srl|srl=[[File:S3 Squid Research Lab Icon.jpg|left|42px|link=]]|nintendo|nintendo=[[File:Nintendo Twitter PFP.jpg|left|42px|link=]]|inkipedia|inkipedia=[[File:Site-wiki.svg|left|42px|link=]]|rassicas|rassicas=[[File:Rassicas Twitter PFP.jpg|left|42px|link=]]|oatmealdome|oatmealdome=[[File:OatmealDome Twitter PFP.jpg|left|42px|link=]]|lean|leanny|leanyoshi|leanyoshi=[[File:LeanYoshi Twitter PFP.jpg|left|42px|link=]]|#default=[[File:{{{pfp|}}}|left|42px|link=]]}} | {{#switch:{{{pfp|}}}|srl|srl=[[File:S3 Squid Research Lab Icon.jpg|left|42px|link=]]|nintendo|nintendo=[[File:Nintendo Twitter PFP.jpg|left|42px|link=]]|inkipedia|inkipedia=[[File:Site-wiki.svg|left|42px|link=]]|rassicas|rassicas=[[File:Rassicas Twitter PFP.jpg|left|42px|link=]]|oatmealdome|oatmealdome=[[File:OatmealDome Twitter PFP.jpg|left|42px|link=]]|lean|leanny|leanyoshi|leanyoshi=[[File:LeanYoshi Twitter PFP.jpg|left|42px|link=]]|#default=[[File:{{{pfp|}}}|left|42px|link=]]}} | ||
<big><big><big>'''{{{displayname|Display name missing!<includeonly>[[Category:Tweets missing names]]</includeonly>}}}'''</big></big></big><br> | <big><big><big>'''{{{displayname|Display name missing!<includeonly>[[Category:Tweets missing names]]</includeonly>}}}'''</big></big></big><br> | ||
<big>@{{{username|Username missing!<includeonly>[[Category:Tweets missing names]]</includeonly>}}}</big><br> | <big>@{{{username|Username missing!<includeonly>[[Category:Tweets missing names]]</includeonly>}}}</big><br> | ||
{{#if:{{{replyname|}}}|''Replying to {{{replyname|}}}''<br>|}} | {{#if:{{{replyname|}}}|''Replying to {{{replyname|}}}''<br>|}} | ||
<span | <span>{{{content|}}}</span><br> | ||
<div | <div class="twitter-archive-images"> | ||
{{#if:{{{image|}}}|[[File:{{{image|}}}|320px]]|}}{{#if:{{{image2|}}}|[[File:{{{image2|}}}|320px]]|}}{{#if:{{{image3|}}}|<br clear=all>[[File:{{{image3|}}}|320px]]|}}{{#if:{{{image4|}}}|[[File:{{{image4|}}}|320px]]|}}{{#if:{{{video|}}}|[[File:{{{video|}}}|thumb|center|350px]]|}}</div><br> | {{#if:{{{image|}}}|[[File:{{{image|}}}|320px]]|}}{{#if:{{{image2|}}}|[[File:{{{image2|}}}|320px]]|}}{{#if:{{{image3|}}}|<br clear=all>[[File:{{{image3|}}}|320px]]|}}{{#if:{{{image4|}}}|[[File:{{{image4|}}}|320px]]|}}{{#if:{{{video|}}}|[[File:{{{video|}}}|thumb|center|350px]]|}}</div><br> | ||
<small>''{{#if:{{{original|}}}|[{{{original|}}} Originally posted on {{#if:{{{date|}}}|{{{date|}}}|<span | <small>''{{#if:{{{original|}}}|[{{{original|}}} Originally posted on {{#if:{{{date|}}}|{{{date|}}}|<span class="red">No date listed</span><includeonly>[[Category:Tweets without dates]]</includeonly>}}]|<span class="twitter-archive-red">Original tweet missing</span><includeonly>[[Category:Tweets without original sources]]</includeonly>.}}''</small> | ||
</div><br><noinclude> | </div><br><noinclude> | ||
Note: The above will not look complete because of the various default responses given for no information entered. Please see the example below for a reference.<br> | Note: The above will not look complete because of the various default responses given for no information entered. Please see the example below for a reference.<br> |
Revision as of 22:15, 9 July 2023
[[File:|left|42px|link=]]
Display name missing!
@Username missing!
Original tweet missing.
Note: The above will not look complete because of the various default responses given for no information entered. Please see the example below for a reference.
Parameters:
- pfp — Profile picture of the account; Some frequent options may be used below — necessary
- srl: Squid Research Lab
- nintendo: Nintendo (any region, it's all the same)
- inkipedia: Inkipedia's own account
- rassicas: Rassicas, a popular translator
- oatmealdome: OatmealDome, a popular resource for information
- displayname — The display name of the account (Nintendo of America) — necessary
- username — What is added after the @ (@NintendoAmerica) — necessary
- replyname — If the tweet is a reply, lists username of account being replied to — optional
- content — Text of the tweet — optional
- image — Image(s) for the tweet, should auto-align — optional
- image2
- image3
- image4
- video — Video attached to the tweet — optional
- date — When the tweet was posted — necessary
- original — Link to the tweet, preferably an archived version (internet archive) — necessary
example:
Inkipedia
@splatoonwiki
Welcome to Inkipedia! The free encyclopedia on all things Splatoon.
Tweets can be saved without the necessary parameters, but it will cause display errors and a maintenance category to be added depending on the error.