FANDOM


Mediawiki 1.24

Embedding remote JSON data in MediaWiki pagesEdit

The source for this content looks like:

 = Twitter =
{{#get_web_data:url=http://api.twitter.com/1/statuses/user_timeline/{{{Twitter|}}}.json?count=3|format=json|data=text=text,id_str=id_str}}
 
 {| class="table" border=0
 ! {{#if:{{{Twitter|}}}|Three Latest Tweets}} {{#for_external_table:
 {{!}}-
 {{!}} {{{text}}} }}
 |}

The {{{Twitter|}}} bit hooks in to the template field that created that People box on the right hand side of that page, which you can see in the above screenshot with my twitter account set.