Widget:Twitter: Difference between revisions
From Destinypedia, the Destiny wiki
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
<noinclude>This widget allows you to embed Twitter feeds and tweets. Accepted parameters: '''user''' or '''id''' (required), '''width''', '''height''', '''theme''' (may be set to 'dark').</noinclude><includeonly><!--{if isset($user)}-->< | <noinclude>This widget allows you to embed Twitter feeds and tweets. Accepted parameters: '''user''' or '''id''' (required), '''width''', '''height''', '''theme''' (may be set to 'dark').</noinclude><includeonly><!--{if isset($user)}--><iframe src="https://syndication.twitter.com/srv/timeline-profile/screen-name/<!--{$user|escape:'url'}-->?theme=<!--{$theme|escape:'url'|default:'light'}-->" width="<!--{$width|escape:'html'|default:'250'|string_format:"%d"}-->" height="<!--{$height|escape:'html'|default:'400'|string_format:"%d"}-->"></iframe><!--{else if isset($id)}--><script type="text/javascript"> | ||
function loadx(data) { | function loadx(data) { | ||
document.write(data.html); | document.write(data.html); |
Revision as of 11:01, August 29, 2023
This widget allows you to embed Twitter feeds and tweets. Accepted parameters: user or id (required), width, height, theme (may be set to 'dark').