打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

帮助:沙盒:修订间差异

来自 LNN的:not(博客)?
DGCK81LNN留言 | 贡献
撤销版本100309
DGCK81LNN留言 | 贡献
responsive test:​ 新章节
 
(未显示同一用户的34个中间版本)
第1行: 第1行:
{{Setlang|title=zh-cmn-Hans|en}}__NEWSECTIONLINK____NOINDEX__[[分类:管理页面]]{{DEFAULTSORT:shahe}}
{{Setlang|title=zh-cmn-Hans|en}}__NEWSECTIONLINK____NOINDEX__[[分类:管理页面]]{{DEFAULTSORT:shahe}}
== tagline ==
<pre>{{SHORTDESC:Bacon ipsum dolor amet turkey}}</pre>{{SHORTDESC:Bacon ipsum dolor amet turkey}}


== lnncrypt ==
== lnncrypt ==
第7行: 第9行:
}}
}}


== Animated {{tl|Hidebox}}? ==
== Scribunto test ==


{{MywikiParaHack|<html><details class="lnnblog-box </html><html>" </html><html>>
{{example
<summary class="lnnblog-box-heading" role=button </html><html>></html>hidebox<html></summary></html>}}
|resultheader=以上代码的显示结果:|<nowiki>
<div class="lnnblog-box-body">
{{#invoke:沙盒|sts|sPIZhVKWmV\W^M[}}
一二三四五,上山打老虎。
</div>
{{#invoke:沙盒|sts|㿣淢燿搭澸胳䫎煱差䥻巯䄖燲姐恷䯹弌胳氷奨⿾氷撛䴓⿾氷慠⿽差渟熱吰曖烥毓煤咳胳娟娉⿾棏但⿾差䥻怼强⿽}}
{{MywikiParaHack|<html></details></html>}}
{{#invoke:沙盒|sts|㿣淢燿燴撙壠胳差䣴煹摼嶿清︕䥻浗僔⿵泩䶖⿴⿽氐"姐椟燅吰曖䣴胳差搆咳复燒䥻暌燄壶煹燿䘲䶆呵䥻橣哝胳䎄烃炟焓嶿䥻姠巩姐澉漰⿽㿢}}
</nowiki>}}
 
== dpl minoredits test ==
 
{{#dpl:
|namespace=Help
|ordermethod=lastedit
|order=descending
|count=6
|addeditdate=true
|skipthispage=no
|cacheperiod=90
}}
 
{{code|1= minoredits=exclude }}:
 
{{#dpl:
|namespace=Help
|ordermethod=lastedit
|minoredits=exclude
|order=descending
|count=6
|addeditdate=true
|skipthispage=no
|cacheperiod=90
}}


{{MywikiParaHack|<html><style>
== Astrology ==
.lnnblog-box {
  max-width: 100%;
}
.lnnblog-box[data-lnnblog-hidebox-state="expand"] {
  overflow: hidden;
}
.lnnblog-box-heading {
  list-style: none;
  position: relative;
  padding-left: 1.2rem;
}
.lnnblog-box-heading::-webkit-details-marker { display: none }
.lnnblog-box-heading::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.4rem;
  margin: auto;
  height: 0;
  border: 0.3rem solid transparent;
  border-left-width: 0.5rem;
  border-left-color: currentColor;
  transform: rotate(0deg);
  transform-origin: 0.25rem 50%;
}
.lnnblog-box[open] > .lnnblog-box-heading::before {
  transform: rotate(90deg);
}
.lnnblog-box[data-lnnblog-hidebox-state="expand"] > .lnnblog-box-heading::before {
  animation: expand 250ms;
}
.lnnblog-box[data-lnnblog-hidebox-state="shrink"] > .lnnblog-box-heading::before {
  transform: rotate(0);
  animation: shrink 250ms;
}
@keyframes expand {
  from { transform: rotate(0deg); }
  to { transform: rotate(90deg); }
}
@keyframes shrink {
  from { transform: rotate(90deg); }
  to { transform: rotate(0deg); }
}
</style><script>
var animationDuration = 250


$( ".lnnblog-box-heading" ).on( "click", function ( event ) {
{{#time:m|2005-03-15}}|{{#time:d|2005-03-15}}
  var $this = $( this )
  var $parent = $this.parent()
  var $body = $this.nextAll( ".lnnblog-box-body" )


  var open = $parent.prop( "open" )
{{星座|{{#time:m|2005-03-15}}|{{#time:d|2005-03-15}}}}
  var state = $parent.attr( "data-lnnblog-hidebox-state" )


  if ( !open || state === "shrink" ) {
== 希服维基地名列表示例 ==
    event.preventDefault()
    var currentWidth = $parent.width()
    var currentHeight = $parent.height()
    $parent.stop( true, true ).prop( "open", true )
    var targetWidth = $parent.width()
    var targetHeight = $parent.height()


    $body.outerWidth( targetWidth + 1 )
{|class="wikitable"
    $this.addClass( "lnnblog-hidebox-heading-open" )
|+ 地点
    $parent
! 市/地区 !! 区 !! 地点名称 !! 位置 !! 坐标 !! 备注
      .attr( "data-lnnblog-hidebox-state", "expand" )
|-
      .width( currentWidth )
|rowspan=3| 澜沧市
      .height( currentHeight )
|rowspan=2| 马来区
    $parent.animate( {
| 自动农场 || 门前 || xyz ||
        width: targetWidth,
|-
        height: targetHeight
| 苔藓机 || 互助 || xyz ||
      }, {
|-
        duration: animationDuration,
|rowspan=1| 介寿区
        done: function () {
| 澜传佛教 || 登霞 || xyz ||
          $body.css( "width", "" )
|}
          $parent
            .css( {
              width: "",
              height: ""
            } )
            .removeAttr( "data-lnnblog-hidebox-state" )
        }
      } )
  } else if ( open || state === "expand" ) {
    event.preventDefault()
    var currentWidth = $parent.width()
    var currentHeight = $parent.height()
    $parent.stop( true, true ).prop( "open", false )
    var targetWidth = $parent.width()
    var targetHeight = $parent.height()


    state === "expand" || $body.outerWidth( currentWidth + 1 )
== lnnzhyz2svg test ==
    $this.removeClass( "lnnblog-hidebox-heading-open" )
    $parent
      .attr( "data-lnnblog-hidebox-state", "shrink" )
      .width( currentWidth )
      .height( currentHeight )
      .prop( "open", true )
      .animate( {
        width: targetWidth,
        height: targetHeight
      }, {
        duration: animationDuration,
        done: function () {
          $body.css( "width", "" )
          $parent
            .css( {
              width: "",
              height: ""
            } )
            .prop( "open", false )
            .removeAttr( "data-lnnblog-hidebox-state" )
        }
      } )
  }
  //return false
})
</script></html>}}


== customized edit toolbar ==
<span class="lnnzhyz2svg">  ,'''因为''不是'''''。你家 的成,'''''你爸''嫌你的轻'''。</span>


<html><style>
<html><style>
#lnnblog-edittoolbar {
#lnnzhyz2svgtest {font-size: 3rem;color:black;background:white;padding:0.5rem}
font-size: 0.75rem;
#lnnzhyz2svgtest rt {
background: #f9f9f9;
    font-size: 14px;
border: 1px solid #ddd;
width: fit-content;
padding: 2px;
margin-bottom: 2px;
border-radius: 3px;
}
}
#lnnblog-edittoolbar div {
#lnnzhyz2svgtest ruby {
display: inline-block;
     ruby-position: under;
     margin-right: 0.25rem;
}
}
#lnnblog-edittoolbar button {
#lnnzhyz2svgtest-2 ruby ruby rt{font-family:XEGOEPUAall}
margin-right: 1px;
/*#wpTextbox1{font:24px monospace,'Zhunghua' !important}*/
font-size: inherit;
</style></html>
line-height: 1.25;
 
}
<div id="lnnzhyz2svgtest">
</style><script>
 
$( function () {
<span class="lnnzhyz2svg">{{ruby|{{ruby||wǒ}}|我|{{ruby||néng}}|能|{{ruby||tūnxià}}|吞下|{{ruby||bōlí}}|玻璃|{{ruby||ér}}|而|{{ruby||bù}}|不|{{ruby||shāng}}|伤|{{ruby||shēntǐ}}|身体}}.</span>
 
<span id="lnnzhyz2svgtest-2">{{ruby|{{ruby|<span class{{=}}"lnnzhyz2svg"></span>|}}|我|{{ruby|<span class{{=}}"lnnzhyz2svg"></span>|}}|能|{{ruby|<span class{{=}}"lnnzhyz2svg"></span>| }}|吞下|{{ruby|<span class{{=}}"lnnzhyz2svg"></span>| }}|玻璃|{{ruby|<span class{{=}}"lnnzhyz2svg"></span>|}}|而|{{ruby|<span class{{=}}"lnnzhyz2svg"></span>|}}|不|{{ruby|<span class{{=}}"lnnzhyz2svg"></span>|}}|伤|{{ruby|<span class{{=}}"lnnzhyz2svg"></span>| }}|身体}}.</span>
 
</div>
 
== syntaxhighlight ==


/* 重新定义编辑工具栏 */
<syntaxhighlight lang="python" line>
if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) {
def quick_sort(arr):
  var $newToolbar = $( '<div id="lnnblog-edittoolbar" lang="zh-cmn-Hans">' )
less = []
  var $group = null
pivot_list = []
more = []
if len(arr) <= 1:
return arr
else:
pass
</syntaxhighlight>


  function addButton( label, title, before, after, sample ) {
== bottest ==
    $group.append( $( "<button>" )
      .attr( "type", "button" )
      .attr( "class", "lnnblog-button-small" )
      .attr( "title", title )
      .append( $( "<tt>" ).text( label ) )
      .on( "mousedown", false ) // 防止焦点离开文本框
      .click( mw.toolbar.insertTags.bind(mw.toolbar, before, after || "", sample || "") ) )
  }
  function newGroup() {
    $group = $( '<div>' ).appendTo( $newToolbar )
  }


  newGroup()
yes
  addButton( "[[]]",    "内链",              "[[", "]]" )
  addButton( "lelink",  "英文内链",          "{{lelink|", "}}" )
  addButton( "{{|}}",  "模板调用",          "{{|", "}}" )
  newGroup()
  addButton( "le",      "英文文本",          "{{le|", "}}" )
  addButton( "lj",      "逻辑语文本",        "{{lj|", "}}" )
  addButton( "lang",    "文本语言",          "{{lang|und|", "}}" )
  newGroup()
  addButton( "h2",      "二级标题",          "== ", " ==" )
  addButton( "h3",      "三级标题",          "=== ", " ===" )
  newGroup()
  addButton( "table",  "wikitable 表格",    "{|class=wikitable\n! ", "\n|-\n|\n|}" )
  addButton( "box",    "box 模板",          "{{box|标题|2=\n", "\n}}" )
  addButton( "hidebox", "hidebox 模板",      "{{hidebox|标题|2=\n", "\n}}" )
  newGroup()
  addButton( "nw",      "nowiki 标签",        "<nowiki>", "</nowiki>" )
  addButton( "nw/",    "空 nowiki 标签",    "<nowiki/>" )
  addButton( "code",    "行内代码",          "{{code|", "}}" )
  addButton( "pre",    "pre 块",            "<pre>\n", "\n</pre>" )
  addButton( "syntax",  "代码高亮块",        "<syntaxhighlight lang=javascript>\n", "\n</syntaxhighlight>" )
  newGroup()
  addButton( "subst",  "模板替代",          "{{subst:", "}}" )
  addButton( "pn",      "当前页面名称",      mw.config.get( 'wgTitle' ) )
  addButton( "fpn",    "带名字空间的当前页面名称", mw.config.get( 'wgPageName' ) )
  newGroup()
  addButton( "Cat",    "分类",              "[[分类:", "]]" )
  addButton( "SORT",    "默认排序字",        "{{DEFAULTSORT:", "}}", mw.config.get( "wgTitle" ) )
  newGroup()
  addButton( "<!--",    "HTML 注释",          "<!--", "-->" )
  addButton( "ni",      "noinclude 标签",    "<noinclude>", "</noinclude>" )
  addButton( "ni/",    "空 noinclude 标签",  "<noinclude/>", "" )
  addButton( "io",      "includeonly 标签",  "<includeonly>", "</includeonly>" )
  addButton( "oi",      "onlyinclude 标签",  "<onlyinclude>", "</onlyinclude>" )
  newGroup()
  addButton( "html",    "原始 HTML 块",      "{{MywikiParaHack|<html>", "<\/html>}}" )
  addButton( "/html",  "反向原始 HTML 标签", "<\/html>", "<html>" )
  addButton( "script",  "script 标签",        "<script>\n", "\n<\/script>" )
  addButton( "style",  "style 标签",        "<style>\n", "\n</style>" )


  $( "#ydnedittoolbar" ).parent().replaceWith( $newToolbar )
== responsive test ==
}


} )
[[File:Ligood mars.jpg|thumb|500px]]
</script></html>

2025年9月7日 (日) 18:18的最新版本

tagline

{{SHORTDESC:Bacon ipsum dolor amet turkey}}

模板:SHORTDESC:Bacon ipsum dolor amet turkey

lnncrypt

              .    .   ,       ,​“”!!(

Scribunto test

 {{#invoke:沙盒|sts|sPIZhVKWmV\W^M[}}
 
 {{#invoke:沙盒|sts|㿣淢燿搭澸胳䫎煱差䥻巯䄖燲姐恷䯹弌胳氷奨⿾氷撛䴓⿾氷慠⿽差渟熱吰曖烥毓煤咳胳娟娉⿾棏但⿾差䥻怼强⿽}}
 
 {{#invoke:沙盒|sts|㿣淢燿燴撙壠胳差䣴煹摼嶿清︕䥻浗僔⿵泩䶖⿴⿽氐"姐椟燅吰曖䣴胳差搆咳复燒䥻暌燄壶煹燿䘲䶆呵䥻橣哝胳䎄烃炟焓嶿䥻姠巩姐澉漰⿽㿢}}

以上代码的显示结果:

LoveWithRichard

“初一寒假,由于我的成绩不是很理想,又黑暗、又孤独、又颓废。我几乎每天都会听这些歌,无论时间、地点、我的心情。

“初一下学期,我看了它所出自的动漫《化物语》。可能是因为每天都看,我对这歌曲中的女主有了一种特殊的喜欢,类似你们所说的追星或是偶像。”

dpl minoredits test

minoredits=exclude:

Astrology

03|15

双鱼座

希服维基地名列表示例

地点
市/地区 地点名称 位置 坐标 备注
澜沧市 马来区 自动农场 门前 xyz
苔藓机 互助 xyz
介寿区 澜传佛教 登霞 xyz

lnnzhyz2svg test

  ,因为不是。你家 的成,你爸嫌你的轻

()()(néng)()(tūnxià)(吞下)(bōlí)(玻璃)(ér)()()()(shāng)()(shēntǐ)(身体).

()()()()( )(吞下)( )(玻璃)()()()()()()( )(身体).

syntaxhighlight

def quick_sort(arr):
	less = []
	pivot_list = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass

bottest

yes

responsive test