r2699
r2597
1[[분류:냥]]
r2684
2
r2696
3{{{+1 {{{+1 +1+1 > 14.25 * 1.28889 * 1.28889 => 23.67259259300074px}}}}}}
4{{{+2 +2 > 14.25 * 1.38889 => 19.791666666825px}}}
5||<tablebgcolor=transparent><rowbgcolor=#00a495><rowcolor=#fff> 입력 || 출력 || 적용 크기 || 입력 || 출력 || 적용 크기 ||
6|| {{{기본}}} || 기본 ||1.00000em || {{{기본}}} || 기본 ||1.00000em ||
7|| {{{{{{+1 +1단계}}}}}} || {{{+1 +1단계}}} ||1.28889em || {{{{{{-1 -1단계}}}}}} || {{{-1 -1단계}}} ||0.92589em ||
8|| {{{{{{+2 +2단계}}}}}} || {{{+2 +2단계}}} ||1.38889em || {{{{{{-2 -2단계}}}}}} || {{{-2 -2단계}}} ||0.83333em ||
9|| {{{{{{+3 +3단계}}}}}} || {{{+3 +3단계}}} ||1.48144em || {{{{{{-3 -3단계}}}}}} || {{{-3 -3단계}}} ||0.74067em ||
10|| {{{{{{+4 +4단계}}}}}} || {{{+4 +4단계}}} ||1.57400em || {{{{{{-4 -4단계}}}}}} || {{{-4 -4단계}}} ||0.64811em ||
11|| {{{{{{+5 +5단계}}}}}} || {{{+5 +5단계}}} ||1.66667em || {{{{{{-5 -5단계}}}}}} || {{{-5 -5단계}}} ||0.62222em ||
12||<-6><bgcolor=#00a495><color=#fff> 응용 ||
13||<-3> {{{{{{+5 {{{+5 +5+5단계}}}}}}}}} ||<-3> {{{+5 {{{+5 +5+5단계}}}}}} ||
14[include(틀:문서 가져옴/the seed, 위키=나, 문서명=나무위키:문법 도움말, 버전=882, UUID=0c47b950-9eec-41ba-a39b-e66d937d52b9)]
15
r2697
16##@||<tablebgcolor=transparent><rowbgcolor=#00a495><rowcolor=#fff> 입력 || 출력 || 적용 크기 || 입력 || 출력 || 적용 크기 ||
17##@|| {{{기본}}} || 기본 ||1.00000em || {{{기본}}} || 기본 ||1.00000em ||
18##@|| {{{{{{+1 +1단계}}}}}} || {{{+1 +1단계}}} ||1.28889em || {{{{{{-1 -1단계}}}}}} || {{{-1 -1단계}}} ||0.92589em ||
19##@|| {{{{{{+2 +2단계}}}}}} || {{{+2 +2단계}}} ||1.38889em || {{{{{{-2 -2단계}}}}}} || {{{-2 -2단계}}} ||0.83333em ||
20##@|| {{{{{{+3 +3단계}}}}}} || {{{+3 +3단계}}} ||1.48144em || {{{{{{-3 -3단계}}}}}} || {{{-3 -3단계}}} ||0.74067em ||
21##@|| {{{{{{+4 +4단계}}}}}} || {{{+4 +4단계}}} ||1.57400em || {{{{{{-4 -4단계}}}}}} || {{{-4 -4단계}}} ||0.64811em ||
22##@|| {{{{{{+5 +5단계}}}}}} || {{{+5 +5단계}}} ||1.66667em || {{{{{{-5 -5단계}}}}}} || {{{-5 -5단계}}} ||0.62222em ||
23
r2682
24{{{#!if ap=5, bp=0, bb=""
25}}}{{{#!if ap-bp>=9
26{{{#!if bp+=9, bb=bb+"000000000"
27}}}}}}{{{#!if ap-bp>=4
28{{{#!if bp+=4, bb=bb+"0000"
29}}}}}}{{{#!if ap-bp>=2
30{{{#!if bp+=2, bb=bb+"00"
31}}}}}}{{{#!if ap-bp>=2
32{{{#!if bp+=2, bb=bb+"00"
33}}}}}}{{{#!if ap-bp>=1
34{{{#!if bp+=1, bb=bb+"0"
35}}}}}}
36@ap@ @bp@
37{{{#!if bl = bb.length
38}}}@bl@자
39----
40{{{#!if ap=5, bp=0, bb=""
41}}}{{{#!if ap>bp
42{{{#!if bp=ap, bb+="000000000000000000"
43}}}{{{#!if bb=bb.substr(0,ap)
44}}}}}}
45@ap@ @bp@
46{{{#!if bl = bb.length
47}}}@bl@자
48##
r2662
49||<#fff"> <#fff'''{{{#red \"}}}'''>왜 문제가 없지 ||
r2629
50##
51folding, wiki(스타일), html은 뒤에 띄어쓰기 없어도 작동.
52다만 dark-style은 꼭 "-"만 사용 가능.
53if, syntax는 띄어쓰기 없을 시 에러.
54##
r2624
55== 문단 ==
r2671
56{{{#!folding 계산기 테스트
r2636
57{{{-5
r2643
58[include(틀:계산기2, a=1.1, f=-, b=-1.2)]
r2637
59[include(틀:계산기2, a=9223372036854775808, f=-, b=-9223372036854775800)]
r2636
60[include(틀:계산기2, a=., f=-, b=-.)]
61[include(틀:계산기2, a=-, f=+, b=-)]
62[include(틀:계산기2, a=10, f=/, b=3)]
r2624
63[include(틀:계산기2, a=-5, f=/, b=200)]
64[include(틀:계산기2, a=-5, f=*, b=200)]
65[include(틀:계산기2, a=123459, f=/, b=2)]
66[include(틀:계산기2, a=12345, f=-, b=67890)]
r2630
67[include(틀:계산기2, a=123456789012345678, f=-, b=-901234567890123456)]
r2632
68[include(틀:계산기2, a=123456789012345678.901234567890123456, f=+, b=789012345678901234.567890123456789012)]
r2639
69[include(틀:계산기2, a=123456789012345678.9012345678901234567, f=+, b=789012345678901234.567890123456789012)]
r2624
70[include(틀:계산기2, a=-1, f=*, b=-5)]
71[include(틀:계산기2, a=-3, f=/, b=7)]
r2633
72[include(틀:계산기2, a=1.1, f=+, b=0.1)]
r2634
73[include(틀:계산기2, a=1.123, f=+, b=0.877)]
74[include(틀:계산기2, a=1.123, f=+, b=0.878)]
r2635
75[include(틀:계산기2, a=1.333, f=-, b=4.354)]
r2638
76[include(틀:계산기2, a=7.89, f=-, b=12.345)]
r2640
77[include(틀:계산기2, a=1, f=-, b=0.000000000000000001)]
r2691
78[include(틀:계산기2, a=0.999999999999999999, f=+, b=0.000000000000000001)]
r2692
79[include(틀:계산기2, a=1.000000000000000002, f=-, b=2.000000000000000001)]
r2694
80[include(틀:계산기2, a=100000000000000000, f=*, b=100000000000000000)]
r2693
81[include(틀:계산기2, a=123456789012345678, f=*, b=789012345678901234)]
r2695
82[include(틀:계산기2, a=123456789012345678.901234567890123456, f=*, b=789012345678901234.567890123456789012)]
83[include(틀:계산기2, a=0, f=*, b=789012345678901234.567890123456789012)]}}}
r2671
84아직은 소수끼리의 계산은 되지 않는 모양이다. 사실 그도 그럴 것이 gauss함수를 가져오지 않았기 때문)}}}
r2624
85
86{{{#!if json={'a':'b', 'c':'d'}
87json={'a':'b', 'c':'d'}[br]
88}}}{{{#!if json['a'] == 'b'
89json['a'] == 'b'[br]
90}}}{{{#!if list = ['a', 'b']
91list = ['a', 'b'][br]
92}}}{{{#!if list[1] == 'b'
93list[1] == 'b'[br]
94}}}
95
96[[../냥]] < 볼드체. 단, {{{../}}}뒤에 붙는 이름이 자기자신과 같은 이름이면 볼드체, 다른 이름(예 : [[../냥냥]], [[../냥/냥]])이면 볼드체가 아니다. 문서명이 '[[냥/냥|(상위문서명)/냥]]'일 경우에도 볼드체가 된다. 이 문서에는 상위 문서가 없으니 그냥 '냥' 으로 링크되는 듯 하다.
97[[냥#]] < 볼드체
98[[냥#ㅁㄴㅇㄹ|냥#ㅁㄴㅇㄹ]] < 볼드체아님
99[[문서:냥]] < 볼드체아님
100
101[include(틀:계산기, r=13)]
102\[include(틀:계산기, r=13)]
103생각해보니까 그냥 r을 지정할 수도 있겠구나
104[include(틀:계산기, a=123456789, f=+, b=1)]
105[include(틀:계산기, a=123456789, f=-, b=1)]
106[include(틀:계산기, a=123459, f=*, b=2)]
107[include(틀:계산기, a=123459, f=/, b=2)]
r2646
108== 그래프구상 ==
109{{{#!if i=0, x=0
r2648
110}}}<math>x^2</math>
r2646
111{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
112}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
113}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
114}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
115}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
116}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
117}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
118}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
119}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
120}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
121}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
122}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
123}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
124}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
125}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
126}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
127}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
128}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
129}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
130}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
131}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
132}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
r2652
133}}}{{{#!if true
r2669
134#tk : thickness (px) ; wd : width (px)
135{{{#!if tk=1+0.0, color="#666", wd=10+0.0
136}}}}}}{{{#!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
137}}}
r2669
138{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y1@px; @wdx@; @vag@(@v1@px + @tk@px)"
139}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y2@px; @wdx@; @vag@(@v2@px + @tk@px);"
140}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y3@px; @wdx@; @vag@(@v3@px + @tk@px);"
r2670
141}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y4@px; @wdx@; @vag@(@v4@px + @tk@px);"
142}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y5@px; @wdx@; @vag@(@v5@px + @tk@px);"
143}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y6@px; @wdx@; @vag@(@v6@px + @tk@px);"
144}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y7@px; @wdx@; @vag@(@v7@px + @tk@px);"
145}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y8@px; @wdx@; @vag@(@v8@px + @tk@px);"
146}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y9@px; @wdx@; @vag@(@v9@px + @tk@px);"
147}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y10@px; @wdx@; @vag@(@v10@px + @tk@px)"
148}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y11@px; @wdx@; @vag@(@v11@px + @tk@px)"
149}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y12@px; @wdx@; @vag@(@v12@px + @tk@px)"
150}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y13@px; @wdx@; @vag@(@v13@px + @tk@px)"
151}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y14@px; @wdx@; @vag@(@v14@px + @tk@px)"
r2646
152}}}
r2624
153
r2657
154== 나무나무마크구상 ==
r2681
155 * 할거 > 분류
r2680

(r2677으로 되돌림)
156## \{{{#!html <div style="clear: both"/>}}}
157## == clearfix
158input={{{냥[[링크|냥]]냥[[https://namu.wiki/w/사용자:nyangx3|냥]]냥}}}
159{{{#!wiki style="display: none"
160{{{#!if input='냥[[링크|냥]]냥[[https://namu.wiki/w/사용자:nyangx3|냥]]냥'
r2657
161}}}
r2680

(r2677으로 되돌림)
162{{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8', outLink=''
163}}}{{{#!if linkOpen = input.indexOf('[['), linkClose = input.indexOf(']]')
r2674
164}}}{{{#!if linkRaw = input.substring(linkOpen, linkClose+2)
165}}}{{{#!if linkOpen != -1 && linkClose != -1 && linkOpen+2 < linkClose
166## [[]] 인 경우 linkOpen+2 == linkClose 임 ^^^^^^^^^^^^^^^^^^^^^^
167 {{{#!if divider = linkRaw.indexOf('|')
168 }}}{{{#!if divider == -1
169##[[링크]]
170 {{{#!if href = linkRaw.substring(2, linkRaw.length-2)
171 }}}
172 }}}{{{#!if divider != -1
173 {{{#!if (divider == 2) && (divider+1 == linkRaw.length-2)
174 {{{#!if break = true, input = input.substring(0, linkOpen) + input.substring(linkClose+2)
175##[[|]] > 출력 x
176 }}}
177 }}}
178 {{{#!if (divider == 2) && !break
179 {{{#!if break = true, href = linkRaw.substring(divider+1, linkRaw.length-2), linkPrint = href
180##[[|링크]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로.
181 }}}
182 }}}
183 {{{#!if (divider+1 == linkRaw.length-2) && !break
184##[[링크|]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로.
185 {{{#!if break = true, href = linkRaw.substring(2, divider), linkPrint = href
186 @linkPrint@
187 @href@
188 }}}
189 }}}
190 {{{#!if !break
191 {{{#!if href = linkRaw.substring(2, divider), linkPrint = linkRaw.substring(divider+1, linkRaw.length-2)
192 }}}
193 }}}
194 }}}
195 {{{#!if isLink = (href.startsWith('https://') || href.startsWith('http://') || href.startsWith('ftp://')), isLink
r2680

(r2677으로 되돌림)
196 {{{#!if linkColor = 'none', outLink = 'asdf'
r2674
197 }}}
198 }}}{{{#!if isCategory = (href.startsWith('분류:')), isCategory
199## 나중에생각 - 실제로 분류되지는 않고(하고 싶어도 못 함 display: none으로 없어지는 것도 아니고) 그냥 분류 느낌만 내기
200 }}}{{{#!if !(isCategory || isLink)
201 {{{#!if href = 'https://theseed.io/w/'+href
202 }}}
r2680

(r2677으로 되돌림)
203 }}}{{{#!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
204 }}}
r2657
205}}}
r2680

(r2677으로 되돌림)
206###########
207{{{#!if h=null,a=null,b=false,c='#0275d8',d=''
208}}}{{{#!if e=input.indexOf('[['),x=input.indexOf(']]')
209}}}{{{#!if z=input.substring(e,x+2)
210}}}{{{#!if e!=-1&&x!=-1&&e+2<x
211{{{#!if g=z.indexOf('|')
212}}}{{{#!if g==-1
213{{{#!if h=z.substring(2,z.length-2)
214}}}}}}{{{#!if g!=-1
215{{{#!if (g==2)&&(g+1==z.length-2)
216{{{#!if b=true,input=input.substring(0,e)+input.substring(x+2)
217}}}}}}{{{#!if (g==2)&&!b
218{{{#!if b=true,h=z.substring(g+1,z.length-2),a=h
219}}}}}}{{{#!if (g+1==z.length-2)&&!b
220{{{#!if b=true,h=z.substring(2,g),a=h
221}}}}}}{{{#!if !b
222{{{#!if h=z.substring(2,g),a=z.substring(g+1,z.length-2)
223}}}}}}}}}{{{#!if isLink=(h.startsWith('https://')||h.startsWith('http://')||h.startsWith('ftp://')),isLink
224{{{#!if c='none',d='asdf'
225}}}}}}{{{#!if isCategory=(h.startsWith('분류:')),isCategory
226}}}{{{#!if !(isCategory||isLink)
227{{{#!if h='https://theseed.io/w/'+h
228}}}}}}{{{#!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)
229}}}}}}
230}}}
231output: {{{#!html @input@}}}
r2681
232
233== 나무나무마크구상2 ==
234할거 : wiki/darkstyle/+/-/#fff
235리터럴귀찮음 if folding syntax는 될리가없음
r2699
236input='냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue; display: inline"<br>냥텍스트\}\}\}asdf\{\{\{#;color:red,#f00 asdf\}\}\}\{\{\{+1 size\}\}\}'
r2681
237##괄호를 ) 를 찾고 (를 나중에 찾는 방식이라(이게 로직이 더 간단함 근데 처리부분 길어지면 바꿀수도) input에 다른 거 오면 창남ㅇㅇ
238
239{{{#!wiki style="display: none"
r2699
240{{{#!if input='냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue; display: inline"<br>냥텍스트\}\}\}asdf\{\{\{#;color:red,#f00 asdf\}\}\}\{\{\{+1 size\}\}\}'
r2690
241}}}
242##############################
243{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
r2681
244 {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
245 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
246 }}}
247 {{{#!if _ParOpen == -1
248 {{{#!if Match=true
249 }}}
250 }}}{{{#!if _ParOpen != -1
251 {{{#!if ParOpen=_ParOpen
252 }}}
253 }}}
254############################
255 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
256 }}}
257 {{{#!if _ParOpen == -1
258 {{{#!if Match=true
259 }}}
260 }}}{{{#!if _ParOpen != -1
261 {{{#!if ParOpen+=_ParOpen+3
262 }}}
263 }}}
264############################
265 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
266 }}}
267 {{{#!if _ParOpen == -1
268 {{{#!if Match=true
269 }}}
270 }}}{{{#!if _ParOpen != -1
271 {{{#!if ParOpen+=_ParOpen+3
272 }}}
273 }}}
274 }}}
r2686
275###########################
r2681
276 {{{#!if Match
r2688
277 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html'
r2686
278 {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
279 }}}
280 }}}
r2688
281 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki'
r2687
282 {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=')
283 }}}{{{#!if BrL != -1 && StyleL!=-1
284 {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL)
285 }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3)
286 }}}
287 }}}
288 }}}
r2690
289 {{{#!if input.substr(ParOpen, 4) == '\{\{\{#'
290 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',')
291 }}}{{{#!if Blank!=-1
292 {{{#!if Comma != -1
293 {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank)
294 }}}
295 }}}
296 {{{#!if Comma == -1
297 {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor
298 }}}
299 }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose)
300 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
301##유효성 검사는 뺌. 귀찮고 넣으면 길어짐.
302 }}}
303 }}}
304 }}}
r2681
305 }}}
r2686
306}}}
r2690
307##############################
r2686
308{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
r2681
309 {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
310 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
311 }}}
312 {{{#!if _ParOpen == -1
313 {{{#!if Match=true
314 }}}
315 }}}{{{#!if _ParOpen != -1
316 {{{#!if ParOpen=_ParOpen
317 }}}
318 }}}
319############################
320 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
321 }}}
322 {{{#!if _ParOpen == -1
323 {{{#!if Match=true
324 }}}
325 }}}{{{#!if _ParOpen != -1
326 {{{#!if ParOpen+=_ParOpen+3
327 }}}
328 }}}
329############################
330 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
331 }}}
332 {{{#!if _ParOpen == -1
333 {{{#!if Match=true
334 }}}
335 }}}{{{#!if _ParOpen != -1
336 {{{#!if ParOpen+=_ParOpen+3
337 }}}
338 }}}
339 }}}
r2686
340###########################
r2681
341 {{{#!if Match
r2688
342 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html'
r2686
343 {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
344 }}}
r2681
345 }}}
r2688
346 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki'
r2687
347 {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=')
348 }}}{{{#!if BrL != -1 && StyleL!=-1
349 {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL)
350 }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3)
351 }}}
r2681
352 }}}
353 }}}
r2690
354 {{{#!if input.substr(ParOpen, 4) == '\{\{\{#'
355 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',')
356 }}}{{{#!if Blank!=-1
357 {{{#!if Comma != -1
358 {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank)
359 }}}
360 }}}
361 {{{#!if Comma == -1
362 {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor
363 }}}
364 }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose)
365 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
366##유효성 검사는 뺌. 귀찮고 넣으면 길어짐.
367 }}}
368 }}}
369 }}}
r2681
370 }}}
r2686
371}}}
372##############################
r2688
373{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
374 {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
375 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
376 }}}
377 {{{#!if _ParOpen == -1
378 {{{#!if Match=true
379 }}}
380 }}}{{{#!if _ParOpen != -1
381 {{{#!if ParOpen=_ParOpen
382 }}}
383 }}}
384############################
385 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
386 }}}
387 {{{#!if _ParOpen == -1
388 {{{#!if Match=true
389 }}}
390 }}}{{{#!if _ParOpen != -1
391 {{{#!if ParOpen+=_ParOpen+3
392 }}}
393 }}}
394############################
395 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
396 }}}
397 {{{#!if _ParOpen == -1
398 {{{#!if Match=true
399 }}}
400 }}}{{{#!if _ParOpen != -1
401 {{{#!if ParOpen+=_ParOpen+3
402 }}}
403 }}}
404 }}}
405###########################
406 {{{#!if Match
407 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html'
408 {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
409 }}}
410 }}}
411 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki'
412 {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=')
413 }}}{{{#!if BrL != -1 && StyleL!=-1
414 {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL)
415 }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3)
416 }}}
417 }}}
418 }}}
419 {{{#!if input.substr(ParOpen, 4) == '\{\{\{#'
420 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',')
421 }}}{{{#!if Blank!=-1
422 {{{#!if Comma != -1
423 {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank)
424 }}}
425 }}}
426 {{{#!if Comma == -1
427 {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor
428 }}}
429 }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose)
430 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
431##유효성 검사는 뺌. 귀찮고 넣으면 길어짐.
432 }}}
433 }}}
434 }}}
435 }}}
r2687
436}}}
r2699
437##############################
438{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
439 {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
440 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
441 }}}
442 {{{#!if _ParOpen == -1
443 {{{#!if Match=true
444 }}}
445 }}}{{{#!if _ParOpen != -1
446 {{{#!if ParOpen=_ParOpen
447 }}}
448 }}}
449############################
450 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
451 }}}
452 {{{#!if _ParOpen == -1
453 {{{#!if Match=true
454 }}}
455 }}}{{{#!if _ParOpen != -1
456 {{{#!if ParOpen+=_ParOpen+3
457 }}}
458 }}}
459############################
460 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
461 }}}
462 {{{#!if _ParOpen == -1
463 {{{#!if Match=true
464 }}}
465 }}}{{{#!if _ParOpen != -1
466 {{{#!if ParOpen+=_ParOpen+3
467 }}}
468 }}}
469 }}}
r2688
470###########################
r2699
471 {{{#!if Match
472 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html'
473 {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
474 }}}
475 }}}
476 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki'
477 {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=')
478 }}}{{{#!if BrL != -1 && StyleL!=-1
479 {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL)
480 }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3)
481 }}}
482 }}}
483 }}}
484 {{{#!if input.substr(ParOpen, 4) == '\{\{\{#'
485 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',')
486 }}}{{{#!if Blank!=-1
487 {{{#!if Comma != -1
488 {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank)
489 }}}
490 }}}
491 {{{#!if Comma == -1
492 {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor
493 }}}
494 }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose)
495 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
496##유효성 검사는 뺌. 귀찮고 넣으면 길어짐.
497 }}}
498 }}}
499 }}}
500 {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-'
501 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ')
502 }}}{{{#!if Blank==5
503 {{{#!if Size=input.substr(ParOpen+Blank-2, 2)
504 }}}
505##ㅈㄴ귀찮게 하나하나 대응해야됨
506 {{{#!if Size == '+1'
507 {{{#!if Em='1.28889em'
508 }}}
509 }}}
510 {{{#!if Text = input.substring(ParOpen+Blank,ParClose)
511 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
512 }}}
513 }}}
514 }}}
r2689
515}}}
r2699
516###########################
517}}}
r2688
518
r2681
519output: {{{#!html @input@}}}
r2624
520== ㅁㄴㅇㄹ ==
521[include(a)]''''''[include(a)][include(a)]
522[[]][include(a)][include(a)][include(a)]
523
524{{{#!wiki style="background: skyblue; margin: 0 auto; padding: 5px; max-width: 500px"
525||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><bgcolor=#000>||
526
527||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><rowbgcolor=#000>||
528||<colbgcolor=#000>||
529||<tan>||
530
531||<tablealign=center><tablewidth=100%><bgcolor=#000>||
532
533||<tablealign=center><tablewidth=100%>||}}}
534Mozilla/5.0 (compatible; Daum/1.0; +http://ws.daum.net/aboutkr.html) ok
535Mozilla/5.0 (compatible; coccocbot-web/1.0; +http://help.coccoc.com/web) ok
536\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)]
537[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)]
538----
539\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)]
540[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)]
541----
542\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)]
543[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)]
544----
545\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)]
546[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)]
547----
548\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)]
549[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)]
550----
551\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)]
552[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)]
553----
554\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)]
555[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)]
556----
557\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)]
558[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)]
559----
560\[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)]
561[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)]
562----
563\[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)]
564[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)]
565\[include(틀:isuuid, uuid=냥)]
566[include(틀:isuuid, uuid=냥)]
567[include(틀:ㅁ, str=Hello\, World!)]
568toString() 가능
569parseInt() x
570
571== ==
r2584
572{{{#!wiki style="font-weight: 300; font-size: 20px"
573{{{#!if 식 = '11+2'
r2597
574@식=11+2@}}} = {{{#!if s1=false, s2=false, s3=false, j=1+0, i=0+0, k=1+0
r2593
575##switch1 : 숫자 계속 탐색하기, switch2 : 소수점 아래 기입하기. switch3 : 중복 실행 방지.
r2594
576}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
r2593
577}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
r2594
578##숫자를 발견할 경우
r2591
579{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
r2595
580##여기에 앞자리가 음수냐 아니냐를 읽는 판별을 만들어야 합니다. ㅏ 이걸 생각 못했네요 그럼 좀 많이 길어지는데
r2591
581}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
582##숫자를 계속 발견할 경우 (소수점일 수도 있습니다. 여기서는 숫자일 경우)
r2592
583##여기에서 소수점 위를 기입하냐 소수점 아래를 기입하냐 소수점 아래라면 소수점 아래 몇번째 자리를 기입하느냐를 적어야 합니다.
r2597
584{{{#!if s2==false
585##정수 자리를 기입하는 경우
r2595
586{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
r2597
587}}}}}}{{{#!if s2==true
588##소수점 아래 자리를 기입하는 경우
589{{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true
590}}}{{{#!if k+=1
591##다음 소수점 자리 찾기
r2602
592}}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false)
r2605
593##앞에서 숫자를 발견한 다음 소수점을 발견할 경우 (소수점 발견은 최초 1회에 한함)
r2597
594{{{#!if s2=true, s3=true, k=1+0
595##switch2 : 켜기
r2607
596}}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46))||((s2==true)&&!this['d'+i]))&&(s3==false)
597##숫자가 더 이상 나오지 않고 소수점을 발견하지 못했을 경우, 소수점을 발견한 상황인데 숫자가 나오지 않을 경우 (소수점이 다시 나오는 경우가 자동적으로 포함)
r2591
598{{{#!if j+=1, s1=false, s2=false, s3=true
r2592
599##소수점 아래 기입하는 스위치도 off, 다음 index(j) 매김.
r2597
600}}}{{{#!if s3==true
601##여기까지 과정을 거쳤다면 스위치 off.
602{{{#!if s3=false
603}}}}}}
604}}}{{{#!if i+=1
r2594
605}}}
r2595
606##
r2599
607{{{#!if false
r2600
608##이 if문은 실행되지 않는 단락. 주석만 제거하고 복사 붙여넣기.
r2599
609{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
610}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
611{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
612}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
613{{{#!if s2==false
614{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
615}}}}}}{{{#!if s2==true
616{{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true
617}}}{{{#!if k+=1
r2603
618}}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false)
r2599
619{{{#!if s2=true, s3=true, k=1+0
r2604
620}}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46)||(s2==false))||((s2==true)&&!this['d'+i]&&(식=[i]==46)))&&(s3==false)
r2599
621{{{#!if j+=1, s1=false, s2=false, s3=true
622}}}{{{#!if s3==true
623{{{#!if s3=false
624}}}}}}
625}}}{{{#!if i+=1
626}}}
627####
628}}}
629##
r2600
630{{{#!if this['v1'] == 1
631this['v1'] == 1}}}
632##
633{{{#!if s3=false
634}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
635}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
636{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
637}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
638{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
639}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
640{{{#!if s2=true, s3=true
641}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
642{{{#!if j+=1, s1=false, s2=false, s3=true
643}}}}}}{{{#!if i+=1
644}}}
645##
r2595
646{{{#!if this['v1'] == 11
647this['v1'] == 11}}}
648##
r2596
649{{{#!if s3=false
650}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
651}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
652{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
653}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
654{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
655}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
656{{{#!if s2=true, s3=true
657}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
658{{{#!if j+=1, s1=false, s2=false, s3=true
659}}}}}}{{{#!if i+=1
660}}}{{{#!if s3=false
661}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
662}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
663{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
664}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
665{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
666}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
667{{{#!if s2=true, s3=true
668}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
669{{{#!if j+=1, s1=false, s2=false, s3=true
670}}}}}}{{{#!if i+=1
671}}}
r2595
672##
r2596
673{{{#!if this['v2'] == 2
674this['v2'] == 2}}}
r2595
675##
676##
677##
678##
r2593
679{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
r2586
680}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
681}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
r2584
682}}}
r2586
683## 식 검증이 됐다 치면
r2587
684## dn : true - 수 / false - 연산자
r2586
685{{{#!if this['d0']
6861}}}{{{#!if this['d1']
6871}}}{{{#!if !this['d2']
688+}}}{{{#!if this['d3']
r2585
6892}}}
r2587
690## in : 11+2 에서 '11'은 0번째 위치, '+'는 2번째 위치.. > 0, 2, 3 > 위치 기억 / 뺄셈으로 자릿수 계산
691## 보다 좋은 방법이 있ㅅ을 것 같은데음ㅁ..
692{{{#!if i = 1, j = 1, i0 = 0
693}}}
694{{{#!if t = this['d0'] != this['d1'], t
695{{{#!if this['i'+i] = j, j+=1, i+=1
696}}}}}}{{{#!if !t
697{{{#!if j+=1
698}}}}}}{{{#!if t = this['d1'] != this['d2'], t
699{{{#!if this['i'+i] = j, j+=1, i+=1
700}}}}}}{{{#!if !t
701{{{#!if j+=1
702}}}}}}{{{#!if t = this['d1'] != this['d2'], t
703{{{#!if this['i'+i] = j, j+=1, i+=1
704}}}}}}{{{#!if !t
705{{{#!if j+=1
r2585
706}}}}}}
r2608
707## {{{#!if i0 == 0
708## i0 == 0 }}}{{{#!if i1 == 2
709## i1 == 2 }}}{{{#!if i2 == 3
710## i2 == 3 }}}
r2587
711## {{{#!if list = [d0, d1, d2, d3]
712## }}}
r2624
713}}}