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

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

(r2677으로 되돌림)
161{{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8', outLink=''
162}}}{{{#!if linkOpen = input.indexOf('[['), linkClose = input.indexOf(']]')
r2674
163}}}{{{#!if linkRaw = input.substring(linkOpen, linkClose+2)
164}}}{{{#!if linkOpen != -1 && linkClose != -1 && linkOpen+2 < linkClose
r2703
165## [[]] 인 경우 linkOpen+2 == linkClose 임 ^^^^^^^^^^^^^^^^^^^^^^
166 {{{#!if divider = linkRaw.indexOf('|')
167 }}}{{{#!if divider == -1
r2674
168##[[링크]]
r2704
169 {{{#!if href = linkRaw.substring(2, linkRaw.length-2), linkPrint=href
r2703
170 }}}
171 }}}{{{#!if divider != -1
172 {{{#!if (divider == 2) && (divider+1 == linkRaw.length-2)
173 {{{#!if break = true, input = input.substring(0, linkOpen) + input.substring(linkClose+2)
r2674
174##[[|]] > 출력 x
r2703
175 }}}
176 }}}
177 {{{#!if (divider == 2) && !break
178 {{{#!if break = true, href = linkRaw.substring(divider+1, linkRaw.length-2), linkPrint = href
r2674
179##[[|링크]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로.
r2703
180 }}}
181 }}}
182 {{{#!if (divider+1 == linkRaw.length-2) && !break
r2674
183##[[링크|]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로.
r2703
184 {{{#!if break = true, href = linkRaw.substring(2, divider), linkPrint = href
185 @linkPrint@
186 @href@
187 }}}
r2674
188 }}}
r2703
189 {{{#!if !break
190 {{{#!if href = linkRaw.substring(2, divider), linkPrint = linkRaw.substring(divider+1, linkRaw.length-2)
191 }}}
192 }}}
193 }}}
194 {{{#!if isLink = (href.startsWith('https://') || href.startsWith('http://') || href.startsWith('ftp://')), isLink
195 {{{#!if linkColor = 'none', outLink = 'asdf'
196 }}}
197 }}}{{{#!if isCategory = (href.startsWith('분류:')), isCategory
r2674
198## 나중에생각 - 실제로 분류되지는 않고(하고 싶어도 못 함 display: none으로 없어지는 것도 아니고) 그냥 분류 느낌만 내기
r2703
199 }}}{{{#!if !(isCategory || isLink)
200 {{{#!if href = 'https://theseed.io/w/'+href
r2674
201 }}}
r2703
202 }}}{{{#!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)
203 }}}
r2657
204}}}
r2704
205#######################
206{{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8', outLink=''
207}}}{{{#!if linkOpen = input.indexOf('[['), linkClose = input.indexOf(']]')
208}}}{{{#!if linkRaw = input.substring(linkOpen, linkClose+2)
209}}}{{{#!if linkOpen != -1 && linkClose != -1 && linkOpen+2 < linkClose
210## [[]] 인 경우 linkOpen+2 == linkClose 임 ^^^^^^^^^^^^^^^^^^^^^^
211 {{{#!if divider = linkRaw.indexOf('|')
212 }}}{{{#!if divider == -1
213##[[링크]]
214 {{{#!if href = linkRaw.substring(2, linkRaw.length-2), linkPrint=href
215 }}}
216 }}}{{{#!if divider != -1
217 {{{#!if (divider == 2) && (divider+1 == linkRaw.length-2)
218 {{{#!if break = true, input = input.substring(0, linkOpen) + input.substring(linkClose+2)
219##[[|]] > 출력 x
220 }}}
221 }}}
222 {{{#!if (divider == 2) && !break
223 {{{#!if break = true, href = linkRaw.substring(divider+1, linkRaw.length-2), linkPrint = href
224##[[|링크]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로.
225 }}}
226 }}}
227 {{{#!if (divider+1 == linkRaw.length-2) && !break
228##[[링크|]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로.
229 {{{#!if break = true, href = linkRaw.substring(2, divider), linkPrint = href
230 @linkPrint@
231 @href@
232 }}}
233 }}}
234 {{{#!if !break
235 {{{#!if href = linkRaw.substring(2, divider), linkPrint = linkRaw.substring(divider+1, linkRaw.length-2)
236 }}}
237 }}}
238 }}}
239 {{{#!if isLink = (href.startsWith('https://') || href.startsWith('http://') || href.startsWith('ftp://')), isLink
240 {{{#!if linkColor = 'none', outLink = 'asdf'
241 }}}
242 }}}{{{#!if isCategory = (href.startsWith('분류:')), isCategory
243## 나중에생각 - 실제로 분류되지는 않고(하고 싶어도 못 함 display: none으로 없어지는 것도 아니고) 그냥 분류 느낌만 내기
244 }}}{{{#!if !(isCategory || isLink)
245 {{{#!if href = 'https://theseed.io/w/'+href
246 }}}
247 }}}{{{#!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)
248 }}}
r2680

(r2677으로 되돌림)
249}}}
r2704
250}}}
r2680

(r2677으로 되돌림)
251output: {{{#!html @input@}}}
r2681
252
253== 나무나무마크구상2 ==
r2700
254할거 : darkstyle
r2681
255리터럴귀찮음 if folding syntax는 될리가없음
r2700
256input='냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue; display: inline"<br>냥텍스트\}\}\}asdf\{\{\{#;color:red,#f00 asdf\}\}\}\{\{\{-3 size\}\}\}'
r2681
257##괄호를 ) 를 찾고 (를 나중에 찾는 방식이라(이게 로직이 더 간단함 근데 처리부분 길어지면 바꿀수도) input에 다른 거 오면 창남ㅇㅇ
258
259{{{#!wiki style="display: none"
r2705
260{{{#!if input='{{{#!wiki style="text-align: center"<br>{{{+5 \'\'\'[[사용자:nyangx3/연습장|{{{#373a3c,#ddd 냥냥냥}}}]]\'\'\'}}}<br>{{{-1 [[고양이]]는 신이야}}}{{{#!wiki style="word-break: keep-all"<br>{{{-3 별 이유 없이 오셨다면, 별 이유는 없고 사용자 문서에 별({{{#595c5f,#e0e0e0 {{{#!html <span style="font-family: Ionicons">&#xf4b2</span>}}}}}}) 한 번 눌러 주세요.}}}}}}}}}'
r2690
261}}}
262##############################
263{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
r2703
264 {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
265 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
266 }}}
267 {{{#!if _ParOpen == -1
268 {{{#!if Match=true
r2681
269 }}}
r2703
270 }}}{{{#!if _ParOpen != -1
271 {{{#!if ParOpen=_ParOpen
272 }}}
273 }}}
r2681
274############################
r2703
275 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
276 }}}
277 {{{#!if _ParOpen == -1
278 {{{#!if Match=true
r2681
279 }}}
r2703
280 }}}{{{#!if _ParOpen != -1
281 {{{#!if ParOpen+=_ParOpen+3
282 }}}
283 }}}
r2681
284############################
r2703
285 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
286 }}}
287 {{{#!if _ParOpen == -1
288 {{{#!if Match=true
r2681
289 }}}
r2703
290 }}}{{{#!if _ParOpen != -1
291 {{{#!if ParOpen+=_ParOpen+3
r2681
292 }}}
r2703
293 }}}
r2705
294############################
295 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
r2703
296 }}}
r2705
297 {{{#!if _ParOpen == -1
298 {{{#!if Match=true
299 }}}
300 }}}{{{#!if _ParOpen != -1
301 {{{#!if ParOpen+=_ParOpen+3
302 }}}
303 }}}
304############################
305 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
306 }}}
307 {{{#!if _ParOpen == -1
308 {{{#!if Match=true
309 }}}
310 }}}{{{#!if _ParOpen != -1
311 {{{#!if ParOpen+=_ParOpen+3
312 }}}
313 }}}
314############################
315 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
316 }}}
317 {{{#!if _ParOpen == -1
318 {{{#!if Match=true
319 }}}
320 }}}{{{#!if _ParOpen != -1
321 {{{#!if ParOpen+=_ParOpen+3
322 }}}
323 }}}
324############################
325 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
326 }}}
327 {{{#!if _ParOpen == -1
328 {{{#!if Match=true
329 }}}
330 }}}{{{#!if _ParOpen != -1
331 {{{#!if ParOpen+=_ParOpen+3
332 }}}
333 }}}
334 }}}
r2686
335###########################
r2703
336 {{{#!if Match
337 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html'
338 {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
339 }}}
340 }}}
341 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki'
342 {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=')
343 }}}{{{#!if BrL != -1 && StyleL!=-1
344 {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL)
345 }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3)
346 }}}
347 }}}
348 }}}
349 {{{#!if input.substr(ParOpen, 4) == '\{\{\{#'
350 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',')
351 }}}{{{#!if Blank!=-1
352 {{{#!if Comma != -1
353 {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank)
r2686
354 }}}
r2703
355 }}}
356 {{{#!if Comma == -1
357 {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor
r2687
358 }}}
r2703
359 }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose)
360 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
r2690
361##유효성 검사는 뺌. 귀찮고 넣으면 길어짐.
r2703
362 }}}
r2681
363 }}}
r2703
364 }}}
365 {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-'
366 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ')
367 }}}{{{#!if Blank==5
368 {{{#!if Size=input.substr(ParOpen+Blank-2, 2)
369 }}}
370 {{{#!if Size == '+1'
371 {{{#!if Em='1.28889em'
372 }}}}}}{{{#!if Size == '+2'
373 {{{#!if Em='1.38889em'
374 }}}}}}{{{#!if Size == '+3'
375 {{{#!if Em='1.48144em'
376 }}}}}}{{{#!if Size == '+4'
377 {{{#!if Em='1.57400em'
378 }}}}}}{{{#!if Size == '+5'
379 {{{#!if Em='1.66667em'
380 }}}}}}{{{#!if Size == '-1'
381 {{{#!if Em='0.92589em'
382 }}}}}}{{{#!if Size == '-2'
383 {{{#!if Em='0.83333em'
384 }}}}}}{{{#!if Size == '-3'
385 {{{#!if Em='0.74067em'
386 }}}}}}{{{#!if Size == '-4'
387 {{{#!if Em='0.64811em'
388 }}}}}}{{{#!if Size == '-5'
389 {{{#!if Em='0.62222em'
390 }}}}}}
391 {{{#!if Text = input.substring(ParOpen+Blank,ParClose)
392 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
393 }}}
394 }}}
395 }}}
r2686
396}}}
r2700
397}}}
r2690
398##############################
r2686
399{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
r2703
400 {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
401 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
402 }}}
403 {{{#!if _ParOpen == -1
404 {{{#!if Match=true
r2681
405 }}}
r2703
406 }}}{{{#!if _ParOpen != -1
407 {{{#!if ParOpen=_ParOpen
408 }}}
409 }}}
r2681
410############################
r2703
411 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
412 }}}
413 {{{#!if _ParOpen == -1
414 {{{#!if Match=true
r2681
415 }}}
r2703
416 }}}{{{#!if _ParOpen != -1
417 {{{#!if ParOpen+=_ParOpen+3
418 }}}
419 }}}
r2681
420############################
r2703
421 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
422 }}}
423 {{{#!if _ParOpen == -1
424 {{{#!if Match=true
r2681
425 }}}
r2703
426 }}}{{{#!if _ParOpen != -1
427 {{{#!if ParOpen+=_ParOpen+3
r2681
428 }}}
r2703
429 }}}
r2705
430############################
431 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
r2703
432 }}}
r2705
433 {{{#!if _ParOpen == -1
434 {{{#!if Match=true
435 }}}
436 }}}{{{#!if _ParOpen != -1
437 {{{#!if ParOpen+=_ParOpen+3
438 }}}
439 }}}
440############################
441 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
442 }}}
443 {{{#!if _ParOpen == -1
444 {{{#!if Match=true
445 }}}
446 }}}{{{#!if _ParOpen != -1
447 {{{#!if ParOpen+=_ParOpen+3
448 }}}
449 }}}
450############################
451 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
452 }}}
453 {{{#!if _ParOpen == -1
454 {{{#!if Match=true
455 }}}
456 }}}{{{#!if _ParOpen != -1
457 {{{#!if ParOpen+=_ParOpen+3
458 }}}
459 }}}
460############################
461 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
462 }}}
463 {{{#!if _ParOpen == -1
464 {{{#!if Match=true
465 }}}
466 }}}{{{#!if _ParOpen != -1
467 {{{#!if ParOpen+=_ParOpen+3
468 }}}
469 }}}
470 }}}
r2686
471###########################
r2703
472 {{{#!if Match
473 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html'
474 {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
475 }}}
476 }}}
477 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki'
478 {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=')
479 }}}{{{#!if BrL != -1 && StyleL!=-1
480 {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL)
481 }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3)
482 }}}
483 }}}
484 }}}
485 {{{#!if input.substr(ParOpen, 4) == '\{\{\{#'
486 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',')
487 }}}{{{#!if Blank!=-1
488 {{{#!if Comma != -1
489 {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank)
r2681
490 }}}
r2703
491 }}}
492 {{{#!if Comma == -1
493 {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor
r2681
494 }}}
r2703
495 }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose)
496 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
r2690
497##유효성 검사는 뺌. 귀찮고 넣으면 길어짐.
r2703
498 }}}
r2681
499 }}}
r2703
500 }}}
501 {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-'
502 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ')
503 }}}{{{#!if Blank==5
504 {{{#!if Size=input.substr(ParOpen+Blank-2, 2)
505 }}}
506 {{{#!if Size == '+1'
507 {{{#!if Em='1.28889em'
508 }}}}}}{{{#!if Size == '+2'
509 {{{#!if Em='1.38889em'
510 }}}}}}{{{#!if Size == '+3'
511 {{{#!if Em='1.48144em'
512 }}}}}}{{{#!if Size == '+4'
513 {{{#!if Em='1.57400em'
514 }}}}}}{{{#!if Size == '+5'
515 {{{#!if Em='1.66667em'
516 }}}}}}{{{#!if Size == '-1'
517 {{{#!if Em='0.92589em'
518 }}}}}}{{{#!if Size == '-2'
519 {{{#!if Em='0.83333em'
520 }}}}}}{{{#!if Size == '-3'
521 {{{#!if Em='0.74067em'
522 }}}}}}{{{#!if Size == '-4'
523 {{{#!if Em='0.64811em'
524 }}}}}}{{{#!if Size == '-5'
525 {{{#!if Em='0.62222em'
526 }}}}}}
527 {{{#!if Text = input.substring(ParOpen+Blank,ParClose)
528 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
529 }}}
530 }}}
531 }}}
r2686
532}}}
r2700
533}}}
r2686
534##############################
r2688
535{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
r2703
536 {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
537 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
538 }}}
539 {{{#!if _ParOpen == -1
540 {{{#!if Match=true
r2688
541 }}}
r2703
542 }}}{{{#!if _ParOpen != -1
543 {{{#!if ParOpen=_ParOpen
544 }}}
545 }}}
r2688
546############################
r2703
547 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
548 }}}
549 {{{#!if _ParOpen == -1
550 {{{#!if Match=true
r2688
551 }}}
r2703
552 }}}{{{#!if _ParOpen != -1
553 {{{#!if ParOpen+=_ParOpen+3
554 }}}
555 }}}
r2688
556############################
r2703
557 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
558 }}}
559 {{{#!if _ParOpen == -1
560 {{{#!if Match=true
r2688
561 }}}
r2703
562 }}}{{{#!if _ParOpen != -1
563 {{{#!if ParOpen+=_ParOpen+3
r2688
564 }}}
r2703
565 }}}
r2705
566############################
567 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
r2703
568 }}}
r2705
569 {{{#!if _ParOpen == -1
570 {{{#!if Match=true
571 }}}
572 }}}{{{#!if _ParOpen != -1
573 {{{#!if ParOpen+=_ParOpen+3
574 }}}
575 }}}
576############################
577 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
578 }}}
579 {{{#!if _ParOpen == -1
580 {{{#!if Match=true
581 }}}
582 }}}{{{#!if _ParOpen != -1
583 {{{#!if ParOpen+=_ParOpen+3
584 }}}
585 }}}
586############################
587 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
588 }}}
589 {{{#!if _ParOpen == -1
590 {{{#!if Match=true
591 }}}
592 }}}{{{#!if _ParOpen != -1
593 {{{#!if ParOpen+=_ParOpen+3
594 }}}
595 }}}
596############################
597 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
598 }}}
599 {{{#!if _ParOpen == -1
600 {{{#!if Match=true
601 }}}
602 }}}{{{#!if _ParOpen != -1
603 {{{#!if ParOpen+=_ParOpen+3
604 }}}
605 }}}
606 }}}
r2688
607###########################
r2703
608 {{{#!if Match
609 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html'
610 {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
611 }}}
612 }}}
613 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki'
614 {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=')
615 }}}{{{#!if BrL != -1 && StyleL!=-1
616 {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL)
617 }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3)
618 }}}
619 }}}
620 }}}
621 {{{#!if input.substr(ParOpen, 4) == '\{\{\{#'
622 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',')
623 }}}{{{#!if Blank!=-1
624 {{{#!if Comma != -1
625 {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank)
r2688
626 }}}
r2703
627 }}}
628 {{{#!if Comma == -1
629 {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor
r2688
630 }}}
r2703
631 }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose)
632 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
r2688
633##유효성 검사는 뺌. 귀찮고 넣으면 길어짐.
r2703
634 }}}
r2688
635 }}}
r2703
636 }}}
637 {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-'
638 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ')
639 }}}{{{#!if Blank==5
640 {{{#!if Size=input.substr(ParOpen+Blank-2, 2)
641 }}}
642 {{{#!if Size == '+1'
643 {{{#!if Em='1.28889em'
644 }}}}}}{{{#!if Size == '+2'
645 {{{#!if Em='1.38889em'
646 }}}}}}{{{#!if Size == '+3'
647 {{{#!if Em='1.48144em'
648 }}}}}}{{{#!if Size == '+4'
649 {{{#!if Em='1.57400em'
650 }}}}}}{{{#!if Size == '+5'
651 {{{#!if Em='1.66667em'
652 }}}}}}{{{#!if Size == '-1'
653 {{{#!if Em='0.92589em'
654 }}}}}}{{{#!if Size == '-2'
655 {{{#!if Em='0.83333em'
656 }}}}}}{{{#!if Size == '-3'
657 {{{#!if Em='0.74067em'
658 }}}}}}{{{#!if Size == '-4'
659 {{{#!if Em='0.64811em'
660 }}}}}}{{{#!if Size == '-5'
661 {{{#!if Em='0.62222em'
662 }}}}}}
663 {{{#!if Text = input.substring(ParOpen+Blank,ParClose)
664 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
665 }}}
666 }}}
667 }}}
r2687
668}}}
r2700
669}}}
r2699
670##############################
671{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
r2703
672 {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
673 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
674 }}}
675 {{{#!if _ParOpen == -1
676 {{{#!if Match=true
r2699
677 }}}
r2703
678 }}}{{{#!if _ParOpen != -1
679 {{{#!if ParOpen=_ParOpen
680 }}}
681 }}}
r2699
682############################
r2703
683 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
684 }}}
685 {{{#!if _ParOpen == -1
686 {{{#!if Match=true
r2699
687 }}}
r2703
688 }}}{{{#!if _ParOpen != -1
689 {{{#!if ParOpen+=_ParOpen+3
690 }}}
691 }}}
r2699
692############################
r2703
693 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
694 }}}
695 {{{#!if _ParOpen == -1
696 {{{#!if Match=true
r2699
697 }}}
r2703
698 }}}{{{#!if _ParOpen != -1
699 {{{#!if ParOpen+=_ParOpen+3
r2699
700 }}}
r2703
701 }}}
r2705
702############################
703 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
r2703
704 }}}
r2705
705 {{{#!if _ParOpen == -1
706 {{{#!if Match=true
707 }}}
708 }}}{{{#!if _ParOpen != -1
709 {{{#!if ParOpen+=_ParOpen+3
710 }}}
711 }}}
712############################
713 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
714 }}}
715 {{{#!if _ParOpen == -1
716 {{{#!if Match=true
717 }}}
718 }}}{{{#!if _ParOpen != -1
719 {{{#!if ParOpen+=_ParOpen+3
720 }}}
721 }}}
722############################
723 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
724 }}}
725 {{{#!if _ParOpen == -1
726 {{{#!if Match=true
727 }}}
728 }}}{{{#!if _ParOpen != -1
729 {{{#!if ParOpen+=_ParOpen+3
730 }}}
731 }}}
732############################
733 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
734 }}}
735 {{{#!if _ParOpen == -1
736 {{{#!if Match=true
737 }}}
738 }}}{{{#!if _ParOpen != -1
739 {{{#!if ParOpen+=_ParOpen+3
740 }}}
741 }}}
742 }}}
r2688
743###########################
r2703
744 {{{#!if Match
745 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html'
746 {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
747 }}}
748 }}}
749 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki'
750 {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=')
751 }}}{{{#!if BrL != -1 && StyleL!=-1
752 {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL)
753 }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3)
754 }}}
755 }}}
756 }}}
757 {{{#!if input.substr(ParOpen, 4) == '\{\{\{#'
758 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',')
759 }}}{{{#!if Blank!=-1
760 {{{#!if Comma != -1
761 {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank)
r2699
762 }}}
r2703
763 }}}
764 {{{#!if Comma == -1
765 {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor
r2699
766 }}}
r2703
767 }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose)
768 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
r2699
769##유효성 검사는 뺌. 귀찮고 넣으면 길어짐.
r2703
770 }}}
r2699
771 }}}
r2703
772 }}}
773 {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-'
774 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ')
775 }}}{{{#!if Blank==5
776 {{{#!if Size=input.substr(ParOpen+Blank-2, 2)
777 }}}
778 {{{#!if Size == '+1'
779 {{{#!if Em='1.28889em'
780 }}}}}}{{{#!if Size == '+2'
781 {{{#!if Em='1.38889em'
782 }}}}}}{{{#!if Size == '+3'
783 {{{#!if Em='1.48144em'
784 }}}}}}{{{#!if Size == '+4'
785 {{{#!if Em='1.57400em'
786 }}}}}}{{{#!if Size == '+5'
787 {{{#!if Em='1.66667em'
788 }}}}}}{{{#!if Size == '-1'
789 {{{#!if Em='0.92589em'
790 }}}}}}{{{#!if Size == '-2'
791 {{{#!if Em='0.83333em'
792 }}}}}}{{{#!if Size == '-3'
793 {{{#!if Em='0.74067em'
794 }}}}}}{{{#!if Size == '-4'
795 {{{#!if Em='0.64811em'
796 }}}}}}{{{#!if Size == '-5'
797 {{{#!if Em='0.62222em'
798 }}}}}}
799 {{{#!if Text = input.substring(ParOpen+Blank,ParClose)
800 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
801 }}}
802 }}}
803 }}}
r2689
804}}}
r2700
805}}}
r2705
806##############################
807{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
808 {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
809 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
810 }}}
811 {{{#!if _ParOpen == -1
812 {{{#!if Match=true
813 }}}
814 }}}{{{#!if _ParOpen != -1
815 {{{#!if ParOpen=_ParOpen
816 }}}
817 }}}
818############################
819 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
820 }}}
821 {{{#!if _ParOpen == -1
822 {{{#!if Match=true
823 }}}
824 }}}{{{#!if _ParOpen != -1
825 {{{#!if ParOpen+=_ParOpen+3
826 }}}
827 }}}
828############################
829 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
830 }}}
831 {{{#!if _ParOpen == -1
832 {{{#!if Match=true
833 }}}
834 }}}{{{#!if _ParOpen != -1
835 {{{#!if ParOpen+=_ParOpen+3
836 }}}
837 }}}
838############################
839 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
840 }}}
841 {{{#!if _ParOpen == -1
842 {{{#!if Match=true
843 }}}
844 }}}{{{#!if _ParOpen != -1
845 {{{#!if ParOpen+=_ParOpen+3
846 }}}
847 }}}
848############################
849 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
850 }}}
851 {{{#!if _ParOpen == -1
852 {{{#!if Match=true
853 }}}
854 }}}{{{#!if _ParOpen != -1
855 {{{#!if ParOpen+=_ParOpen+3
856 }}}
857 }}}
858############################
859 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
860 }}}
861 {{{#!if _ParOpen == -1
862 {{{#!if Match=true
863 }}}
864 }}}{{{#!if _ParOpen != -1
865 {{{#!if ParOpen+=_ParOpen+3
866 }}}
867 }}}
868############################
869 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
870 }}}
871 {{{#!if _ParOpen == -1
872 {{{#!if Match=true
873 }}}
874 }}}{{{#!if _ParOpen != -1
875 {{{#!if ParOpen+=_ParOpen+3
876 }}}
877 }}}
878 }}}
r2699
879###########################
r2705
880 {{{#!if Match
881 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html'
882 {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
883 }}}
884 }}}
885 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki'
886 {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=')
887 }}}{{{#!if BrL != -1 && StyleL!=-1
888 {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL)
889 }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3)
890 }}}
891 }}}
892 }}}
893 {{{#!if input.substr(ParOpen, 4) == '\{\{\{#'
894 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',')
895 }}}{{{#!if Blank!=-1
896 {{{#!if Comma != -1
897 {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank)
898 }}}
899 }}}
900 {{{#!if Comma == -1
901 {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor
902 }}}
903 }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose)
904 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
905##유효성 검사는 뺌. 귀찮고 넣으면 길어짐.
906 }}}
907 }}}
908 }}}
909 {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-'
910 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ')
911 }}}{{{#!if Blank==5
912 {{{#!if Size=input.substr(ParOpen+Blank-2, 2)
913 }}}
914 {{{#!if Size == '+1'
915 {{{#!if Em='1.28889em'
916 }}}}}}{{{#!if Size == '+2'
917 {{{#!if Em='1.38889em'
918 }}}}}}{{{#!if Size == '+3'
919 {{{#!if Em='1.48144em'
920 }}}}}}{{{#!if Size == '+4'
921 {{{#!if Em='1.57400em'
922 }}}}}}{{{#!if Size == '+5'
923 {{{#!if Em='1.66667em'
924 }}}}}}{{{#!if Size == '-1'
925 {{{#!if Em='0.92589em'
926 }}}}}}{{{#!if Size == '-2'
927 {{{#!if Em='0.83333em'
928 }}}}}}{{{#!if Size == '-3'
929 {{{#!if Em='0.74067em'
930 }}}}}}{{{#!if Size == '-4'
931 {{{#!if Em='0.64811em'
932 }}}}}}{{{#!if Size == '-5'
933 {{{#!if Em='0.62222em'
934 }}}}}}
935 {{{#!if Text = input.substring(ParOpen+Blank,ParClose)
936 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
937 }}}
938 }}}
939 }}}
r2699
940}}}
r2705
941}}}
942##############################
943{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
944 {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
945 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
946 }}}
947 {{{#!if _ParOpen == -1
948 {{{#!if Match=true
949 }}}
950 }}}{{{#!if _ParOpen != -1
951 {{{#!if ParOpen=_ParOpen
952 }}}
953 }}}
954############################
955 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
956 }}}
957 {{{#!if _ParOpen == -1
958 {{{#!if Match=true
959 }}}
960 }}}{{{#!if _ParOpen != -1
961 {{{#!if ParOpen+=_ParOpen+3
962 }}}
963 }}}
964############################
965 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
966 }}}
967 {{{#!if _ParOpen == -1
968 {{{#!if Match=true
969 }}}
970 }}}{{{#!if _ParOpen != -1
971 {{{#!if ParOpen+=_ParOpen+3
972 }}}
973 }}}
974############################
975 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
976 }}}
977 {{{#!if _ParOpen == -1
978 {{{#!if Match=true
979 }}}
980 }}}{{{#!if _ParOpen != -1
981 {{{#!if ParOpen+=_ParOpen+3
982 }}}
983 }}}
984############################
985 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
986 }}}
987 {{{#!if _ParOpen == -1
988 {{{#!if Match=true
989 }}}
990 }}}{{{#!if _ParOpen != -1
991 {{{#!if ParOpen+=_ParOpen+3
992 }}}
993 }}}
994############################
995 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
996 }}}
997 {{{#!if _ParOpen == -1
998 {{{#!if Match=true
999 }}}
1000 }}}{{{#!if _ParOpen != -1
1001 {{{#!if ParOpen+=_ParOpen+3
1002 }}}
1003 }}}
1004############################
1005 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
1006 }}}
1007 {{{#!if _ParOpen == -1
1008 {{{#!if Match=true
1009 }}}
1010 }}}{{{#!if _ParOpen != -1
1011 {{{#!if ParOpen+=_ParOpen+3
1012 }}}
1013 }}}
1014 }}}
1015###########################
1016 {{{#!if Match
1017 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html'
1018 {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
1019 }}}
1020 }}}
1021 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki'
1022 {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=')
1023 }}}{{{#!if BrL != -1 && StyleL!=-1
1024 {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL)
1025 }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3)
1026 }}}
1027 }}}
1028 }}}
1029 {{{#!if input.substr(ParOpen, 4) == '\{\{\{#'
1030 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',')
1031 }}}{{{#!if Blank!=-1
1032 {{{#!if Comma != -1
1033 {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank)
1034 }}}
1035 }}}
1036 {{{#!if Comma == -1
1037 {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor
1038 }}}
1039 }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose)
1040 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
1041##유효성 검사는 뺌. 귀찮고 넣으면 길어짐.
1042 }}}
1043 }}}
1044 }}}
1045 {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-'
1046 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ')
1047 }}}{{{#!if Blank==5
1048 {{{#!if Size=input.substr(ParOpen+Blank-2, 2)
1049 }}}
1050 {{{#!if Size == '+1'
1051 {{{#!if Em='1.28889em'
1052 }}}}}}{{{#!if Size == '+2'
1053 {{{#!if Em='1.38889em'
1054 }}}}}}{{{#!if Size == '+3'
1055 {{{#!if Em='1.48144em'
1056 }}}}}}{{{#!if Size == '+4'
1057 {{{#!if Em='1.57400em'
1058 }}}}}}{{{#!if Size == '+5'
1059 {{{#!if Em='1.66667em'
1060 }}}}}}{{{#!if Size == '-1'
1061 {{{#!if Em='0.92589em'
1062 }}}}}}{{{#!if Size == '-2'
1063 {{{#!if Em='0.83333em'
1064 }}}}}}{{{#!if Size == '-3'
1065 {{{#!if Em='0.74067em'
1066 }}}}}}{{{#!if Size == '-4'
1067 {{{#!if Em='0.64811em'
1068 }}}}}}{{{#!if Size == '-5'
1069 {{{#!if Em='0.62222em'
1070 }}}}}}
1071 {{{#!if Text = input.substring(ParOpen+Blank,ParClose)
1072 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
1073 }}}
1074 }}}
1075 }}}
1076}}}
1077}}}
1078##############################
1079{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
1080 {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
1081 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
1082 }}}
1083 {{{#!if _ParOpen == -1
1084 {{{#!if Match=true
1085 }}}
1086 }}}{{{#!if _ParOpen != -1
1087 {{{#!if ParOpen=_ParOpen
1088 }}}
1089 }}}
1090############################
1091 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
1092 }}}
1093 {{{#!if _ParOpen == -1
1094 {{{#!if Match=true
1095 }}}
1096 }}}{{{#!if _ParOpen != -1
1097 {{{#!if ParOpen+=_ParOpen+3
1098 }}}
1099 }}}
1100############################
1101 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
1102 }}}
1103 {{{#!if _ParOpen == -1
1104 {{{#!if Match=true
1105 }}}
1106 }}}{{{#!if _ParOpen != -1
1107 {{{#!if ParOpen+=_ParOpen+3
1108 }}}
1109 }}}
1110############################
1111 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
1112 }}}
1113 {{{#!if _ParOpen == -1
1114 {{{#!if Match=true
1115 }}}
1116 }}}{{{#!if _ParOpen != -1
1117 {{{#!if ParOpen+=_ParOpen+3
1118 }}}
1119 }}}
1120############################
1121 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
1122 }}}
1123 {{{#!if _ParOpen == -1
1124 {{{#!if Match=true
1125 }}}
1126 }}}{{{#!if _ParOpen != -1
1127 {{{#!if ParOpen+=_ParOpen+3
1128 }}}
1129 }}}
1130############################
1131 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
1132 }}}
1133 {{{#!if _ParOpen == -1
1134 {{{#!if Match=true
1135 }}}
1136 }}}{{{#!if _ParOpen != -1
1137 {{{#!if ParOpen+=_ParOpen+3
1138 }}}
1139 }}}
1140############################
1141 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
1142 }}}
1143 {{{#!if _ParOpen == -1
1144 {{{#!if Match=true
1145 }}}
1146 }}}{{{#!if _ParOpen != -1
1147 {{{#!if ParOpen+=_ParOpen+3
1148 }}}
1149 }}}
1150 }}}
1151###########################
1152 {{{#!if Match
1153 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html'
1154 {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
1155 }}}
1156 }}}
1157 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki'
1158 {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=')
1159 }}}{{{#!if BrL != -1 && StyleL!=-1
1160 {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL)
1161 }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3)
1162 }}}
1163 }}}
1164 }}}
1165 {{{#!if input.substr(ParOpen, 4) == '\{\{\{#'
1166 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',')
1167 }}}{{{#!if Blank!=-1
1168 {{{#!if Comma != -1
1169 {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank)
1170 }}}
1171 }}}
1172 {{{#!if Comma == -1
1173 {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor
1174 }}}
1175 }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose)
1176 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
1177##유효성 검사는 뺌. 귀찮고 넣으면 길어짐.
1178 }}}
1179 }}}
1180 }}}
1181 {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-'
1182 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ')
1183 }}}{{{#!if Blank==5
1184 {{{#!if Size=input.substr(ParOpen+Blank-2, 2)
1185 }}}
1186 {{{#!if Size == '+1'
1187 {{{#!if Em='1.28889em'
1188 }}}}}}{{{#!if Size == '+2'
1189 {{{#!if Em='1.38889em'
1190 }}}}}}{{{#!if Size == '+3'
1191 {{{#!if Em='1.48144em'
1192 }}}}}}{{{#!if Size == '+4'
1193 {{{#!if Em='1.57400em'
1194 }}}}}}{{{#!if Size == '+5'
1195 {{{#!if Em='1.66667em'
1196 }}}}}}{{{#!if Size == '-1'
1197 {{{#!if Em='0.92589em'
1198 }}}}}}{{{#!if Size == '-2'
1199 {{{#!if Em='0.83333em'
1200 }}}}}}{{{#!if Size == '-3'
1201 {{{#!if Em='0.74067em'
1202 }}}}}}{{{#!if Size == '-4'
1203 {{{#!if Em='0.64811em'
1204 }}}}}}{{{#!if Size == '-5'
1205 {{{#!if Em='0.62222em'
1206 }}}}}}
1207 {{{#!if Text = input.substring(ParOpen+Blank,ParClose)
1208 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
1209 }}}
1210 }}}
1211 }}}
1212}}}
1213}}}
1214##############################
1215{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
1216 {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
1217 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
1218 }}}
1219 {{{#!if _ParOpen == -1
1220 {{{#!if Match=true
1221 }}}
1222 }}}{{{#!if _ParOpen != -1
1223 {{{#!if ParOpen=_ParOpen
1224 }}}
1225 }}}
1226############################
1227 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
1228 }}}
1229 {{{#!if _ParOpen == -1
1230 {{{#!if Match=true
1231 }}}
1232 }}}{{{#!if _ParOpen != -1
1233 {{{#!if ParOpen+=_ParOpen+3
1234 }}}
1235 }}}
1236############################
1237 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
1238 }}}
1239 {{{#!if _ParOpen == -1
1240 {{{#!if Match=true
1241 }}}
1242 }}}{{{#!if _ParOpen != -1
1243 {{{#!if ParOpen+=_ParOpen+3
1244 }}}
1245 }}}
1246############################
1247 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
1248 }}}
1249 {{{#!if _ParOpen == -1
1250 {{{#!if Match=true
1251 }}}
1252 }}}{{{#!if _ParOpen != -1
1253 {{{#!if ParOpen+=_ParOpen+3
1254 }}}
1255 }}}
1256############################
1257 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
1258 }}}
1259 {{{#!if _ParOpen == -1
1260 {{{#!if Match=true
1261 }}}
1262 }}}{{{#!if _ParOpen != -1
1263 {{{#!if ParOpen+=_ParOpen+3
1264 }}}
1265 }}}
1266############################
1267 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
1268 }}}
1269 {{{#!if _ParOpen == -1
1270 {{{#!if Match=true
1271 }}}
1272 }}}{{{#!if _ParOpen != -1
1273 {{{#!if ParOpen+=_ParOpen+3
1274 }}}
1275 }}}
1276############################
1277 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
1278 }}}
1279 {{{#!if _ParOpen == -1
1280 {{{#!if Match=true
1281 }}}
1282 }}}{{{#!if _ParOpen != -1
1283 {{{#!if ParOpen+=_ParOpen+3
1284 }}}
1285 }}}
1286 }}}
1287###########################
1288 {{{#!if Match
1289 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html'
1290 {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
1291 }}}
1292 }}}
1293 {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki'
1294 {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=')
1295 }}}{{{#!if BrL != -1 && StyleL!=-1
1296 {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL)
1297 }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3)
1298 }}}
1299 }}}
1300 }}}
1301 {{{#!if input.substr(ParOpen, 4) == '\{\{\{#'
1302 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',')
1303 }}}{{{#!if Blank!=-1
1304 {{{#!if Comma != -1
1305 {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank)
1306 }}}
1307 }}}
1308 {{{#!if Comma == -1
1309 {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor
1310 }}}
1311 }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose)
1312 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
1313##유효성 검사는 뺌. 귀찮고 넣으면 길어짐.
1314 }}}
1315 }}}
1316 }}}
1317 {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-'
1318 {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ')
1319 }}}{{{#!if Blank==5
1320 {{{#!if Size=input.substr(ParOpen+Blank-2, 2)
1321 }}}
1322 {{{#!if Size == '+1'
1323 {{{#!if Em='1.28889em'
1324 }}}}}}{{{#!if Size == '+2'
1325 {{{#!if Em='1.38889em'
1326 }}}}}}{{{#!if Size == '+3'
1327 {{{#!if Em='1.48144em'
1328 }}}}}}{{{#!if Size == '+4'
1329 {{{#!if Em='1.57400em'
1330 }}}}}}{{{#!if Size == '+5'
1331 {{{#!if Em='1.66667em'
1332 }}}}}}{{{#!if Size == '-1'
1333 {{{#!if Em='0.92589em'
1334 }}}}}}{{{#!if Size == '-2'
1335 {{{#!if Em='0.83333em'
1336 }}}}}}{{{#!if Size == '-3'
1337 {{{#!if Em='0.74067em'
1338 }}}}}}{{{#!if Size == '-4'
1339 {{{#!if Em='0.64811em'
1340 }}}}}}{{{#!if Size == '-5'
1341 {{{#!if Em='0.62222em'
1342 }}}}}}
1343 {{{#!if Text = input.substring(ParOpen+Blank,ParClose)
1344 }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3)
1345 }}}
1346 }}}
1347 }}}
1348}}}
1349}}}
1350###########################
1351}}}
r2688
1352
r2712
1353output: {{{#!html @input@}}}
r2706
1354== 나무나무마크구상3 ==
r2713
1355input="\'\'\'강조\'\'\'\'\'기울임\'\'\-\-취소선\-\-\_\_밑줄\_\_\,\,아래\,\,"
1356{{{#!wiki style="display: none"
1357{{{#!if input="\'\'\'강조\'\'\'\'\'기울임\'\'\-\-취소선\-\-\_\_밑줄\_\_\,\,아래\,\,\^\^위\^\^"
1358}}}
1359{{{#!if BoldOpen=input.indexOf("'''")
1360}}}{{{#!if BoldOpen!=-1
1361 {{{#!if BoldClose=input.substring(BoldOpen+3).indexOf("'''")
1362 }}}{{{#!if BoldClose!=-1, Text=input.substr(BoldOpen+3,BoldClose)
1363 {{{#!if input = input.substring(0,BoldOpen)+'<b>'+Text.trim()+'</b>'+input.substr(BoldOpen+3+BoldClose+3)
1364 }}}}}}
1365}}}
1366{{{#!if BoldOpen=input.indexOf("''")
1367}}}{{{#!if BoldOpen!=-1
1368 {{{#!if BoldClose=input.substring(BoldOpen+2).indexOf("''")
1369 }}}{{{#!if BoldClose!=-1, Text=input.substr(BoldOpen+2,BoldClose)
1370 {{{#!if input = input.substring(0,BoldOpen)+'<em>'+Text.trim()+'</em>'+input.substr(BoldOpen+2+BoldClose+2)
1371 }}}}}}
1372}}}
1373{{{#!if BoldOpen=input.indexOf("--")
1374}}}{{{#!if BoldOpen!=-1
1375 {{{#!if BoldClose=input.substring(BoldOpen+2).indexOf("--")
1376 }}}{{{#!if BoldClose!=-1, Text=input.substr(BoldOpen+2,BoldClose)
1377 {{{#!if input = input.substring(0,BoldOpen)+'<del>'+Text.trim()+'</del>'+input.substr(BoldOpen+2+BoldClose+2)
1378 }}}}}}
1379}}}
1380{{{#!if BoldOpen=input.indexOf("__")
1381}}}{{{#!if BoldOpen!=-1
1382 {{{#!if BoldClose=input.substring(BoldOpen+2).indexOf("__")
1383 }}}{{{#!if BoldClose!=-1, Text=input.substr(BoldOpen+2,BoldClose)
1384 {{{#!if input = input.substring(0,BoldOpen)+'<u>'+Text.trim()+'</u>'+input.substr(BoldOpen+2+BoldClose+2)
1385 }}}}}}
1386}}}
1387{{{#!if BoldOpen=input.indexOf(",,")
1388}}}{{{#!if BoldOpen!=-1
1389 {{{#!if BoldClose=input.substring(BoldOpen+2).indexOf(",,")
1390 }}}{{{#!if BoldClose!=-1, Text=input.substr(BoldOpen+2,BoldClose)
1391 {{{#!if input = input.substring(0,BoldOpen)+'<sub>'+Text.trim()+'</sub>'+input.substr(BoldOpen+2+BoldClose+2)
1392 }}}}}}
1393}}}
1394{{{#!if BoldOpen=input.indexOf("^^")
1395}}}{{{#!if BoldOpen!=-1
1396 {{{#!if BoldClose=input.substring(BoldOpen+2).indexOf("^^")
1397 }}}{{{#!if BoldClose!=-1, Text=input.substr(BoldOpen+2,BoldClose)
1398 {{{#!if input = input.substring(0,BoldOpen)+'<sup>'+Text.trim()+'</sup>'+input.substr(BoldOpen+2+BoldClose+2)
1399 }}}}}}
1400}}}
r2711
1401
r2713
1402
r2714
1403}}}
r2713
1404
r2711
1405## \{{{#!html <div style="clear: both"/>}}}
1406## == clearfix
1407output: {{{#!html @input@}}}
r2624
1408== ㅁㄴㅇㄹ ==
1409[include(a)]''''''[include(a)][include(a)]
1410[[]][include(a)][include(a)][include(a)]
1411
1412{{{#!wiki style="background: skyblue; margin: 0 auto; padding: 5px; max-width: 500px"
1413||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><bgcolor=#000>||
1414
1415||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><rowbgcolor=#000>||
1416||<colbgcolor=#000>||
1417||<tan>||
1418
1419||<tablealign=center><tablewidth=100%><bgcolor=#000>||
1420
1421||<tablealign=center><tablewidth=100%>||}}}
1422Mozilla/5.0 (compatible; Daum/1.0; +http://ws.daum.net/aboutkr.html) ok
1423Mozilla/5.0 (compatible; coccocbot-web/1.0; +http://help.coccoc.com/web) ok
1424\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)]
1425[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)]
1426----
1427\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)]
1428[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)]
1429----
1430\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)]
1431[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)]
1432----
1433\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)]
1434[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)]
1435----
1436\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)]
1437[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)]
1438----
1439\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)]
1440[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)]
1441----
1442\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)]
1443[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)]
1444----
1445\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)]
1446[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)]
1447----
1448\[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)]
1449[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)]
1450----
1451\[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)]
1452[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)]
1453\[include(틀:isuuid, uuid=냥)]
1454[include(틀:isuuid, uuid=냥)]
1455[include(틀:ㅁ, str=Hello\, World!)]
1456toString() 가능
1457parseInt() x
1458
1459== ==
r2584
1460{{{#!wiki style="font-weight: 300; font-size: 20px"
1461{{{#!if 식 = '11+2'
r2597
1462@식=11+2@}}} = {{{#!if s1=false, s2=false, s3=false, j=1+0, i=0+0, k=1+0
r2593
1463##switch1 : 숫자 계속 탐색하기, switch2 : 소수점 아래 기입하기. switch3 : 중복 실행 방지.
r2594
1464}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
r2593
1465}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
r2594
1466##숫자를 발견할 경우
r2591
1467{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
r2595
1468##여기에 앞자리가 음수냐 아니냐를 읽는 판별을 만들어야 합니다. ㅏ 이걸 생각 못했네요 그럼 좀 많이 길어지는데
r2591
1469}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
1470##숫자를 계속 발견할 경우 (소수점일 수도 있습니다. 여기서는 숫자일 경우)
r2592
1471##여기에서 소수점 위를 기입하냐 소수점 아래를 기입하냐 소수점 아래라면 소수점 아래 몇번째 자리를 기입하느냐를 적어야 합니다.
r2597
1472{{{#!if s2==false
1473##정수 자리를 기입하는 경우
r2595
1474{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
r2597
1475}}}}}}{{{#!if s2==true
1476##소수점 아래 자리를 기입하는 경우
1477{{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true
1478}}}{{{#!if k+=1
1479##다음 소수점 자리 찾기
r2602
1480}}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false)
r2605
1481##앞에서 숫자를 발견한 다음 소수점을 발견할 경우 (소수점 발견은 최초 1회에 한함)
r2597
1482{{{#!if s2=true, s3=true, k=1+0
1483##switch2 : 켜기
r2607
1484}}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46))||((s2==true)&&!this['d'+i]))&&(s3==false)
1485##숫자가 더 이상 나오지 않고 소수점을 발견하지 못했을 경우, 소수점을 발견한 상황인데 숫자가 나오지 않을 경우 (소수점이 다시 나오는 경우가 자동적으로 포함)
r2591
1486{{{#!if j+=1, s1=false, s2=false, s3=true
r2592
1487##소수점 아래 기입하는 스위치도 off, 다음 index(j) 매김.
r2597
1488}}}{{{#!if s3==true
1489##여기까지 과정을 거쳤다면 스위치 off.
1490{{{#!if s3=false
1491}}}}}}
1492}}}{{{#!if i+=1
r2594
1493}}}
r2595
1494##
r2599
1495{{{#!if false
r2600
1496##이 if문은 실행되지 않는 단락. 주석만 제거하고 복사 붙여넣기.
r2599
1497{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
1498}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
1499{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
1500}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
1501{{{#!if s2==false
1502{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
1503}}}}}}{{{#!if s2==true
1504{{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true
1505}}}{{{#!if k+=1
r2603
1506}}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false)
r2599
1507{{{#!if s2=true, s3=true, k=1+0
r2604
1508}}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46)||(s2==false))||((s2==true)&&!this['d'+i]&&(식=[i]==46)))&&(s3==false)
r2599
1509{{{#!if j+=1, s1=false, s2=false, s3=true
1510}}}{{{#!if s3==true
1511{{{#!if s3=false
1512}}}}}}
1513}}}{{{#!if i+=1
1514}}}
1515####
1516}}}
1517##
r2600
1518{{{#!if this['v1'] == 1
1519this['v1'] == 1}}}
1520##
1521{{{#!if s3=false
1522}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
1523}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
1524{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
1525}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
1526{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
1527}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
1528{{{#!if s2=true, s3=true
1529}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
1530{{{#!if j+=1, s1=false, s2=false, s3=true
1531}}}}}}{{{#!if i+=1
1532}}}
1533##
r2595
1534{{{#!if this['v1'] == 11
1535this['v1'] == 11}}}
1536##
r2596
1537{{{#!if s3=false
1538}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
1539}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
1540{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
1541}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
1542{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
1543}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
1544{{{#!if s2=true, s3=true
1545}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
1546{{{#!if j+=1, s1=false, s2=false, s3=true
1547}}}}}}{{{#!if i+=1
1548}}}{{{#!if s3=false
1549}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
1550}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
1551{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
1552}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
1553{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
1554}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
1555{{{#!if s2=true, s3=true
1556}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
1557{{{#!if j+=1, s1=false, s2=false, s3=true
1558}}}}}}{{{#!if i+=1
1559}}}
r2595
1560##
r2596
1561{{{#!if this['v2'] == 2
1562this['v2'] == 2}}}
r2595
1563##
1564##
1565##
1566##
r2593
1567{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
r2586
1568}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
1569}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
r2584
1570}}}
r2586
1571## 식 검증이 됐다 치면
r2587
1572## dn : true - 수 / false - 연산자
r2586
1573{{{#!if this['d0']
15741}}}{{{#!if this['d1']
15751}}}{{{#!if !this['d2']
1576+}}}{{{#!if this['d3']
r2585
15772}}}
r2587
1578## in : 11+2 에서 '11'은 0번째 위치, '+'는 2번째 위치.. > 0, 2, 3 > 위치 기억 / 뺄셈으로 자릿수 계산
1579## 보다 좋은 방법이 있ㅅ을 것 같은데음ㅁ..
1580{{{#!if i = 1, j = 1, i0 = 0
1581}}}
1582{{{#!if t = this['d0'] != this['d1'], t
1583{{{#!if this['i'+i] = j, j+=1, i+=1
1584}}}}}}{{{#!if !t
1585{{{#!if j+=1
1586}}}}}}{{{#!if t = this['d1'] != this['d2'], t
1587{{{#!if this['i'+i] = j, j+=1, i+=1
1588}}}}}}{{{#!if !t
1589{{{#!if j+=1
1590}}}}}}{{{#!if t = this['d1'] != this['d2'], t
1591{{{#!if this['i'+i] = j, j+=1, i+=1
1592}}}}}}{{{#!if !t
1593{{{#!if j+=1
r2585
1594}}}}}}
r2608
1595## {{{#!if i0 == 0
1596## i0 == 0 }}}{{{#!if i1 == 2
1597## i1 == 2 }}}{{{#!if i2 == 3
1598## i2 == 3 }}}
r2587
1599## {{{#!if list = [d0, d1, d2, d3]
1600## }}}
r2624
1601}}}