Template:Twitter archive: Difference between revisions

From Inkipedia, the Splatoon wiki
(Attempted to use anchor to allow tweets in the tweet archive to be referenced individually by id)
(using titleparts to automagically generate an anchor for the tweet from the value of 'original' (thanks to @ha5753 for suggesting the titleparts workaround!))
Line 1: Line 1:
<templatestyles src="Twitter archive/styles.css" /><div class="twitter-archive-container">{{#if:{{{id|}}} | {{Anchor|{{{id}}} }}|}}
<templatestyles src="Twitter archive/styles.css" /><div class="twitter-archive-container">{{#if:{{{original|}}}|{{Anchor|{{#titleparts:{{{original}}}| |-1}}|}} | }}
{{#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>@{{{username|Username missing!<includeonly>[[Category:Tweets missing names]]</includeonly>}}}</big><br>
{{#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>@{{{username|Username missing!<includeonly>[[Category:Tweets missing names]]</includeonly>}}}</big><br>
{{#if:{{{replyname|}}}|''Replying to {{{replyname|}}}''<br>|}}
{{#if:{{{replyname|}}}|''Replying to {{{replyname|}}}''<br>|}}
Line 27: Line 27:
*date — When the tweet was posted — necessary
*date — When the tweet was posted — necessary
*original — Link to the tweet, preferably an archived version (internet archive) — necessary
*original — Link to the tweet, preferably an archived version (internet archive) — necessary
*id - the ID of the tweet in question, which is used to generate an anchor to this tweet in particular (for ease of linking to this tweet in the archive) - optional
example:
example:
{{Twitter archive
{{Twitter archive

Revision as of 21:18, 30 August 2023


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:


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.