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

(r2677으로 되돌림)
175## \{{{#!html <div style="clear: both"/>}}}
176## == clearfix
177input={{{냥[[링크|냥]]냥[[https://namu.wiki/w/사용자:nyangx3|냥]]냥}}}
178{{{#!wiki style="display: none"
179{{{#!if input='냥[[링크|냥]]냥[[https://namu.wiki/w/사용자:nyangx3|냥]]냥'
r2657
180}}}
r2680

(r2677으로 되돌림)
181{{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8', outLink=''
182}}}{{{#!if linkOpen = input.indexOf('[['), linkClose = input.indexOf(']]')
r2674
183}}}{{{#!if linkRaw = input.substring(linkOpen, linkClose+2)
184}}}{{{#!if linkOpen != -1 && linkClose != -1 && linkOpen+2 < linkClose
r2703
185## [[]] 인 경우 linkOpen+2 == linkClose 임 ^^^^^^^^^^^^^^^^^^^^^^
186 {{{#!if divider = linkRaw.indexOf('|')
187 }}}{{{#!if divider == -1
r2674
188##[[링크]]
r2704
189 {{{#!if href = linkRaw.substring(2, linkRaw.length-2), linkPrint=href
r2703
190 }}}
191 }}}{{{#!if divider != -1
192 {{{#!if (divider == 2) && (divider+1 == linkRaw.length-2)
193 {{{#!if break = true, input = input.substring(0, linkOpen) + input.substring(linkClose+2)
r2674
194##[[|]] > 출력 x
r2703
195 }}}
196 }}}
197 {{{#!if (divider == 2) && !break
198 {{{#!if break = true, href = linkRaw.substring(divider+1, linkRaw.length-2), linkPrint = href
r2674
199##[[|링크]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로.
r2703
200 }}}
201 }}}
202 {{{#!if (divider+1 == linkRaw.length-2) && !break
r2674
203##[[링크|]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로.
r2703
204 {{{#!if break = true, href = linkRaw.substring(2, divider), linkPrint = href
205 @linkPrint@
206 @href@
207 }}}
r2674
208 }}}
r2703
209 {{{#!if !break
210 {{{#!if href = linkRaw.substring(2, divider), linkPrint = linkRaw.substring(divider+1, linkRaw.length-2)
211 }}}
212 }}}
213 }}}
214 {{{#!if isLink = (href.startsWith('https://') || href.startsWith('http://') || href.startsWith('ftp://')), isLink
215 {{{#!if linkColor = 'none', outLink = 'asdf'
216 }}}
217 }}}{{{#!if isCategory = (href.startsWith('분류:')), isCategory
r2674
218## 나중에생각 - 실제로 분류되지는 않고(하고 싶어도 못 함 display: none으로 없어지는 것도 아니고) 그냥 분류 느낌만 내기
r2703
219 }}}{{{#!if !(isCategory || isLink)
220 {{{#!if href = 'https://theseed.io/w/'+href
r2674
221 }}}
r2729
222 }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -17px' + outLink + '"><a href="' + href + '"><div style="color: ' + linkColor + '; display: inline">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2)
r2703
223 }}}
r2657
224}}}
r2704
225#######################
226{{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8', outLink=''
227}}}{{{#!if linkOpen = input.indexOf('[['), linkClose = input.indexOf(']]')
228}}}{{{#!if linkRaw = input.substring(linkOpen, linkClose+2)
229}}}{{{#!if linkOpen != -1 && linkClose != -1 && linkOpen+2 < linkClose
230## [[]] 인 경우 linkOpen+2 == linkClose 임 ^^^^^^^^^^^^^^^^^^^^^^
231 {{{#!if divider = linkRaw.indexOf('|')
232 }}}{{{#!if divider == -1
233##[[링크]]
234 {{{#!if href = linkRaw.substring(2, linkRaw.length-2), linkPrint=href
235 }}}
236 }}}{{{#!if divider != -1
237 {{{#!if (divider == 2) && (divider+1 == linkRaw.length-2)
238 {{{#!if break = true, input = input.substring(0, linkOpen) + input.substring(linkClose+2)
239##[[|]] > 출력 x
240 }}}
241 }}}
242 {{{#!if (divider == 2) && !break
243 {{{#!if break = true, href = linkRaw.substring(divider+1, linkRaw.length-2), linkPrint = href
244##[[|링크]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로.
245 }}}
246 }}}
247 {{{#!if (divider+1 == linkRaw.length-2) && !break
248##[[링크|]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로.
249 {{{#!if break = true, href = linkRaw.substring(2, divider), linkPrint = href
250 @linkPrint@
251 @href@
252 }}}
253 }}}
254 {{{#!if !break
255 {{{#!if href = linkRaw.substring(2, divider), linkPrint = linkRaw.substring(divider+1, linkRaw.length-2)
256 }}}
257 }}}
258 }}}
259 {{{#!if isLink = (href.startsWith('https://') || href.startsWith('http://') || href.startsWith('ftp://')), isLink
260 {{{#!if linkColor = 'none', outLink = 'asdf'
261 }}}
262 }}}{{{#!if isCategory = (href.startsWith('분류:')), isCategory
263## 나중에생각 - 실제로 분류되지는 않고(하고 싶어도 못 함 display: none으로 없어지는 것도 아니고) 그냥 분류 느낌만 내기
264 }}}{{{#!if !(isCategory || isLink)
265 {{{#!if href = 'https://theseed.io/w/'+href
266 }}}
r2729
267 }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -17px' + outLink + '"><a href="' + href + '"><div style="color: ' + linkColor + '; display: inline">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2)
r2704
268 }}}
r2680

(r2677으로 되돌림)
269}}}
r2704
270}}}
r2680

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