Ref:Twitter: Difference between revisions

From Oddworld Library
(Made author optional, refHeader defaults to username if author unspecified; added quote line (twice, due to different markup for replies), added optional channel and replyChannel parameters)
m (Made author and replyAuthor be used for account lines if specified)
Line 6: Line 6:
}}
}}
   [https://twitter.com/{{{username}}}/status/{{{messageID}}} {{#if: {{{replyAuthor|}}} | Reply] to | Tweet].
   [https://twitter.com/{{{username}}}/status/{{{messageID}}} {{#if: {{{replyAuthor|}}} | Reply] to | Tweet].
    {{#if: {{{quote|}}} | {{#ifeq: {{{quoteMarks|single}}} | double |“|‘}}<q cite="https://twitter.com/{{{username}}}/status/{{{messageID}}}">{{{quote}}}</q>{{#ifeq: {{{quoteMarks|single}}} | double |”|’}} }}
  {{#if: {{{quote|}}} | {{#ifeq: {{{quoteMarks|single}}} | double |“|‘}}<q cite="https://twitter.com/{{{username}}}/status/{{{messageID}}}">{{{quote}}}</q>{{#ifeq: {{{quoteMarks|single}}} | double |”|’}} }}
   {{{channel|@{{{username}}}}}} account.}}
   {{{author|{{{channel|@{{{username}}}}}}}}} account.}}
{{#if: {{{replyAuthor|}}}
{{#if: {{{replyAuthor|}}}
| {{ref:refHeader
| {{ref:refHeader
Line 16: Line 16:
   }}
   }}
   [https://twitter.com/{{{replyUsername}}}/status/{{{replyID}}} Tweet].
   [https://twitter.com/{{{replyUsername}}}/status/{{{replyID}}} Tweet].
    {{#if: {{{quote|}}} | {{#ifeq: {{{quoteMarks|single}}} | double |“|‘}}<q cite="https://twitter.com/{{{username}}}/status/{{{messageID}}}">{{{quote}}}</q>{{#ifeq: {{{quoteMarks|single}}} | double |”|’}} }}
  {{#if: {{{quote|}}} | {{#ifeq: {{{quoteMarks|single}}} | double |“|‘}}<q cite="https://twitter.com/{{{username}}}/status/{{{messageID}}}">{{{quote}}}</q>{{#ifeq: {{{quoteMarks|single}}} | double |”|’}} }}
   {{{replyChannel|@{{{replyUsername}}}}}} account.
   {{{replyAuthor|{{{replyChannel|@{{{replyUsername}}}}}}}}} account.
}}
}}
   Twitter.
   Twitter.
   San Francisco, California: X Corp.
   San Francisco, California: X Corp.

Revision as of 11:03, 22 June 2024

 {{{author}}} [@{{{username}}}] ().
 Tweet.
 
 @{{{username}}} account.
 Twitter.
 San Francisco, California: X Corp.