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

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

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

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

(r2677으로 되돌림)
206 }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -1.2em' + outLink + '"><a href="' + href + '"><div style="color: ' + linkColor + '; display: inline">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2)
r2674
207 }}}
r2657
208}}}
r2680

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