r2703
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##
30folding, wiki(스타일), html은 뒤에 띄어쓰기 없어도 작동.
31다만 dark-style은 꼭 "-"만 사용 가능.
32if, 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)]
r2694
59[include(틀:계산기2, a=100000000000000000, f=*, b=100000000000000000)]
r2693
60[include(틀:계산기2, a=123456789012345678, f=*, b=789012345678901234)]
r2695
61[include(틀:계산기2, a=123456789012345678.901234567890123456, f=*, b=789012345678901234.567890123456789012)]
62[include(틀:계산기2, a=0, f=*, b=789012345678901234.567890123456789012)]}}}
r2671
63아직은 소수끼리의 계산은 되지 않는 모양이다. 사실 그도 그럴 것이 gauss함수를 가져오지 않았기 때문)}}}
r2624
64
65{{{#!if json={'a':'b', 'c':'d'}
66json={'a':'b', 'c':'d'}[br]
67}}}{{{#!if json['a'] == 'b'
68json['a'] == 'b'[br]
69}}}{{{#!if list = ['a', 'b']
70list = ['a', 'b'][br]
71}}}{{{#!if list[1] == 'b'
72list[1] == 'b'[br]
73}}}
74
75[[../냥]] < 볼드체. 단, {{{../}}}뒤에 붙는 이름이 자기자신과 같은 이름이면 볼드체, 다른 이름(예 : [[../냥냥]], [[../냥/냥]])이면 볼드체가 아니다. 문서명이 '[[냥/냥|(상위문서명)/냥]]'일 경우에도 볼드체가 된다. 이 문서에는 상위 문서가 없으니 그냥 '냥' 으로 링크되는 듯 하다.
76[[냥#]] < 볼드체
77[[냥#ㅁㄴㅇㄹ|냥#ㅁㄴㅇㄹ]] < 볼드체아님
78[[문서:냥]] < 볼드체아님
79
80[include(틀:계산기, r=13)]
81\[include(틀:계산기, r=13)]
82생각해보니까 그냥 r을 지정할 수도 있겠구나
83[include(틀:계산기, a=123456789, f=+, b=1)]
84[include(틀:계산기, a=123456789, f=-, b=1)]
85[include(틀:계산기, a=123459, f=*, b=2)]
86[include(틀:계산기, a=123459, f=/, b=2)]
r2646
87== 그래프구상 ==
88{{{#!if i=0, x=0
r2648
89}}}<math>x^2</math>
r2646
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
109}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
110}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
111}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
r2652
112}}}{{{#!if true
r2669
113#tk : thickness (px) ; wd : width (px)
114{{{#!if tk=1+0.0, color="#666", wd=10+0.0
115}}}}}}{{{#!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
116}}}
r2669
117{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y1@px; @wdx@; @vag@(@v1@px + @tk@px)"
118}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y2@px; @wdx@; @vag@(@v2@px + @tk@px);"
119}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y3@px; @wdx@; @vag@(@v3@px + @tk@px);"
r2670
120}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y4@px; @wdx@; @vag@(@v4@px + @tk@px);"
121}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y5@px; @wdx@; @vag@(@v5@px + @tk@px);"
122}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y6@px; @wdx@; @vag@(@v6@px + @tk@px);"
123}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y7@px; @wdx@; @vag@(@v7@px + @tk@px);"
124}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y8@px; @wdx@; @vag@(@v8@px + @tk@px);"
125}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y9@px; @wdx@; @vag@(@v9@px + @tk@px);"
126}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y10@px; @wdx@; @vag@(@v10@px + @tk@px)"
127}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y11@px; @wdx@; @vag@(@v11@px + @tk@px)"
128}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y12@px; @wdx@; @vag@(@v12@px + @tk@px)"
129}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y13@px; @wdx@; @vag@(@v13@px + @tk@px)"
130}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y14@px; @wdx@; @vag@(@v14@px + @tk@px)"
r2646
131}}}
r2624
132
r2657
133== 나무나무마크구상 ==
r2681
134 * 할거 > 분류
r2680

(r2677으로 되돌림)
135## \{{{#!html <div style="clear: both"/>}}}
136## == clearfix
137input={{{냥[[링크|냥]]냥[[https://namu.wiki/w/사용자:nyangx3|냥]]냥}}}
138{{{#!wiki style="display: none"
139{{{#!if input='냥[[링크|냥]]냥[[https://namu.wiki/w/사용자:nyangx3|냥]]냥'
r2657
140}}}
r2680

(r2677으로 되돌림)
141{{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8', outLink=''
142}}}{{{#!if linkOpen = input.indexOf('[['), linkClose = input.indexOf(']]')
r2674
143}}}{{{#!if linkRaw = input.substring(linkOpen, linkClose+2)
144}}}{{{#!if linkOpen != -1 && linkClose != -1 && linkOpen+2 < linkClose
r2703
145## [[]] 인 경우 linkOpen+2 == linkClose 임 ^^^^^^^^^^^^^^^^^^^^^^
146 {{{#!if divider = linkRaw.indexOf('|')
147 }}}{{{#!if divider == -1
r2674
148##[[링크]]
r2703
149 {{{#!if href = linkRaw.substring(2, linkRaw.length-2)
150 }}}
151 }}}{{{#!if divider != -1
152 {{{#!if (divider == 2) && (divider+1 == linkRaw.length-2)
153 {{{#!if break = true, input = input.substring(0, linkOpen) + input.substring(linkClose+2)
r2674
154##[[|]] > 출력 x
r2703
155 }}}
156 }}}
157 {{{#!if (divider == 2) && !break
158 {{{#!if break = true, href = linkRaw.substring(divider+1, linkRaw.length-2), linkPrint = href
r2674
159##[[|링크]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로.
r2703
160 }}}
161 }}}
162 {{{#!if (divider+1 == linkRaw.length-2) && !break
r2674
163##[[링크|]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로.
r2703
164 {{{#!if break = true, href = linkRaw.substring(2, divider), linkPrint = href
165 @linkPrint@
166 @href@
167 }}}
r2674
168 }}}
r2703
169 {{{#!if !break
170 {{{#!if href = linkRaw.substring(2, divider), linkPrint = linkRaw.substring(divider+1, linkRaw.length-2)
171 }}}
172 }}}
173 }}}
174 {{{#!if isLink = (href.startsWith('https://') || href.startsWith('http://') || href.startsWith('ftp://')), isLink
175 {{{#!if linkColor = 'none', outLink = 'asdf'
176 }}}
177 }}}{{{#!if isCategory = (href.startsWith('분류:')), isCategory
r2674
178## 나중에생각 - 실제로 분류되지는 않고(하고 싶어도 못 함 display: none으로 없어지는 것도 아니고) 그냥 분류 느낌만 내기
r2703
179 }}}{{{#!if !(isCategory || isLink)
180 {{{#!if href = 'https://theseed.io/w/'+href
r2674
181 }}}
r2703
182 }}}{{{#!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)
183 }}}
r2657
184}}}
r2680

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