|
|
| (未显示同一用户的35个中间版本) |
| 第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 == |
| if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) {
| |
| var $newToolbar = $( '<div id="lnnblog-edittoolbar" lang="zh-cmn-Hans">' )
| |
| var $group = null
| |
|
| |
|
| function addButton( label, title, before, after, sample ) {
| | <syntaxhighlight lang="python" line> |
| $group.append( $( "<button>" )
| | def quick_sort(arr): |
| .attr( "type", "button" )
| | less = [] |
| .attr( "class", "lnnblog-button-small" )
| | pivot_list = [] |
| .attr( "title", title )
| | more = [] |
| .append( $( "<tt>" ).text( label ) )
| | if len(arr) <= 1: |
| .on( "mousedown", false ) // 防止焦点离开文本框
| | return arr |
| .click( mw.toolbar.insertTags.bind(mw.toolbar, before, after || "", sample || "") ) )
| | else: |
| }
| | pass |
| function newGroup() {
| | </syntaxhighlight> |
| $group = $( '<div>' ).appendTo( $newToolbar )
| |
| }
| |
|
| |
|
| newGroup()
| | == bottest == |
| 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 )
| | yes |
| }
| |
|
| |
|
| } )
| | == responsive test == |
| </script></html>
| |
|
| |
|
| {{#expr: sin 6}}
| | [[File:Ligood mars.jpg|thumb|500px]] |
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
,因为不是。你家 的成,你爸嫌你的轻。
.
.
syntaxhighlight
def quick_sort(arr):
less = []
pivot_list = []
more = []
if len(arr) <= 1:
return arr
else:
pass
bottest
yes
responsive test
