Introduce Twitter plugin for embedding tweets etc.

This commit is contained in:
Jermolene
2017-02-28 10:22:21 +00:00
parent 52a414959c
commit e30330d4be
18 changed files with 470 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
title: $:/plugins/tiddlywiki/twitter/usage/collectiontimeline
tags: $:/tags/TwitterUsage
caption: Collection Timeline
!! Embedding Collection Timelines
|!Attribute |!Values |!Default |!Notes |
|''type'' |"timelineCollection" |none |"timelineCollection" |
|''id'' |ID of the collection |none | |
|''chrome'' |"noheader", "nofooter", "noborders", "transparent", "noscrollbar" |none |Toggle the display of design elements in the widget. This parameter is a space-separated list of values |
|''height'' |Positive integer |600 |Set a fixed height of the embedded widget |
|''tweetLimit'' |Range: 1-20 |none |Render a timeline statically, displaying only n number of Tweets |
|''borderColor'' |Hexadecimal color |Varies by theme |Adjust the color of borders inside the widget |
|''ariaPolite'' |"polite", "assertive", "rude" |"polite" |Apply the specified aria-polite behavior to the rendered timeline. New Tweets may be added to the top of a timeline, affecting screen readers |
|''conversation'' |"none", "all" |"all" |Tweets in response to another Tweet will display a compact version of the previous Tweet by default. Use "none" to hide the parent Tweet in the conversation |
|''cards'' |"hidden", "visible"|visible |Hide photos, videos, and link previews powered by Twitter Cards |
|''width'' |Positive integer |"auto", derived from container size |Set the maximum width of the embedded Tweet |
|''align'' |"left", "right", "center" |none |Float the embedded Tweet to the left or right so that text wraps around it, or align center so it floats in the middle of a paragraph |
|''theme'' |"dark", "light" |"light" |Toggle the default color scheme of the embedded Tweet |
|''linkColor'' |Hexadecimal color |"#2b7bb9" |Adjust the color of links, including hashtags and @mentions, inside the widget |
|''lang'' |An ISO 639-1 language code |en |The language in which to render a widget, if supported |
|''dnt'' |"true", "false" |false |Enable Do Not Track for this widget |
|''related'' |Any comma-separated list of valid Twitter screen names |none |A list of Twitter screen names to be suggested for following after a Tweet or Tweet action is posted |
|''via'' |Any valid Twitter screen name |none |A Twitter user mentioned in the default Tweet text as via @user where appropriate |
<<twitter-usage """<$twitter type="timelineCollection" id="393773266801659904"/>
""">>

View File

@@ -0,0 +1,21 @@
title: $:/plugins/tiddlywiki/twitter/usage/followbutton
tags: $:/tags/TwitterUsage
caption: Follow Button
!! Embedding Follow Buttons
|!Attribute |!Values |!Default |!Notes |
|''type'' |"followButton" |none |"followButton" |
|''screenName'' |Screen name of the account to be followed |none | |
|''count'' |"none", "horizontal" |"horizontal" | |
|''text'' |Any string |none |The default, highlighted text a user sees in the Tweet web intent |
|''hashtags'' |A comma-separated list of hashtags |none |A list of hashtags to be appended to default Tweet text where appropriate |
|''align'' |"left", "right" |locale dependent (left or right, depending on the text direction of the language) |The alignment of the button within an iframe; use this to ensure flush layout when aligning buttons |
|''size'' |"medium", "large" |medium |Size of button |
|''lang'' |An ISO 639-1 language code |en |The language in which to render a widget, if supported |
|''dnt'' |"true", "false" |false |Enable Do Not Track for this widget |
|''related'' |Any comma-separated list of valid Twitter screen names |none |A list of Twitter screen names to be suggested for following after a Tweet or Tweet action is posted |
|''via'' |Any valid Twitter screen name |none |A Twitter user mentioned in the default Tweet text as via @user where appropriate |
<<twitter-usage """<$twitter type="followButton" screenName="TiddlyWiki"/>
""">>

View File

@@ -0,0 +1,19 @@
title: $:/plugins/tiddlywiki/twitter/usage/hashtagbutton
tags: $:/tags/TwitterUsage
caption: Hashtag Button
!! Embedding Hashtag Buttons
|!Attribute |!Values |!Default |!Notes |
|''type'' |"hashtagButton" |none |"hashtagButton" |
|''hashtag'' |Hashtag to be tweeted and displayed on the button |none | |
|''text'' |Any string |none |The default, highlighted text a user sees in the Tweet web intent |
|''align'' |"left", "right" |locale dependent (left or right, depending on the text direction of the language) |The alignment of the button within an iframe; use this to ensure flush layout when aligning buttons |
|''size'' |"medium", "large" |medium |Size of button |
|''lang'' |An ISO 639-1 language code |en |The language in which to render a widget, if supported |
|''dnt'' |"true", "false" |false |Enable Do Not Track for this widget |
|''related'' |Any comma-separated list of valid Twitter screen names |none |A list of Twitter screen names to be suggested for following after a Tweet or Tweet action is posted |
|''via'' |Any valid Twitter screen name |none |A Twitter user mentioned in the default Tweet text as via @user where appropriate |
<<twitter-usage """<$twitter type="hashtagButton" hashtag="TiddlyWiki"/>
""">>

View File

@@ -0,0 +1,28 @@
title: $:/plugins/tiddlywiki/twitter/usage/likestimeline
tags: $:/tags/TwitterUsage
caption: Likes Timeline
!! Embedding Likes Timelines
|!Attribute |!Values |!Default |!Notes |
|''type'' |"timelineLikes" |none |"timelineLikes" |
|''screenName'' |Screen name of the account |none |Either ''screenName'' or ''userId'' must be provided |
|''userId'' |User ID of the account |none |~|
|''chrome'' |"noheader", "nofooter", "noborders", "transparent", "noscrollbar" |none |Toggle the display of design elements in the widget. This parameter is a space-separated list of values |
|''height'' |Positive integer |600 |Set a fixed height of the embedded widget |
|''tweetLimit'' |Range: 1-20 |none |Render a timeline statically, displaying only n number of Tweets |
|''borderColor'' |Hexadecimal color |Varies by theme |Adjust the color of borders inside the widget |
|''ariaPolite'' |"polite", "assertive", "rude" |"polite" |Apply the specified aria-polite behavior to the rendered timeline. New Tweets may be added to the top of a timeline, affecting screen readers |
|''conversation'' |"none", "all" |"all" |Tweets in response to another Tweet will display a compact version of the previous Tweet by default. Use "none" to hide the parent Tweet in the conversation |
|''cards'' |"hidden", "visible"|visible |Hide photos, videos, and link previews powered by Twitter Cards |
|''width'' |Positive integer |"auto", derived from container size |Set the maximum width of the embedded Tweet |
|''align'' |"left", "right", "center" |none |Float the embedded Tweet to the left or right so that text wraps around it, or align center so it floats in the middle of a paragraph |
|''theme'' |"dark", "light" |"light" |Toggle the default color scheme of the embedded Tweet |
|''linkColor'' |Hexadecimal color |"#2b7bb9" |Adjust the color of links, including hashtags and @mentions, inside the widget |
|''lang'' |An ISO 639-1 language code |en |The language in which to render a widget, if supported |
|''dnt'' |"true", "false" |false |Enable Do Not Track for this widget |
|''related'' |Any comma-separated list of valid Twitter screen names |none |A list of Twitter screen names to be suggested for following after a Tweet or Tweet action is posted |
|''via'' |Any valid Twitter screen name |none |A Twitter user mentioned in the default Tweet text as via @user where appropriate |
<<twitter-usage """<$twitter type="timelineLikes" screenName="tiddlywiki"/>
""">>

View File

@@ -0,0 +1,29 @@
title: $:/plugins/tiddlywiki/twitter/usage/listtimeline
tags: $:/tags/TwitterUsage
caption: List Timeline
!! Embedding List Timelines
|!Attribute |!Values |!Default |!Notes |
|''type'' |"timelineList" |none |"timelineList" |
|''ownerScreenName'' |Screen name of the account |none |Either both ''ownerScreenName'' and ''slug'' must be provided, or just ''id'' |
|''slug'' |The string identifier for a list |none |~|
|''id'' |ID of the list |none |~|
|''chrome'' |"noheader", "nofooter", "noborders", "transparent", "noscrollbar" |none |Toggle the display of design elements in the widget. This parameter is a space-separated list of values |
|''height'' |Positive integer |600 |Set a fixed height of the embedded widget |
|''tweetLimit'' |Range: 1-20 |none |Render a timeline statically, displaying only n number of Tweets |
|''borderColor'' |Hexadecimal color |Varies by theme |Adjust the color of borders inside the widget |
|''ariaPolite'' |"polite", "assertive", "rude" |"polite" |Apply the specified aria-polite behavior to the rendered timeline. New Tweets may be added to the top of a timeline, affecting screen readers |
|''conversation'' |"none", "all" |"all" |Tweets in response to another Tweet will display a compact version of the previous Tweet by default. Use "none" to hide the parent Tweet in the conversation |
|''cards'' |"hidden", "visible"|visible |Hide photos, videos, and link previews powered by Twitter Cards |
|''width'' |Positive integer |"auto", derived from container size |Set the maximum width of the embedded Tweet |
|''align'' |"left", "right", "center" |none |Float the embedded Tweet to the left or right so that text wraps around it, or align center so it floats in the middle of a paragraph |
|''theme'' |"dark", "light" |"light" |Toggle the default color scheme of the embedded Tweet |
|''linkColor'' |Hexadecimal color |"#2b7bb9" |Adjust the color of links, including hashtags and @mentions, inside the widget |
|''lang'' |An ISO 639-1 language code |en |The language in which to render a widget, if supported |
|''dnt'' |"true", "false" |false |Enable Do Not Track for this widget |
|''related'' |Any comma-separated list of valid Twitter screen names |none |A list of Twitter screen names to be suggested for following after a Tweet or Tweet action is posted |
|''via'' |Any valid Twitter screen name |none |A Twitter user mentioned in the default Tweet text as via @user where appropriate |
<<twitter-usage """<$twitter type="timelineList" ownerScreenName="isaach" slug="home-timeline"/>
""">>

View File

@@ -0,0 +1,20 @@
title: $:/plugins/tiddlywiki/twitter/usage/mentionbutton
tags: $:/tags/TwitterUsage
caption: Mention Button
!! Embedding Mention Buttons
|!Attribute |!Values |!Default |!Notes |
|''type'' |"mentionButton" |none |"mentionButton" |
|''screenName'' |Screen name of the account to be mentioned |none | |
|''text'' |Any string |none |The default, highlighted text a user sees in the Tweet web intent |
|''hashtags'' |A comma-separated list of hashtags |none |A list of hashtags to be appended to default Tweet text where appropriate |
|''align'' |"left", "right" |locale dependent (left or right, depending on the text direction of the language) |The alignment of the button within an iframe; use this to ensure flush layout when aligning buttons |
|''size'' |"medium", "large" |medium |Size of button |
|''lang'' |An ISO 639-1 language code |en |The language in which to render a widget, if supported |
|''dnt'' |"true", "false" |false |Enable Do Not Track for this widget |
|''related'' |Any comma-separated list of valid Twitter screen names |none |A list of Twitter screen names to be suggested for following after a Tweet or Tweet action is posted |
|''via'' |Any valid Twitter screen name |none |A Twitter user mentioned in the default Tweet text as via @user where appropriate |
<<twitter-usage """<$twitter type="mentionButton" screenName="TiddlyWiki"/>
""">>

View File

@@ -0,0 +1,29 @@
title: $:/plugins/tiddlywiki/twitter/usage/profiletimeline
tags: $:/tags/TwitterUsage
caption: Profile Timeline
!! Embedding Profile Timelines
|!Attribute |!Values |!Default |!Notes |
|''type'' |"timelineProfile" |none |"timelineProfile" |
|''screenName'' |Screen name of the account |none |Either ''screenName'' or ''userId'' must be provided |
|''userId'' |User ID of the account |none |~|
|''chrome'' |"noheader", "nofooter", "noborders", "transparent", "noscrollbar" |none |Toggle the display of design elements in the widget. This parameter is a space-separated list of values |
|''height'' |Positive integer |600 |Set a fixed height of the embedded widget |
|''tweetLimit'' |Range: 1-20 |none |Render a timeline statically, displaying only n number of Tweets |
|''borderColor'' |Hexadecimal color |Varies by theme |Adjust the color of borders inside the widget |
|''ariaPolite'' |"polite", "assertive", "rude" |"polite" |Apply the specified aria-polite behavior to the rendered timeline. New Tweets may be added to the top of a timeline, affecting screen readers |
|''conversation'' |"none", "all" |"all" |Tweets in response to another Tweet will display a compact version of the previous Tweet by default. Use "none" to hide the parent Tweet in the conversation |
|''cards'' |"hidden", "visible"|visible |Hide photos, videos, and link previews powered by Twitter Cards |
|''width'' |Positive integer |"auto", derived from container size |Set the maximum width of the embedded Tweet |
|''align'' |"left", "right", "center" |none |Float the embedded Tweet to the left or right so that text wraps around it, or align center so it floats in the middle of a paragraph |
|''theme'' |"dark", "light" |"light" |Toggle the default color scheme of the embedded Tweet |
|''linkColor'' |Hexadecimal color |"#2b7bb9" |Adjust the color of links, including hashtags and @mentions, inside the widget |
|''lang'' |An ISO 639-1 language code |en |The language in which to render a widget, if supported |
|''dnt'' |"true", "false" |false |Enable Do Not Track for this widget |
|''related'' |Any comma-separated list of valid Twitter screen names |none |A list of Twitter screen names to be suggested for following after a Tweet or Tweet action is posted |
|''via'' |Any valid Twitter screen name |none |A Twitter user mentioned in the default Tweet text as via @user where appropriate |
<<twitter-usage """<$twitter type="timelineProfile" screenName="tiddlywiki"/>
""">>

View File

@@ -0,0 +1,20 @@
title: $:/plugins/tiddlywiki/twitter/usage/sharebutton
tags: $:/tags/TwitterUsage
caption: Share Button
!! Embedding Share Buttons
|!Attribute |!Values |!Default |!Notes |
|''type'' |"shareButton" |none |"shareButton" |
|''url'' |The URL to be shared |none | |
|''text'' |Any string |none |The default, highlighted text a user sees in the Tweet web intent |
|''hashtags'' |A comma-separated list of hashtags |none |A list of hashtags to be appended to default Tweet text where appropriate |
|''align'' |"left", "right" |locale dependent (left or right, depending on the text direction of the language) |The alignment of the button within an iframe; use this to ensure flush layout when aligning buttons |
|''size'' |"medium", "large" |medium |Size of button |
|''lang'' |An ISO 639-1 language code |en |The language in which to render a widget, if supported |
|''dnt'' |"true", "false" |false |Enable Do Not Track for this widget |
|''related'' |Any comma-separated list of valid Twitter screen names |none |A list of Twitter screen names to be suggested for following after a Tweet or Tweet action is posted |
|''via'' |Any valid Twitter screen name |none |A Twitter user mentioned in the default Tweet text as via @user where appropriate |
<<twitter-usage """<$twitter type="shareButton" url="http://tiddlywiki.com/" text="Mind blown!"/>
""">>

View File

@@ -0,0 +1,22 @@
title: $:/plugins/tiddlywiki/twitter/usage/tweet
tags: $:/tags/TwitterUsage
caption: Tweet
!! Embedding Tweets
|!Attribute |!Values |!Default |!Notes |
|''type'' |"tweet" |none |"tweet" |
|''tweetID'' |ID of the tweet to render |none | |
|''conversation'' |"none", "all" |"all" |Tweets in response to another Tweet will display a compact version of the previous Tweet by default. Use "none" to hide the parent Tweet in the conversation |
|''cards'' |"hidden", "visible"|visible |Hide photos, videos, and link previews powered by Twitter Cards |
|''width'' |Positive integer |"auto", derived from container size |Set the maximum width of the embedded Tweet |
|''align'' |"left", "right", "center" |none |Float the embedded Tweet to the left or right so that text wraps around it, or align center so it floats in the middle of a paragraph |
|''theme'' |"dark", "light" |"light" |Toggle the default color scheme of the embedded Tweet |
|''linkColor'' |Hexadecimal color |"#2b7bb9" |Adjust the color of links, including hashtags and @mentions, inside the widget |
|''lang'' |An ISO 639-1 language code |en |The language in which to render a widget, if supported |
|''dnt'' |true, false |false |Enable Do Not Track for this widget |
|''related'' |Any comma-separated list of valid Twitter screen names |none |A list of Twitter screen names to be suggested for following after a Tweet or Tweet action is posted |
|''via'' |Any valid Twitter screen name |none |A Twitter user mentioned in the default Tweet text as via @user where appropriate |
<<twitter-usage """<$twitter type="tweet" tweetID="750677030589587456"/>
""">>

View File

@@ -0,0 +1,27 @@
title: $:/plugins/tiddlywiki/twitter/usage/urltimeline
tags: $:/tags/TwitterUsage
caption: Url Timeline
!! Embedding Profile Timelines
|!Attribute |!Values |!Default |!Notes |
|''type'' |"timelineUrl" |none |"timelineUrl" |
|''url'' |Absolute URL of a Twitter profile, likes, list, or collection |none | |
|''chrome'' |"noheader", "nofooter", "noborders", "transparent", "noscrollbar" |none |Toggle the display of design elements in the widget. This parameter is a space-separated list of values |
|''height'' |Positive integer |600 |Set a fixed height of the embedded widget |
|''tweetLimit'' |Range: 1-20 |none |Render a timeline statically, displaying only n number of Tweets |
|''borderColor'' |Hexadecimal color |Varies by theme |Adjust the color of borders inside the widget |
|''ariaPolite'' |"polite", "assertive", "rude" |"polite" |Apply the specified aria-polite behavior to the rendered timeline. New Tweets may be added to the top of a timeline, affecting screen readers |
|''conversation'' |"none", "all" |"all" |Tweets in response to another Tweet will display a compact version of the previous Tweet by default. Use "none" to hide the parent Tweet in the conversation |
|''cards'' |"hidden", "visible"|visible |Hide photos, videos, and link previews powered by Twitter Cards |
|''width'' |Positive integer |"auto", derived from container size |Set the maximum width of the embedded Tweet |
|''align'' |"left", "right", "center" |none |Float the embedded Tweet to the left or right so that text wraps around it, or align center so it floats in the middle of a paragraph |
|''theme'' |"dark", "light" |"light" |Toggle the default color scheme of the embedded Tweet |
|''linkColor'' |Hexadecimal color |"#2b7bb9" |Adjust the color of links, including hashtags and @mentions, inside the widget |
|''lang'' |An ISO 639-1 language code |en |The language in which to render a widget, if supported |
|''dnt'' |"true", "false" |false |Enable Do Not Track for this widget |
|''related'' |Any comma-separated list of valid Twitter screen names |none |A list of Twitter screen names to be suggested for following after a Tweet or Tweet action is posted |
|''via'' |Any valid Twitter screen name |none |A Twitter user mentioned in the default Tweet text as via @user where appropriate |
<<twitter-usage """<$twitter type="timelineUrl" url="https://twitter.com/TiddlyWiki"/>
""">>

View File

@@ -0,0 +1,29 @@
title: $:/plugins/tiddlywiki/twitter/usage/widgettimeline
tags: $:/tags/TwitterUsage
caption: Widget Timeline
!! Embedding Widget Timelines
To power an embedded timeline with a widget configuration generated at https://twitter.com/settings/widgets.
|!Attribute |!Values |!Default |!Notes |
|''type'' |"timelineWidget" |none |"timelineWidget" |
|''widgetId'' |ID of the widget |none |~|
|''chrome'' |"noheader", "nofooter", "noborders", "transparent", "noscrollbar" |none |Toggle the display of design elements in the widget. This parameter is a space-separated list of values |
|''height'' |Positive integer |600 |Set a fixed height of the embedded widget |
|''tweetLimit'' |Range: 1-20 |none |Render a timeline statically, displaying only n number of Tweets |
|''borderColor'' |Hexadecimal color |Varies by theme |Adjust the color of borders inside the widget |
|''ariaPolite'' |"polite", "assertive", "rude" |"polite" |Apply the specified aria-polite behavior to the rendered timeline. New Tweets may be added to the top of a timeline, affecting screen readers |
|''conversation'' |"none", "all" |"all" |Tweets in response to another Tweet will display a compact version of the previous Tweet by default. Use "none" to hide the parent Tweet in the conversation |
|''cards'' |"hidden", "visible"|visible |Hide photos, videos, and link previews powered by Twitter Cards |
|''width'' |Positive integer |"auto", derived from container size |Set the maximum width of the embedded Tweet |
|''align'' |"left", "right", "center" |none |Float the embedded Tweet to the left or right so that text wraps around it, or align center so it floats in the middle of a paragraph |
|''theme'' |"dark", "light" |"light" |Toggle the default color scheme of the embedded Tweet |
|''linkColor'' |Hexadecimal color |"#2b7bb9" |Adjust the color of links, including hashtags and @mentions, inside the widget |
|''lang'' |An ISO 639-1 language code |en |The language in which to render a widget, if supported |
|''dnt'' |"true", "false" |false |Enable Do Not Track for this widget |
|''related'' |Any comma-separated list of valid Twitter screen names |none |A list of Twitter screen names to be suggested for following after a Tweet or Tweet action is posted |
|''via'' |Any valid Twitter screen name |none |A Twitter user mentioned in the default Tweet text as via @user where appropriate |
<<twitter-usage """<$twitter type="timelineWidget" widgetId="570670821065379840"/>
""">>