This repository has been archived by the owner on May 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
xboxlive.xml
40 lines (36 loc) · 1.62 KB
/
xboxlive.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<extension>
<title>Xbox Live Extensions</title>
<label>Xbox Live</label>
<description>This extension contains functions exposed by Xbox Live.</description>
<uri.help>http://wiki.developer.mindtouch.com/User:Guerric</uri.help>
<namespace>xboxlive</namespace>
<function>
<name>gamerCard</name>
<description>Embeds your gamer card in the wiki page.</description>
<param name="gamerTag" type="str">Your Xbox Live gamer tag. It's your publically displayed name.</param>
<return>
<html xmlns:eval="http://mindtouch.com/2007/dekiscript">
<body>
<iframe eval:src="'http://gamercard.xbox.com/'.. string.replace(uri.encode(args.gamerTag), '+', '%20') .. '.card'" scrolling="no" frameBorder="0" height="140" width="204"><eval:expr>args.gamerTag</eval:expr></iframe>
</body>
</html>
</return>
</function>
<function>
<name>avatar</name>
<description>Embeds a picture of your avatar for all to see!</description>
<param name="gamerTag" type="str">Your Xbox Live gamer tag. It's your publically displayed name.</param>
<return>
<html xmlns:eval="http://mindtouch.com/2007/dekiscript">
<body>
<div style="width: 160px; text-align: center;" eval:title="args.gamerTag">
<div eval:style="'height: 300px; background: transparent url(http://avatar.xboxlive.com/avatar/' .. string.replace(uri.encode(args.gamerTag), '+', '%20') .. '/avatar-body.png) no-repeat top center;'"></div>
<a eval:href="'http://live.xbox.com/member/' .. string.replace(uri.encode(args.gamerTag), '+', '%20')">
<eval:expr>args.gamerTag</eval:expr>
</a>
</div>
</body>
</html>
</return>
</function>
</extension>