LLWiki正在建设中,欢迎加入我们

“Widget:Sandbox”的版本间差异

跳转到导航 跳转到搜索
<includeonly><!--{if !isset($wgWidgetSandbox) || !$wgWidgetSandbox}--><!--{assign var="wgWidgetSandbox" value=true scope="global"}-->
<script>
//</includeonly>JavaScript脚本:<pre lang="js">
// 这里输入代码
 
(window.RLQ = window.RLQ || []).push(function() {
console.log("jQuery is available for widgets");
(function($, mw) {
$('#widget-sandbox').text("测试成功!");
})(jQuery, mediaWiki);
});
//</pre>
<includeonly>
<style>
/* </includeonly>CSS样式表:<pre lang="css"> */
 
/* 这里输入代码 */
 
</style>
<!--{/if}--></includeonly><noinclude>效果:
<span id="widget-sandbox"></span>{{#widget:sandbox}}</noinclude>
 
<span id="widget-sandbox"></span>{{#widget:sandbox}}</noinclude>