| r2692 | ||
|---|---|---|
| r2597 | 1 | [[분류:냥]] |
| r2684 | 2 | |
| r2682 | 3 | {{{#!if ap=5, bp=0, bb="" |
| 4 | }}}{{{#!if ap-bp>=9 | |
| 5 | {{{#!if bp+=9, bb=bb+"000000000" | |
| 6 | }}}}}}{{{#!if ap-bp>=4 | |
| 7 | {{{#!if bp+=4, bb=bb+"0000" | |
| 8 | }}}}}}{{{#!if ap-bp>=2 | |
| 9 | {{{#!if bp+=2, bb=bb+"00" | |
| 10 | }}}}}}{{{#!if ap-bp>=2 | |
| 11 | {{{#!if bp+=2, bb=bb+"00" | |
| 12 | }}}}}}{{{#!if ap-bp>=1 | |
| 13 | {{{#!if bp+=1, bb=bb+"0" | |
| 14 | }}}}}} | |
| 15 | @ap@ @bp@ | |
| 16 | {{{#!if bl = bb.length | |
| 17 | }}}@bl@자 | |
| 18 | ---- | |
| 19 | {{{#!if ap=5, bp=0, bb="" | |
| 20 | }}}{{{#!if ap>bp | |
| 21 | {{{#!if bp=ap, bb+="000000000000000000" | |
| 22 | }}}{{{#!if bb=bb.substr(0,ap) | |
| 23 | }}}}}} | |
| 24 | @ap@ @bp@ | |
| 25 | {{{#!if bl = bb.length | |
| 26 | }}}@bl@자 | |
| 27 | ## | |
| r2662 | 28 | ||<#fff"> <#fff'''{{{#red \"}}}'''>왜 문제가 없지 || |
| r2629 | 29 | ## |
| 30 | folding, wiki(스타일), html은 뒤에 띄어쓰기 없어도 작동. | |
| 31 | 다만 dark-style은 꼭 "-"만 사용 가능. | |
| 32 | if, syntax는 띄어쓰기 없을 시 에러. | |
| 33 | ## | |
| r2624 | 34 | == 문단 == |
| r2671 | 35 | {{{#!folding 계산기 테스트 |
| r2636 | 36 | {{{-5 |
| r2643 | 37 | [include(틀:계산기2, a=1.1, f=-, b=-1.2)] |
| r2637 | 38 | [include(틀:계산기2, a=9223372036854775808, f=-, b=-9223372036854775800)] |
| r2636 | 39 | [include(틀:계산기2, a=., f=-, b=-.)] |
| 40 | [include(틀:계산기2, a=-, f=+, b=-)] | |
| 41 | [include(틀:계산기2, a=10, f=/, b=3)] | |
| r2624 | 42 | [include(틀:계산기2, a=-5, f=/, b=200)] |
| 43 | [include(틀:계산기2, a=-5, f=*, b=200)] | |
| 44 | [include(틀:계산기2, a=123459, f=/, b=2)] | |
| 45 | [include(틀:계산기2, a=12345, f=-, b=67890)] | |
| r2630 | 46 | [include(틀:계산기2, a=123456789012345678, f=-, b=-901234567890123456)] |
| r2632 | 47 | [include(틀:계산기2, a=123456789012345678.901234567890123456, f=+, b=789012345678901234.567890123456789012)] |
| r2639 | 48 | [include(틀:계산기2, a=123456789012345678.9012345678901234567, f=+, b=789012345678901234.567890123456789012)] |
| r2624 | 49 | [include(틀:계산기2, a=-1, f=*, b=-5)] |
| 50 | [include(틀:계산기2, a=-3, f=/, b=7)] | |
| r2633 | 51 | [include(틀:계산기2, a=1.1, f=+, b=0.1)] |
| r2634 | 52 | [include(틀:계산기2, a=1.123, f=+, b=0.877)] |
| 53 | [include(틀:계산기2, a=1.123, f=+, b=0.878)] | |
| r2635 | 54 | [include(틀:계산기2, a=1.333, f=-, b=4.354)] |
| r2638 | 55 | [include(틀:계산기2, a=7.89, f=-, b=12.345)] |
| r2640 | 56 | [include(틀:계산기2, a=1, f=-, b=0.000000000000000001)] |
| r2691 | 57 | [include(틀:계산기2, a=0.999999999999999999, f=+, b=0.000000000000000001)] |
| r2692 | 58 | [include(틀:계산기2, a=1.000000000000000002, f=-, b=2.000000000000000001)] |
| 59 | [include(틀:계산기2, a=123456789012345678.901234567890123456, f=*, b=789012345678901234.567890123456789012)]}}} | |
| r2671 | 60 | 아직은 소수끼리의 계산은 되지 않는 모양이다. 사실 그도 그럴 것이 gauss함수를 가져오지 않았기 때문)}}} |
| r2624 | 61 | |
| 62 | {{{#!if json={'a':'b', 'c':'d'} | |
| 63 | json={'a':'b', 'c':'d'}[br] | |
| 64 | }}}{{{#!if json['a'] == 'b' | |
| 65 | json['a'] == 'b'[br] | |
| 66 | }}}{{{#!if list = ['a', 'b'] | |
| 67 | list = ['a', 'b'][br] | |
| 68 | }}}{{{#!if list[1] == 'b' | |
| 69 | list[1] == 'b'[br] | |
| 70 | }}} | |
| 71 | ||
| 72 | [[../냥]] < 볼드체. 단, {{{../}}}뒤에 붙는 이름이 자기자신과 같은 이름이면 볼드체, 다른 이름(예 : [[../냥냥]], [[../냥/냥]])이면 볼드체가 아니다. 문서명이 '[[냥/냥|(상위문서명)/냥]]'일 경우에도 볼드체가 된다. 이 문서에는 상위 문서가 없으니 그냥 '냥' 으로 링크되는 듯 하다. | |
| 73 | [[냥#]] < 볼드체 | |
| 74 | [[냥#ㅁㄴㅇㄹ|냥#ㅁㄴㅇㄹ]] < 볼드체아님 | |
| 75 | [[문서:냥]] < 볼드체아님 | |
| 76 | ||
| 77 | [include(틀:계산기, r=13)] | |
| 78 | \[include(틀:계산기, r=13)] | |
| 79 | 생각해보니까 그냥 r을 지정할 수도 있겠구나 | |
| 80 | [include(틀:계산기, a=123456789, f=+, b=1)] | |
| 81 | [include(틀:계산기, a=123456789, f=-, b=1)] | |
| 82 | [include(틀:계산기, a=123459, f=*, b=2)] | |
| 83 | [include(틀:계산기, a=123459, f=/, b=2)] | |
| r2646 | 84 | == 그래프구상 == |
| 85 | {{{#!if i=0, x=0 | |
| r2648 | 86 | }}}<math>x^2</math> |
| r2646 | 87 | {{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
| 88 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 89 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 90 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 91 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 92 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 93 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 94 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 95 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 96 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 97 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 98 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 99 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 100 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 101 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 102 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 103 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 104 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 105 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 106 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 107 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 108 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| r2652 | 109 | }}}{{{#!if true |
| r2669 | 110 | #tk : thickness (px) ; wd : width (px) |
| 111 | {{{#!if tk=1+0.0, color="#666", wd=10+0.0 | |
| 112 | }}}}}}{{{#!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" | |
| r2646 | 113 | }}} |
| r2669 | 114 | {{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y1@px; @wdx@; @vag@(@v1@px + @tk@px)" |
| 115 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y2@px; @wdx@; @vag@(@v2@px + @tk@px);" | |
| 116 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y3@px; @wdx@; @vag@(@v3@px + @tk@px);" | |
| r2670 | 117 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y4@px; @wdx@; @vag@(@v4@px + @tk@px);" |
| 118 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y5@px; @wdx@; @vag@(@v5@px + @tk@px);" | |
| 119 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y6@px; @wdx@; @vag@(@v6@px + @tk@px);" | |
| 120 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y7@px; @wdx@; @vag@(@v7@px + @tk@px);" | |
| 121 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y8@px; @wdx@; @vag@(@v8@px + @tk@px);" | |
| 122 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y9@px; @wdx@; @vag@(@v9@px + @tk@px);" | |
| 123 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y10@px; @wdx@; @vag@(@v10@px + @tk@px)" | |
| 124 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y11@px; @wdx@; @vag@(@v11@px + @tk@px)" | |
| 125 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y12@px; @wdx@; @vag@(@v12@px + @tk@px)" | |
| 126 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y13@px; @wdx@; @vag@(@v13@px + @tk@px)" | |
| 127 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y14@px; @wdx@; @vag@(@v14@px + @tk@px)" | |
| r2646 | 128 | }}} |
| r2624 | 129 | |
| r2657 | 130 | == 나무나무마크구상 == |
| r2681 | 131 | * 할거 > 분류 |
| r2680 (r2677으로 되돌림) | 132 | ## \{{{#!html <div style="clear: both"/>}}} |
| 133 | ## == clearfix | |
| 134 | input={{{냥[[링크|냥]]냥[[https://namu.wiki/w/사용자:nyangx3|냥]]냥}}} | |
| 135 | {{{#!wiki style="display: none" | |
| 136 | {{{#!if input='냥[[링크|냥]]냥[[https://namu.wiki/w/사용자:nyangx3|냥]]냥' | |
| r2657 | 137 | }}} |
| r2680 (r2677으로 되돌림) | 138 | {{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8', outLink='' |
| 139 | }}}{{{#!if linkOpen = input.indexOf('[['), linkClose = input.indexOf(']]') | |
| r2674 | 140 | }}}{{{#!if linkRaw = input.substring(linkOpen, linkClose+2) |
| 141 | }}}{{{#!if linkOpen != -1 && linkClose != -1 && linkOpen+2 < linkClose | |
| 142 | ## [[]] 인 경우 linkOpen+2 == linkClose 임 ^^^^^^^^^^^^^^^^^^^^^^ | |
| 143 | {{{#!if divider = linkRaw.indexOf('|') | |
| 144 | }}}{{{#!if divider == -1 | |
| 145 | ##[[링크]] | |
| 146 | {{{#!if href = linkRaw.substring(2, linkRaw.length-2) | |
| 147 | }}} | |
| 148 | }}}{{{#!if divider != -1 | |
| 149 | {{{#!if (divider == 2) && (divider+1 == linkRaw.length-2) | |
| 150 | {{{#!if break = true, input = input.substring(0, linkOpen) + input.substring(linkClose+2) | |
| 151 | ##[[|]] > 출력 x | |
| 152 | }}} | |
| 153 | }}} | |
| 154 | {{{#!if (divider == 2) && !break | |
| 155 | {{{#!if break = true, href = linkRaw.substring(divider+1, linkRaw.length-2), linkPrint = href | |
| 156 | ##[[|링크]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로. | |
| 157 | }}} | |
| 158 | }}} | |
| 159 | {{{#!if (divider+1 == linkRaw.length-2) && !break | |
| 160 | ##[[링크|]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로. | |
| 161 | {{{#!if break = true, href = linkRaw.substring(2, divider), linkPrint = href | |
| 162 | @linkPrint@ | |
| 163 | @href@ | |
| 164 | }}} | |
| 165 | }}} | |
| 166 | {{{#!if !break | |
| 167 | {{{#!if href = linkRaw.substring(2, divider), linkPrint = linkRaw.substring(divider+1, linkRaw.length-2) | |
| 168 | }}} | |
| 169 | }}} | |
| 170 | }}} | |
| 171 | {{{#!if isLink = (href.startsWith('https://') || href.startsWith('http://') || href.startsWith('ftp://')), isLink | |
| r2680 (r2677으로 되돌림) | 172 | {{{#!if linkColor = 'none', outLink = 'asdf' |
| r2674 | 173 | }}} |
| 174 | }}}{{{#!if isCategory = (href.startsWith('분류:')), isCategory | |
| 175 | ## 나중에생각 - 실제로 분류되지는 않고(하고 싶어도 못 함 display: none으로 없어지는 것도 아니고) 그냥 분류 느낌만 내기 | |
| 176 | }}}{{{#!if !(isCategory || isLink) | |
| 177 | {{{#!if href = 'https://theseed.io/w/'+href | |
| 178 | }}} | |
| r2680 (r2677으로 되돌림) | 179 | }}}{{{#!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) |
| r2674 | 180 | }}} |
| r2657 | 181 | }}} |
| r2680 (r2677으로 되돌림) | 182 | ########### |
| 183 | {{{#!if h=null,a=null,b=false,c='#0275d8',d='' | |
| 184 | }}}{{{#!if e=input.indexOf('[['),x=input.indexOf(']]') | |
| 185 | }}}{{{#!if z=input.substring(e,x+2) | |
| 186 | }}}{{{#!if e!=-1&&x!=-1&&e+2<x | |
| 187 | {{{#!if g=z.indexOf('|') | |
| 188 | }}}{{{#!if g==-1 | |
| 189 | {{{#!if h=z.substring(2,z.length-2) | |
| 190 | }}}}}}{{{#!if g!=-1 | |
| 191 | {{{#!if (g==2)&&(g+1==z.length-2) | |
| 192 | {{{#!if b=true,input=input.substring(0,e)+input.substring(x+2) | |
| 193 | }}}}}}{{{#!if (g==2)&&!b | |
| 194 | {{{#!if b=true,h=z.substring(g+1,z.length-2),a=h | |
| 195 | }}}}}}{{{#!if (g+1==z.length-2)&&!b | |
| 196 | {{{#!if b=true,h=z.substring(2,g),a=h | |
| 197 | }}}}}}{{{#!if !b | |
| 198 | {{{#!if h=z.substring(2,g),a=z.substring(g+1,z.length-2) | |
| 199 | }}}}}}}}}{{{#!if isLink=(h.startsWith('https://')||h.startsWith('http://')||h.startsWith('ftp://')),isLink | |
| 200 | {{{#!if c='none',d='asdf' | |
| 201 | }}}}}}{{{#!if isCategory=(h.startsWith('분류:')),isCategory | |
| 202 | }}}{{{#!if !(isCategory||isLink) | |
| 203 | {{{#!if h='https://theseed.io/w/'+h | |
| 204 | }}}}}}{{{#!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) | |
| 205 | }}}}}} | |
| 206 | }}} | |
| 207 | output: {{{#!html @input@}}} | |
| r2681 | 208 | |
| 209 | == 나무나무마크구상2 == | |
| 210 | 할거 : wiki/darkstyle/+/-/#fff | |
| 211 | 리터럴귀찮음 if folding syntax는 될리가없음 | |
| r2688 | 212 | input='냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue; display: inline"<br>냥텍스트\}\}\}asdf\{\{\{#;color:red,#f00 asdf\}\}\}' |
| r2681 | 213 | ##괄호를 ) 를 찾고 (를 나중에 찾는 방식이라(이게 로직이 더 간단함 근데 처리부분 길어지면 바꿀수도) input에 다른 거 오면 창남ㅇㅇ |
| 214 | ||
| 215 | {{{#!wiki style="display: none" | |
| r2688 | 216 | {{{#!if input='냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue; display: inline"<br>냥텍스트\}\}\}asdf\{\{\{#;color:red,#f00 asdf\}\}\}' |
| r2690 | 217 | }}} |
| 218 | ############################## | |
| 219 | {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true | |
| r2681 | 220 | {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen |
| 221 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 222 | }}} | |
| 223 | {{{#!if _ParOpen == -1 | |
| 224 | {{{#!if Match=true | |
| 225 | }}} | |
| 226 | }}}{{{#!if _ParOpen != -1 | |
| 227 | {{{#!if ParOpen=_ParOpen | |
| 228 | }}} | |
| 229 | }}} | |
| 230 | ############################ | |
| 231 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 232 | }}} | |
| 233 | {{{#!if _ParOpen == -1 | |
| 234 | {{{#!if Match=true | |
| 235 | }}} | |
| 236 | }}}{{{#!if _ParOpen != -1 | |
| 237 | {{{#!if ParOpen+=_ParOpen+3 | |
| 238 | }}} | |
| 239 | }}} | |
| 240 | ############################ | |
| 241 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 242 | }}} | |
| 243 | {{{#!if _ParOpen == -1 | |
| 244 | {{{#!if Match=true | |
| 245 | }}} | |
| 246 | }}}{{{#!if _ParOpen != -1 | |
| 247 | {{{#!if ParOpen+=_ParOpen+3 | |
| 248 | }}} | |
| 249 | }}} | |
| 250 | }}} | |
| r2686 | 251 | ########################### |
| r2681 | 252 | {{{#!if Match |
| r2688 | 253 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' |
| r2686 | 254 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) |
| 255 | }}} | |
| 256 | }}} | |
| r2688 | 257 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' |
| r2687 | 258 | {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') |
| 259 | }}}{{{#!if BrL != -1 && StyleL!=-1 | |
| 260 | {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) | |
| 261 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 262 | }}} | |
| 263 | }}} | |
| 264 | }}} | |
| r2690 | 265 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' |
| 266 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') | |
| 267 | }}}{{{#!if Blank!=-1 | |
| 268 | {{{#!if Comma != -1 | |
| 269 | {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) | |
| 270 | }}} | |
| 271 | }}} | |
| 272 | {{{#!if Comma == -1 | |
| 273 | {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor | |
| 274 | }}} | |
| 275 | }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) | |
| 276 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 277 | ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. | |
| 278 | }}} | |
| 279 | }}} | |
| 280 | }}} | |
| r2681 | 281 | }}} |
| r2686 | 282 | }}} |
| r2690 | 283 | ############################## |
| r2686 | 284 | {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true |
| r2681 | 285 | {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen |
| 286 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 287 | }}} | |
| 288 | {{{#!if _ParOpen == -1 | |
| 289 | {{{#!if Match=true | |
| 290 | }}} | |
| 291 | }}}{{{#!if _ParOpen != -1 | |
| 292 | {{{#!if ParOpen=_ParOpen | |
| 293 | }}} | |
| 294 | }}} | |
| 295 | ############################ | |
| 296 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 297 | }}} | |
| 298 | {{{#!if _ParOpen == -1 | |
| 299 | {{{#!if Match=true | |
| 300 | }}} | |
| 301 | }}}{{{#!if _ParOpen != -1 | |
| 302 | {{{#!if ParOpen+=_ParOpen+3 | |
| 303 | }}} | |
| 304 | }}} | |
| 305 | ############################ | |
| 306 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 307 | }}} | |
| 308 | {{{#!if _ParOpen == -1 | |
| 309 | {{{#!if Match=true | |
| 310 | }}} | |
| 311 | }}}{{{#!if _ParOpen != -1 | |
| 312 | {{{#!if ParOpen+=_ParOpen+3 | |
| 313 | }}} | |
| 314 | }}} | |
| 315 | }}} | |
| r2686 | 316 | ########################### |
| r2681 | 317 | {{{#!if Match |
| r2688 | 318 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' |
| r2686 | 319 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) |
| 320 | }}} | |
| r2681 | 321 | }}} |
| r2688 | 322 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' |
| r2687 | 323 | {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') |
| 324 | }}}{{{#!if BrL != -1 && StyleL!=-1 | |
| 325 | {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) | |
| 326 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 327 | }}} | |
| r2681 | 328 | }}} |
| 329 | }}} | |
| r2690 | 330 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' |
| 331 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') | |
| 332 | }}}{{{#!if Blank!=-1 | |
| 333 | {{{#!if Comma != -1 | |
| 334 | {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) | |
| 335 | }}} | |
| 336 | }}} | |
| 337 | {{{#!if Comma == -1 | |
| 338 | {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor | |
| 339 | }}} | |
| 340 | }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) | |
| 341 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 342 | ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. | |
| 343 | }}} | |
| 344 | }}} | |
| 345 | }}} | |
| r2681 | 346 | }}} |
| r2686 | 347 | }}} |
| 348 | ############################## | |
| r2688 | 349 | {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true |
| 350 | {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen | |
| 351 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 352 | }}} | |
| 353 | {{{#!if _ParOpen == -1 | |
| 354 | {{{#!if Match=true | |
| 355 | }}} | |
| 356 | }}}{{{#!if _ParOpen != -1 | |
| 357 | {{{#!if ParOpen=_ParOpen | |
| 358 | }}} | |
| 359 | }}} | |
| 360 | ############################ | |
| 361 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 362 | }}} | |
| 363 | {{{#!if _ParOpen == -1 | |
| 364 | {{{#!if Match=true | |
| 365 | }}} | |
| 366 | }}}{{{#!if _ParOpen != -1 | |
| 367 | {{{#!if ParOpen+=_ParOpen+3 | |
| 368 | }}} | |
| 369 | }}} | |
| 370 | ############################ | |
| 371 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 372 | }}} | |
| 373 | {{{#!if _ParOpen == -1 | |
| 374 | {{{#!if Match=true | |
| 375 | }}} | |
| 376 | }}}{{{#!if _ParOpen != -1 | |
| 377 | {{{#!if ParOpen+=_ParOpen+3 | |
| 378 | }}} | |
| 379 | }}} | |
| 380 | }}} | |
| 381 | ########################### | |
| 382 | {{{#!if Match | |
| 383 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' | |
| 384 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) | |
| 385 | }}} | |
| 386 | }}} | |
| 387 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' | |
| 388 | {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') | |
| 389 | }}}{{{#!if BrL != -1 && StyleL!=-1 | |
| 390 | {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) | |
| 391 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 392 | }}} | |
| 393 | }}} | |
| 394 | }}} | |
| 395 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' | |
| 396 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') | |
| 397 | }}}{{{#!if Blank!=-1 | |
| 398 | {{{#!if Comma != -1 | |
| 399 | {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) | |
| 400 | }}} | |
| 401 | }}} | |
| 402 | {{{#!if Comma == -1 | |
| 403 | {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor | |
| 404 | }}} | |
| 405 | }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) | |
| 406 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 407 | ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. | |
| 408 | }}} | |
| 409 | }}} | |
| 410 | }}} | |
| 411 | }}} | |
| r2687 | 412 | }}} |
| r2688 | 413 | ########################### |
| r2689 | 414 | }}} |
| r2688 | 415 | |
| r2681 | 416 | output: {{{#!html @input@}}} |
| r2624 | 417 | == ㅁㄴㅇㄹ == |
| 418 | [include(a)]''''''[include(a)][include(a)] | |
| 419 | [[]][include(a)][include(a)][include(a)] | |
| 420 | ||
| 421 | {{{#!wiki style="background: skyblue; margin: 0 auto; padding: 5px; max-width: 500px" | |
| 422 | ||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><bgcolor=#000>|| | |
| 423 | ||
| 424 | ||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><rowbgcolor=#000>|| | |
| 425 | ||<colbgcolor=#000>|| | |
| 426 | ||<tan>|| | |
| 427 | ||
| 428 | ||<tablealign=center><tablewidth=100%><bgcolor=#000>|| | |
| 429 | ||
| 430 | ||<tablealign=center><tablewidth=100%>||}}} | |
| 431 | Mozilla/5.0 (compatible; Daum/1.0; +http://ws.daum.net/aboutkr.html) ok | |
| 432 | Mozilla/5.0 (compatible; coccocbot-web/1.0; +http://help.coccoc.com/web) ok | |
| 433 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)] | |
| 434 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)] | |
| 435 | ---- | |
| 436 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)] | |
| 437 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)] | |
| 438 | ---- | |
| 439 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)] | |
| 440 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)] | |
| 441 | ---- | |
| 442 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)] | |
| 443 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)] | |
| 444 | ---- | |
| 445 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)] | |
| 446 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)] | |
| 447 | ---- | |
| 448 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)] | |
| 449 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)] | |
| 450 | ---- | |
| 451 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)] | |
| 452 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)] | |
| 453 | ---- | |
| 454 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)] | |
| 455 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)] | |
| 456 | ---- | |
| 457 | \[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)] | |
| 458 | [include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)] | |
| 459 | ---- | |
| 460 | \[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)] | |
| 461 | [include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)] | |
| 462 | \[include(틀:isuuid, uuid=냥)] | |
| 463 | [include(틀:isuuid, uuid=냥)] | |
| 464 | [include(틀:ㅁ, str=Hello\, World!)] | |
| 465 | toString() 가능 | |
| 466 | parseInt() x | |
| 467 | ||
| 468 | == == | |
| r2584 | 469 | {{{#!wiki style="font-weight: 300; font-size: 20px" |
| 470 | {{{#!if 식 = '11+2' | |
| r2597 | 471 | @식=11+2@}}} = {{{#!if s1=false, s2=false, s3=false, j=1+0, i=0+0, k=1+0 |
| r2593 | 472 | ##switch1 : 숫자 계속 탐색하기, switch2 : 소수점 아래 기입하기. switch3 : 중복 실행 방지. |
| r2594 | 473 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
| r2593 | 474 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
| r2594 | 475 | ##숫자를 발견할 경우 |
| r2591 | 476 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
| r2595 | 477 | ##여기에 앞자리가 음수냐 아니냐를 읽는 판별을 만들어야 합니다. ㅏ 이걸 생각 못했네요 그럼 좀 많이 길어지는데 |
| r2591 | 478 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
| 479 | ##숫자를 계속 발견할 경우 (소수점일 수도 있습니다. 여기서는 숫자일 경우) | |
| r2592 | 480 | ##여기에서 소수점 위를 기입하냐 소수점 아래를 기입하냐 소수점 아래라면 소수점 아래 몇번째 자리를 기입하느냐를 적어야 합니다. |
| r2597 | 481 | {{{#!if s2==false |
| 482 | ##정수 자리를 기입하는 경우 | |
| r2595 | 483 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
| r2597 | 484 | }}}}}}{{{#!if s2==true |
| 485 | ##소수점 아래 자리를 기입하는 경우 | |
| 486 | {{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true | |
| 487 | }}}{{{#!if k+=1 | |
| 488 | ##다음 소수점 자리 찾기 | |
| r2602 | 489 | }}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false) |
| r2605 | 490 | ##앞에서 숫자를 발견한 다음 소수점을 발견할 경우 (소수점 발견은 최초 1회에 한함) |
| r2597 | 491 | {{{#!if s2=true, s3=true, k=1+0 |
| 492 | ##switch2 : 켜기 | |
| r2607 | 493 | }}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46))||((s2==true)&&!this['d'+i]))&&(s3==false) |
| 494 | ##숫자가 더 이상 나오지 않고 소수점을 발견하지 못했을 경우, 소수점을 발견한 상황인데 숫자가 나오지 않을 경우 (소수점이 다시 나오는 경우가 자동적으로 포함) | |
| r2591 | 495 | {{{#!if j+=1, s1=false, s2=false, s3=true |
| r2592 | 496 | ##소수점 아래 기입하는 스위치도 off, 다음 index(j) 매김. |
| r2597 | 497 | }}}{{{#!if s3==true |
| 498 | ##여기까지 과정을 거쳤다면 스위치 off. | |
| 499 | {{{#!if s3=false | |
| 500 | }}}}}} | |
| 501 | }}}{{{#!if i+=1 | |
| r2594 | 502 | }}} |
| r2595 | 503 | ## |
| r2599 | 504 | {{{#!if false |
| r2600 | 505 | ##이 if문은 실행되지 않는 단락. 주석만 제거하고 복사 붙여넣기. |
| r2599 | 506 | {{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
| 507 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) | |
| 508 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true | |
| 509 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) | |
| 510 | {{{#!if s2==false | |
| 511 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true | |
| 512 | }}}}}}{{{#!if s2==true | |
| 513 | {{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true | |
| 514 | }}}{{{#!if k+=1 | |
| r2603 | 515 | }}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false) |
| r2599 | 516 | {{{#!if s2=true, s3=true, k=1+0 |
| r2604 | 517 | }}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46)||(s2==false))||((s2==true)&&!this['d'+i]&&(식=[i]==46)))&&(s3==false) |
| r2599 | 518 | {{{#!if j+=1, s1=false, s2=false, s3=true |
| 519 | }}}{{{#!if s3==true | |
| 520 | {{{#!if s3=false | |
| 521 | }}}}}} | |
| 522 | }}}{{{#!if i+=1 | |
| 523 | }}} | |
| 524 | #### | |
| 525 | }}} | |
| 526 | ## | |
| r2600 | 527 | {{{#!if this['v1'] == 1 |
| 528 | this['v1'] == 1}}} | |
| 529 | ## | |
| 530 | {{{#!if s3=false | |
| 531 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) | |
| 532 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) | |
| 533 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true | |
| 534 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) | |
| 535 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true | |
| 536 | }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) | |
| 537 | {{{#!if s2=true, s3=true | |
| 538 | }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) | |
| 539 | {{{#!if j+=1, s1=false, s2=false, s3=true | |
| 540 | }}}}}}{{{#!if i+=1 | |
| 541 | }}} | |
| 542 | ## | |
| r2595 | 543 | {{{#!if this['v1'] == 11 |
| 544 | this['v1'] == 11}}} | |
| 545 | ## | |
| r2596 | 546 | {{{#!if s3=false |
| 547 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) | |
| 548 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) | |
| 549 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true | |
| 550 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) | |
| 551 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true | |
| 552 | }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) | |
| 553 | {{{#!if s2=true, s3=true | |
| 554 | }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) | |
| 555 | {{{#!if j+=1, s1=false, s2=false, s3=true | |
| 556 | }}}}}}{{{#!if i+=1 | |
| 557 | }}}{{{#!if s3=false | |
| 558 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) | |
| 559 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) | |
| 560 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true | |
| 561 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) | |
| 562 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true | |
| 563 | }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) | |
| 564 | {{{#!if s2=true, s3=true | |
| 565 | }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) | |
| 566 | {{{#!if j+=1, s1=false, s2=false, s3=true | |
| 567 | }}}}}}{{{#!if i+=1 | |
| 568 | }}} | |
| r2595 | 569 | ## |
| r2596 | 570 | {{{#!if this['v2'] == 2 |
| 571 | this['v2'] == 2}}} | |
| r2595 | 572 | ## |
| 573 | ## | |
| 574 | ## | |
| 575 | ## | |
| r2593 | 576 | {{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 |
| r2586 | 577 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 |
| 578 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 | |
| r2584 | 579 | }}} |
| r2586 | 580 | ## 식 검증이 됐다 치면 |
| r2587 | 581 | ## dn : true - 수 / false - 연산자 |
| r2586 | 582 | {{{#!if this['d0'] |
| 583 | 1}}}{{{#!if this['d1'] | |
| 584 | 1}}}{{{#!if !this['d2'] | |
| 585 | +}}}{{{#!if this['d3'] | |
| r2585 | 586 | 2}}} |
| r2587 | 587 | ## in : 11+2 에서 '11'은 0번째 위치, '+'는 2번째 위치.. > 0, 2, 3 > 위치 기억 / 뺄셈으로 자릿수 계산 |
| 588 | ## 보다 좋은 방법이 있ㅅ을 것 같은데음ㅁ.. | |
| 589 | {{{#!if i = 1, j = 1, i0 = 0 | |
| 590 | }}} | |
| 591 | {{{#!if t = this['d0'] != this['d1'], t | |
| 592 | {{{#!if this['i'+i] = j, j+=1, i+=1 | |
| 593 | }}}}}}{{{#!if !t | |
| 594 | {{{#!if j+=1 | |
| 595 | }}}}}}{{{#!if t = this['d1'] != this['d2'], t | |
| 596 | {{{#!if this['i'+i] = j, j+=1, i+=1 | |
| 597 | }}}}}}{{{#!if !t | |
| 598 | {{{#!if j+=1 | |
| 599 | }}}}}}{{{#!if t = this['d1'] != this['d2'], t | |
| 600 | {{{#!if this['i'+i] = j, j+=1, i+=1 | |
| 601 | }}}}}}{{{#!if !t | |
| 602 | {{{#!if j+=1 | |
| r2585 | 603 | }}}}}} |
| r2608 | 604 | ## {{{#!if i0 == 0 |
| 605 | ## i0 == 0 }}}{{{#!if i1 == 2 | |
| 606 | ## i1 == 2 }}}{{{#!if i2 == 3 | |
| 607 | ## i2 == 3 }}} | |
| r2587 | 608 | ## {{{#!if list = [d0, d1, d2, d3] |
| 609 | ## }}} | |
| r2624 | 610 | }}} |