본문으로 건너뛰기
더시드위키
최근 변경
최근 토론
도구 모음
냥
(r1716판 RAW)
보기
RAW
역사
[[분류:냥]] {{{+1 {{{+1 +1+1 > 14.25 * 1.28889 * 1.28889 => 23.67259259300074px}}}}}} {{{+2 +2 > 14.25 * 1.38889 => 19.791666666825px}}} ||<tablebgcolor=transparent><rowbgcolor=#00a495><rowcolor=#fff> 입력 || 출력 || 적용 크기 || 입력 || 출력 || 적용 크기 || || {{{기본}}} || 기본 ||1.00000em || {{{기본}}} || 기본 ||1.00000em || || {{{{{{+1 +1단계}}}}}} || {{{+1 +1단계}}} ||1.28889em || {{{{{{-1 -1단계}}}}}} || {{{-1 -1단계}}} ||0.92589em || || {{{{{{+2 +2단계}}}}}} || {{{+2 +2단계}}} ||1.38889em || {{{{{{-2 -2단계}}}}}} || {{{-2 -2단계}}} ||0.83333em || || {{{{{{+3 +3단계}}}}}} || {{{+3 +3단계}}} ||1.48144em || {{{{{{-3 -3단계}}}}}} || {{{-3 -3단계}}} ||0.74067em || || {{{{{{+4 +4단계}}}}}} || {{{+4 +4단계}}} ||1.57400em || {{{{{{-4 -4단계}}}}}} || {{{-4 -4단계}}} ||0.64811em || || {{{{{{+5 +5단계}}}}}} || {{{+5 +5단계}}} ||1.66667em || {{{{{{-5 -5단계}}}}}} || {{{-5 -5단계}}} ||0.62222em || ||<-6><bgcolor=#00a495><color=#fff> 응용 || ||<-3> {{{{{{+5 {{{+5 +5+5단계}}}}}}}}} ||<-3> {{{+5 {{{+5 +5+5단계}}}}}} || [include(틀:문서 가져옴/the seed, 위키=나, 문서명=나무위키:문법 도움말, 버전=882, UUID=0c47b950-9eec-41ba-a39b-e66d937d52b9)] ##@||<tablebgcolor=transparent><rowbgcolor=#00a495><rowcolor=#fff> 입력 || 출력 || 적용 크기 || 입력 || 출력 || 적용 크기 || ##@|| {{{기본}}} || 기본 ||1.00000em || {{{기본}}} || 기본 ||1.00000em || ##@|| {{{{{{+1 +1단계}}}}}} || {{{+1 +1단계}}} ||1.28889em || {{{{{{-1 -1단계}}}}}} || {{{-1 -1단계}}} ||0.92589em || ##@|| {{{{{{+2 +2단계}}}}}} || {{{+2 +2단계}}} ||1.38889em || {{{{{{-2 -2단계}}}}}} || {{{-2 -2단계}}} ||0.83333em || ##@|| {{{{{{+3 +3단계}}}}}} || {{{+3 +3단계}}} ||1.48144em || {{{{{{-3 -3단계}}}}}} || {{{-3 -3단계}}} ||0.74067em || ##@|| {{{{{{+4 +4단계}}}}}} || {{{+4 +4단계}}} ||1.57400em || {{{{{{-4 -4단계}}}}}} || {{{-4 -4단계}}} ||0.64811em || ##@|| {{{{{{+5 +5단계}}}}}} || {{{+5 +5단계}}} ||1.66667em || {{{{{{-5 -5단계}}}}}} || {{{-5 -5단계}}} ||0.62222em || {{{#!if ap=5, bp=0, bb="" }}}{{{#!if ap-bp>=9 {{{#!if bp+=9, bb=bb+"000000000" }}}}}}{{{#!if ap-bp>=4 {{{#!if bp+=4, bb=bb+"0000" }}}}}}{{{#!if ap-bp>=2 {{{#!if bp+=2, bb=bb+"00" }}}}}}{{{#!if ap-bp>=2 {{{#!if bp+=2, bb=bb+"00" }}}}}}{{{#!if ap-bp>=1 {{{#!if bp+=1, bb=bb+"0" }}}}}} @ap@ @bp@ {{{#!if bl = bb.length }}}@bl@자 ---- {{{#!if ap=5, bp=0, bb="" }}}{{{#!if ap>bp {{{#!if bp=ap, bb+="000000000000000000" }}}{{{#!if bb=bb.substr(0,ap) }}}}}} @ap@ @bp@ {{{#!if bl = bb.length }}}@bl@자 ## ||<#fff"> <#fff'''{{{#red \"}}}'''>왜 문제가 없지 || ## folding, wiki(스타일), html은 뒤에 띄어쓰기 없어도 작동. 다만 dark-style은 꼭 "-"만 사용 가능. if, syntax는 띄어쓰기 없을 시 에러. ## == 문단 == {{{#!folding 계산기 테스트 {{{-5 [include(틀:계산기2, a=1.1, f=-, b=-1.2)] [include(틀:계산기2, a=9223372036854775808, f=-, b=-9223372036854775800)] [include(틀:계산기2, a=., f=-, b=-.)] [include(틀:계산기2, a=-, f=+, b=-)] [include(틀:계산기2, a=10, f=/, b=3)] [include(틀:계산기2, a=-5, f=/, b=200)] [include(틀:계산기2, a=-5, f=*, b=200)] [include(틀:계산기2, a=123459, f=/, b=2)] [include(틀:계산기2, a=12345, f=-, b=67890)] [include(틀:계산기2, a=123456789012345678, f=-, b=-901234567890123456)] [include(틀:계산기2, a=123456789012345678.901234567890123456, f=+, b=789012345678901234.567890123456789012)] [include(틀:계산기2, a=123456789012345678.9012345678901234567, f=+, b=789012345678901234.567890123456789012)] [include(틀:계산기2, a=-1, f=*, b=-5)] [include(틀:계산기2, a=-3, f=/, b=7)] [include(틀:계산기2, a=1.1, f=+, b=0.1)] [include(틀:계산기2, a=1.123, f=+, b=0.877)] [include(틀:계산기2, a=1.123, f=+, b=0.878)] [include(틀:계산기2, a=1.333, f=-, b=4.354)] [include(틀:계산기2, a=7.89, f=-, b=12.345)] [include(틀:계산기2, a=1, f=-, b=0.000000000000000001)] [include(틀:계산기2, a=0.999999999999999999, f=+, b=0.000000000000000001)] [include(틀:계산기2, a=1.000000000000000002, f=-, b=2.000000000000000001)] [include(틀:계산기2, a=100000000000000000, f=*, b=100000000000000000)] [include(틀:계산기2, a=123456789012345678, f=*, b=789012345678901234)] [include(틀:계산기2, a=123456789012345678.901234567890123456, f=*, b=789012345678901234.567890123456789012)] [include(틀:계산기2, a=0, f=*, b=789012345678901234.567890123456789012)]}}} 아직은 소수끼리의 계산은 되지 않는 모양이다. 사실 그도 그럴 것이 gauss함수를 가져오지 않았기 때문)}}} {{{#!if json={'a':'b', 'c':'d'} json={'a':'b', 'c':'d'}[br] }}}{{{#!if json['a'] == 'b' json['a'] == 'b'[br] }}}{{{#!if list = ['a', 'b'] list = ['a', 'b'][br] }}}{{{#!if list[1] == 'b' list[1] == 'b'[br] }}} [[../냥]] < 볼드체. 단, {{{../}}}뒤에 붙는 이름이 자기자신과 같은 이름이면 볼드체, 다른 이름(예 : [[../냥냥]], [[../냥/냥]])이면 볼드체가 아니다. 문서명이 '[[냥/냥|(상위문서명)/냥]]'일 경우에도 볼드체가 된다. 이 문서에는 상위 문서가 없으니 그냥 '냥' 으로 링크되는 듯 하다. [[냥#]] < 볼드체 [[냥#ㅁㄴㅇㄹ|냥#ㅁㄴㅇㄹ]] < 볼드체아님 [[문서:냥]] < 볼드체아님 [include(틀:계산기, r=13)] \[include(틀:계산기, r=13)] 생각해보니까 그냥 r을 지정할 수도 있겠구나 [include(틀:계산기, a=123456789, f=+, b=1)] [include(틀:계산기, a=123456789, f=-, b=1)] [include(틀:계산기, a=123459, f=*, b=2)] [include(틀:계산기, a=123459, f=/, b=2)] == 그래프구상 == {{{#!if i=0, x=0 }}}<math>x^2</math> {{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 }}}{{{#!if true #tk : thickness (px) ; wd : width (px) {{{#!if tk=1+0.0, color="#666", wd=10+0.0 }}}}}}{{{#!if tk=(+tk)/2, tk=tk.toString(), dis="display: inline-table; background: linear-gradient", rb="to right bottom", rt="to right top", tp="transparent", c1="calc(50% - "+tk+"px)", c2="calc(50% + "+tk+"px)", c3=tp+" "+c1+", "+color+" "+c1+" "+c2+", "+tp+" "+c2, hg="height: ", wd=wd.toString(), wdx="width: "+wd+"px", vag="vertical-align: calc" }}} {{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y1@px; @wdx@; @vag@(@v1@px + @tk@px)" }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y2@px; @wdx@; @vag@(@v2@px + @tk@px);" }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y3@px; @wdx@; @vag@(@v3@px + @tk@px);" }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y4@px; @wdx@; @vag@(@v4@px + @tk@px);" }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y5@px; @wdx@; @vag@(@v5@px + @tk@px);" }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y6@px; @wdx@; @vag@(@v6@px + @tk@px);" }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y7@px; @wdx@; @vag@(@v7@px + @tk@px);" }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y8@px; @wdx@; @vag@(@v8@px + @tk@px);" }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y9@px; @wdx@; @vag@(@v9@px + @tk@px);" }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y10@px; @wdx@; @vag@(@v10@px + @tk@px)" }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y11@px; @wdx@; @vag@(@v11@px + @tk@px)" }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y12@px; @wdx@; @vag@(@v12@px + @tk@px)" }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y13@px; @wdx@; @vag@(@v13@px + @tk@px)" }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y14@px; @wdx@; @vag@(@v14@px + @tk@px)" }}} == 나무나무마크구상 == * 할거 > 분류 ## \{{{#!html <div style="clear: both"/>}}} ## == clearfix input={{{냥[[링크|냥]]냥[[https://namu.wiki/w/사용자:nyangx3|냥]]냥}}} {{{#!wiki style="display: none" {{{#!if input='냥[[링크|냥]]냥[[https://namu.wiki/w/사용자:nyangx3|냥]]냥' }}} {{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8', outLink='' }}}{{{#!if linkOpen = input.indexOf('[['), linkClose = input.indexOf(']]') }}}{{{#!if linkRaw = input.substring(linkOpen, linkClose+2) }}}{{{#!if linkOpen != -1 && linkClose != -1 && linkOpen+2 < linkClose ## [[]] 인 경우 linkOpen+2 == linkClose 임 ^^^^^^^^^^^^^^^^^^^^^^ {{{#!if divider = linkRaw.indexOf('|') }}}{{{#!if divider == -1 ##[[링크]] {{{#!if href = linkRaw.substring(2, linkRaw.length-2) }}} }}}{{{#!if divider != -1 {{{#!if (divider == 2) && (divider+1 == linkRaw.length-2) {{{#!if break = true, input = input.substring(0, linkOpen) + input.substring(linkClose+2) ##[[|]] > 출력 x }}} }}} {{{#!if (divider == 2) && !break {{{#!if break = true, href = linkRaw.substring(divider+1, linkRaw.length-2), linkPrint = href ##[[|링크]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로. }}} }}} {{{#!if (divider+1 == linkRaw.length-2) && !break ##[[링크|]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로. {{{#!if break = true, href = linkRaw.substring(2, divider), linkPrint = href @linkPrint@ @href@ }}} }}} {{{#!if !break {{{#!if href = linkRaw.substring(2, divider), linkPrint = linkRaw.substring(divider+1, linkRaw.length-2) }}} }}} }}} {{{#!if isLink = (href.startsWith('https://') || href.startsWith('http://') || href.startsWith('ftp://')), isLink {{{#!if linkColor = 'none', outLink = 'asdf' }}} }}}{{{#!if isCategory = (href.startsWith('분류:')), isCategory ## 나중에생각 - 실제로 분류되지는 않고(하고 싶어도 못 함 display: none으로 없어지는 것도 아니고) 그냥 분류 느낌만 내기 }}}{{{#!if !(isCategory || isLink) {{{#!if href = 'https://theseed.io/w/'+href }}} }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -1.2em' + outLink + '"><a href="' + href + '"><div style="color: ' + linkColor + '; display: inline">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2) }}} }}} ########### {{{#!if h=null,a=null,b=false,c='#0275d8',d='' }}}{{{#!if e=input.indexOf('[['),x=input.indexOf(']]') }}}{{{#!if z=input.substring(e,x+2) }}}{{{#!if e!=-1&&x!=-1&&e+2<x {{{#!if g=z.indexOf('|') }}}{{{#!if g==-1 {{{#!if h=z.substring(2,z.length-2) }}}}}}{{{#!if g!=-1 {{{#!if (g==2)&&(g+1==z.length-2) {{{#!if b=true,input=input.substring(0,e)+input.substring(x+2) }}}}}}{{{#!if (g==2)&&!b {{{#!if b=true,h=z.substring(g+1,z.length-2),a=h }}}}}}{{{#!if (g+1==z.length-2)&&!b {{{#!if b=true,h=z.substring(2,g),a=h }}}}}}{{{#!if !b {{{#!if h=z.substring(2,g),a=z.substring(g+1,z.length-2) }}}}}}}}}{{{#!if isLink=(h.startsWith('https://')||h.startsWith('http://')||h.startsWith('ftp://')),isLink {{{#!if c='none',d='asdf' }}}}}}{{{#!if isCategory=(h.startsWith('분류:')),isCategory }}}{{{#!if !(isCategory||isLink) {{{#!if h='https://theseed.io/w/'+h }}}}}}{{{#!if input=input.substring(0,e)+'<div style="display:inline-table"><div style="overflow:hidden"><div style="margin-left:-1.2em'+d+'"><a href="'+h+'"><div style="color:'+c+';display:inline">'+a+'</div></a></div></div></div>'+input.substring(x+2) }}}}}} }}} output: {{{#!html @input@}}} == 나무나무마크구상2 == 할거 : darkstyle 리터럴귀찮음 if folding syntax는 될리가없음 input='냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue; display: inline"<br>냥텍스트\}\}\}asdf\{\{\{#;color:red,#f00 asdf\}\}\}\{\{\{-3 size\}\}\}' ##괄호를 ) 를 찾고 (를 나중에 찾는 방식이라(이게 로직이 더 간단함 근데 처리부분 길어지면 바꿀수도) input에 다른 거 오면 창남ㅇㅇ {{{#!wiki style="display: none" {{{#!if input='냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue; display: inline"<br>냥텍스트\}\}\}asdf\{\{\{#;color:red,#f00 asdf\}\}\}\{\{\{-6 size\}\}\}' }}} ############################## {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') }}} {{{#!if _ParOpen == -1 {{{#!if Match=true }}} }}}{{{#!if _ParOpen != -1 {{{#!if ParOpen=_ParOpen }}} }}} ############################ {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') }}} {{{#!if _ParOpen == -1 {{{#!if Match=true }}} }}}{{{#!if _ParOpen != -1 {{{#!if ParOpen+=_ParOpen+3 }}} }}} ############################ {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') }}} {{{#!if _ParOpen == -1 {{{#!if Match=true }}} }}}{{{#!if _ParOpen != -1 {{{#!if ParOpen+=_ParOpen+3 }}} }}} }}} ########################### {{{#!if Match {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) }}} }}} {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') }}}{{{#!if BrL != -1 && StyleL!=-1 {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) }}} }}} }}} {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') }}}{{{#!if Blank!=-1 {{{#!if Comma != -1 {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) }}} }}} {{{#!if Comma == -1 {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor }}} }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. }}} }}} }}} {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-' {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ') }}}{{{#!if Blank==5 {{{#!if Size=input.substr(ParOpen+Blank-2, 2) }}} {{{#!if Size == '+1' {{{#!if Em='1.28889em' }}}}}}{{{#!if Size == '+2' {{{#!if Em='1.38889em' }}}}}}{{{#!if Size == '+3' {{{#!if Em='1.48144em' }}}}}}{{{#!if Size == '+4' {{{#!if Em='1.57400em' }}}}}}{{{#!if Size == '+5' {{{#!if Em='1.66667em' }}}}}}{{{#!if Size == '-1' {{{#!if Em='0.92589em' }}}}}}{{{#!if Size == '-2' {{{#!if Em='0.83333em' }}}}}}{{{#!if Size == '-3' {{{#!if Em='0.74067em' }}}}}}{{{#!if Size == '-4' {{{#!if Em='0.64811em' }}}}}}{{{#!if Size == '-5' {{{#!if Em='0.62222em' }}}}}} {{{#!if Text = input.substring(ParOpen+Blank,ParClose) }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) }}} }}} }}} }}} }}} ############################## {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') }}} {{{#!if _ParOpen == -1 {{{#!if Match=true }}} }}}{{{#!if _ParOpen != -1 {{{#!if ParOpen=_ParOpen }}} }}} ############################ {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') }}} {{{#!if _ParOpen == -1 {{{#!if Match=true }}} }}}{{{#!if _ParOpen != -1 {{{#!if ParOpen+=_ParOpen+3 }}} }}} ############################ {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') }}} {{{#!if _ParOpen == -1 {{{#!if Match=true }}} }}}{{{#!if _ParOpen != -1 {{{#!if ParOpen+=_ParOpen+3 }}} }}} }}} ########################### {{{#!if Match {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) }}} }}} {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') }}}{{{#!if BrL != -1 && StyleL!=-1 {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) }}} }}} }}} {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') }}}{{{#!if Blank!=-1 {{{#!if Comma != -1 {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) }}} }}} {{{#!if Comma == -1 {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor }}} }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. }}} }}} }}} {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-' {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ') }}}{{{#!if Blank==5 {{{#!if Size=input.substr(ParOpen+Blank-2, 2) }}} {{{#!if Size == '+1' {{{#!if Em='1.28889em' }}}}}}{{{#!if Size == '+2' {{{#!if Em='1.38889em' }}}}}}{{{#!if Size == '+3' {{{#!if Em='1.48144em' }}}}}}{{{#!if Size == '+4' {{{#!if Em='1.57400em' }}}}}}{{{#!if Size == '+5' {{{#!if Em='1.66667em' }}}}}}{{{#!if Size == '-1' {{{#!if Em='0.92589em' }}}}}}{{{#!if Size == '-2' {{{#!if Em='0.83333em' }}}}}}{{{#!if Size == '-3' {{{#!if Em='0.74067em' }}}}}}{{{#!if Size == '-4' {{{#!if Em='0.64811em' }}}}}}{{{#!if Size == '-5' {{{#!if Em='0.62222em' }}}}}} {{{#!if Text = input.substring(ParOpen+Blank,ParClose) }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) }}} }}} }}} }}} }}} ############################## {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') }}} {{{#!if _ParOpen == -1 {{{#!if Match=true }}} }}}{{{#!if _ParOpen != -1 {{{#!if ParOpen=_ParOpen }}} }}} ############################ {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') }}} {{{#!if _ParOpen == -1 {{{#!if Match=true }}} }}}{{{#!if _ParOpen != -1 {{{#!if ParOpen+=_ParOpen+3 }}} }}} ############################ {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') }}} {{{#!if _ParOpen == -1 {{{#!if Match=true }}} }}}{{{#!if _ParOpen != -1 {{{#!if ParOpen+=_ParOpen+3 }}} }}} }}} ########################### {{{#!if Match {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) }}} }}} {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') }}}{{{#!if BrL != -1 && StyleL!=-1 {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) }}} }}} }}} {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') }}}{{{#!if Blank!=-1 {{{#!if Comma != -1 {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) }}} }}} {{{#!if Comma == -1 {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor }}} }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. }}} }}} }}} {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-' {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ') }}}{{{#!if Blank==5 {{{#!if Size=input.substr(ParOpen+Blank-2, 2) }}} {{{#!if Size == '+1' {{{#!if Em='1.28889em' }}}}}}{{{#!if Size == '+2' {{{#!if Em='1.38889em' }}}}}}{{{#!if Size == '+3' {{{#!if Em='1.48144em' }}}}}}{{{#!if Size == '+4' {{{#!if Em='1.57400em' }}}}}}{{{#!if Size == '+5' {{{#!if Em='1.66667em' }}}}}}{{{#!if Size == '-1' {{{#!if Em='0.92589em' }}}}}}{{{#!if Size == '-2' {{{#!if Em='0.83333em' }}}}}}{{{#!if Size == '-3' {{{#!if Em='0.74067em' }}}}}}{{{#!if Size == '-4' {{{#!if Em='0.64811em' }}}}}}{{{#!if Size == '-5' {{{#!if Em='0.62222em' }}}}}} {{{#!if Text = input.substring(ParOpen+Blank,ParClose) }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) }}} }}} }}} }}} }}} ############################## {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') }}} {{{#!if _ParOpen == -1 {{{#!if Match=true }}} }}}{{{#!if _ParOpen != -1 {{{#!if ParOpen=_ParOpen }}} }}} ############################ {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') }}} {{{#!if _ParOpen == -1 {{{#!if Match=true }}} }}}{{{#!if _ParOpen != -1 {{{#!if ParOpen+=_ParOpen+3 }}} }}} ############################ {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') }}} {{{#!if _ParOpen == -1 {{{#!if Match=true }}} }}}{{{#!if _ParOpen != -1 {{{#!if ParOpen+=_ParOpen+3 }}} }}} }}} ########################### {{{#!if Match {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) }}} }}} {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') }}}{{{#!if BrL != -1 && StyleL!=-1 {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) }}} }}} }}} {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') }}}{{{#!if Blank!=-1 {{{#!if Comma != -1 {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) }}} }}} {{{#!if Comma == -1 {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor }}} }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. }}} }}} }}} {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-' {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ') }}}{{{#!if Blank==5 {{{#!if Size=input.substr(ParOpen+Blank-2, 2) }}} {{{#!if Size == '+1' {{{#!if Em='1.28889em' }}}}}}{{{#!if Size == '+2' {{{#!if Em='1.38889em' }}}}}}{{{#!if Size == '+3' {{{#!if Em='1.48144em' }}}}}}{{{#!if Size == '+4' {{{#!if Em='1.57400em' }}}}}}{{{#!if Size == '+5' {{{#!if Em='1.66667em' }}}}}}{{{#!if Size == '-1' {{{#!if Em='0.92589em' }}}}}}{{{#!if Size == '-2' {{{#!if Em='0.83333em' }}}}}}{{{#!if Size == '-3' {{{#!if Em='0.74067em' }}}}}}{{{#!if Size == '-4' {{{#!if Em='0.64811em' }}}}}}{{{#!if Size == '-5' {{{#!if Em='0.62222em' }}}}}} {{{#!if Text = input.substring(ParOpen+Blank,ParClose) }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) }}} }}} }}} }}} }}} ########################### }}} output: {{{#!html @input@}}} == ㅁㄴㅇㄹ == [include(a)]''''''[include(a)][include(a)] [[]][include(a)][include(a)][include(a)] {{{#!wiki style="background: skyblue; margin: 0 auto; padding: 5px; max-width: 500px" ||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><bgcolor=#000>|| ||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><rowbgcolor=#000>|| ||<colbgcolor=#000>|| ||<tan>|| ||<tablealign=center><tablewidth=100%><bgcolor=#000>|| ||<tablealign=center><tablewidth=100%>||}}} Mozilla/5.0 (compatible; Daum/1.0; +http://ws.daum.net/aboutkr.html) ok Mozilla/5.0 (compatible; coccocbot-web/1.0; +http://help.coccoc.com/web) ok \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)] [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)] ---- \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)] [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)] ---- \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)] [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)] ---- \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)] [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)] ---- \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)] [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)] ---- \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)] [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)] ---- \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)] [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)] ---- \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)] [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)] ---- \[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)] [include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)] ---- \[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)] [include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)] \[include(틀:isuuid, uuid=냥)] [include(틀:isuuid, uuid=냥)] [include(틀:ㅁ, str=Hello\, World!)] toString() 가능 parseInt() x == == {{{#!wiki style="font-weight: 300; font-size: 20px" {{{#!if 식 = '11+2' @식=11+2@}}} = {{{#!if s1=false, s2=false, s3=false, j=1+0, i=0+0, k=1+0 ##switch1 : 숫자 계속 탐색하기, switch2 : 소수점 아래 기입하기. switch3 : 중복 실행 방지. }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) ##숫자를 발견할 경우 {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true ##여기에 앞자리가 음수냐 아니냐를 읽는 판별을 만들어야 합니다. ㅏ 이걸 생각 못했네요 그럼 좀 많이 길어지는데 }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) ##숫자를 계속 발견할 경우 (소수점일 수도 있습니다. 여기서는 숫자일 경우) ##여기에서 소수점 위를 기입하냐 소수점 아래를 기입하냐 소수점 아래라면 소수점 아래 몇번째 자리를 기입하느냐를 적어야 합니다. {{{#!if s2==false ##정수 자리를 기입하는 경우 {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true }}}}}}{{{#!if s2==true ##소수점 아래 자리를 기입하는 경우 {{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true }}}{{{#!if k+=1 ##다음 소수점 자리 찾기 }}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false) ##앞에서 숫자를 발견한 다음 소수점을 발견할 경우 (소수점 발견은 최초 1회에 한함) {{{#!if s2=true, s3=true, k=1+0 ##switch2 : 켜기 }}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46))||((s2==true)&&!this['d'+i]))&&(s3==false) ##숫자가 더 이상 나오지 않고 소수점을 발견하지 못했을 경우, 소수점을 발견한 상황인데 숫자가 나오지 않을 경우 (소수점이 다시 나오는 경우가 자동적으로 포함) {{{#!if j+=1, s1=false, s2=false, s3=true ##소수점 아래 기입하는 스위치도 off, 다음 index(j) 매김. }}}{{{#!if s3==true ##여기까지 과정을 거쳤다면 스위치 off. {{{#!if s3=false }}}}}} }}}{{{#!if i+=1 }}} ## {{{#!if false ##이 if문은 실행되지 않는 단락. 주석만 제거하고 복사 붙여넣기. {{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) {{{#!if s2==false {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true }}}}}}{{{#!if s2==true {{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true }}}{{{#!if k+=1 }}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false) {{{#!if s2=true, s3=true, k=1+0 }}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46)||(s2==false))||((s2==true)&&!this['d'+i]&&(식=[i]==46)))&&(s3==false) {{{#!if j+=1, s1=false, s2=false, s3=true }}}{{{#!if s3==true {{{#!if s3=false }}}}}} }}}{{{#!if i+=1 }}} #### }}} ## {{{#!if this['v1'] == 1 this['v1'] == 1}}} ## {{{#!if s3=false }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) {{{#!if s2=true, s3=true }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) {{{#!if j+=1, s1=false, s2=false, s3=true }}}}}}{{{#!if i+=1 }}} ## {{{#!if this['v1'] == 11 this['v1'] == 11}}} ## {{{#!if s3=false }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) {{{#!if s2=true, s3=true }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) {{{#!if j+=1, s1=false, s2=false, s3=true }}}}}}{{{#!if i+=1 }}}{{{#!if s3=false }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) {{{#!if s2=true, s3=true }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) {{{#!if j+=1, s1=false, s2=false, s3=true }}}}}}{{{#!if i+=1 }}} ## {{{#!if this['v2'] == 2 this['v2'] == 2}}} ## ## ## ## {{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 }}} ## 식 검증이 됐다 치면 ## dn : true - 수 / false - 연산자 {{{#!if this['d0'] 1}}}{{{#!if this['d1'] 1}}}{{{#!if !this['d2'] +}}}{{{#!if this['d3'] 2}}} ## in : 11+2 에서 '11'은 0번째 위치, '+'는 2번째 위치.. > 0, 2, 3 > 위치 기억 / 뺄셈으로 자릿수 계산 ## 보다 좋은 방법이 있ㅅ을 것 같은데음ㅁ.. {{{#!if i = 1, j = 1, i0 = 0 }}} {{{#!if t = this['d0'] != this['d1'], t {{{#!if this['i'+i] = j, j+=1, i+=1 }}}}}}{{{#!if !t {{{#!if j+=1 }}}}}}{{{#!if t = this['d1'] != this['d2'], t {{{#!if this['i'+i] = j, j+=1, i+=1 }}}}}}{{{#!if !t {{{#!if j+=1 }}}}}}{{{#!if t = this['d1'] != this['d2'], t {{{#!if this['i'+i] = j, j+=1, i+=1 }}}}}}{{{#!if !t {{{#!if j+=1 }}}}}} ## {{{#!if i0 == 0 ## i0 == 0 }}}{{{#!if i1 == 2 ## i1 == 2 }}}{{{#!if i2 == 3 ## i2 == 3 }}} ## {{{#!if list = [d0, d1, d2, d3] ## }}} }}}