Diferencia entre revisiones de «Widget:WikiEducatorActivity»
De WikiEducator
(copy from en.WE) |
m (1 revisión: import from en.WE after update to MW 1.23+) |
||
(3 revisiones intermedias por el mismo usuario no mostrado) | |||
Línea 3: | Línea 3: | ||
<nowiki>{{#widget:WikiEducatorActivity|user=UserName}}</nowiki> | <nowiki>{{#widget:WikiEducatorActivity|user=UserName}}</nowiki> | ||
− | ;user:specified user (if no user specified, defaults to viewing user) | + | ;user:specified user (if no user specified, defaults to viewing user) |
− | </noinclude><includeonly><!--{counter name="WEactivityID" assign="WEactivityID"}--><div class="WEactivity" id="WEactivity<!--{$WEactivityID|validate:int}-->"><img class="WEnotesSpinner" src="/skins/common/images/ | + | </noinclude><includeonly><!--{counter name="WEactivityID" assign="WEactivityID"}--><div class="WEactivity" id="WEactivity<!--{$WEactivityID|validate:int}-->"><img class="WEnotesSpinner" src="/skins/common/images/ajax-loader.gif" alt="Loading..." style="margin-left: 53px;" /></div> |
<script type="text/javascript">/*<![CDATA[*/ | <script type="text/javascript">/*<![CDATA[*/ | ||
$(function() { | $(function() { | ||
− | $('head').append('<link href="/ | + | $('head').append('<link href="/extensions/WE/WEactivity/WEactivity.css" rel="stylesheet" />'); |
$.when( | $.when( | ||
$.getScript('//cdnjs.cloudflare.com/ajax/libs/d3/3.2.2/d3.v3.js'), | $.getScript('//cdnjs.cloudflare.com/ajax/libs/d3/3.2.2/d3.v3.js'), | ||
− | $.getScript('/ | + | $.getScript('/extensions/WE/WEactivity/WEactivity.js') |
).done(function() { | ).done(function() { | ||
WEactivity('WEactivity<!--{$WEactivityID|validate:int}-->', '<!--{$user|escape:quotes}-->'); | WEactivity('WEactivity<!--{$WEactivityID|validate:int}-->', '<!--{$user|escape:quotes}-->'); | ||
}); | }); | ||
})/*]]>*/</script></includeonly> | })/*]]>*/</script></includeonly> |
Última revisión de 14:48 3 sep 2014
Graphic display of recent activity for the specified user.
Usage
{{#widget:WikiEducatorActivity|user=UserName}}
- user
- specified user (if no user specified, defaults to viewing user)