| r2708 | ||
|---|---|---|
| r2597 | 1 | [[분류:냥]] |
| r2684 | 2 | |
| r2682 | 3 | {{{#!if ap=5, bp=0, bb="" |
| 4 | }}}{{{#!if ap-bp>=9 | |
| 5 | {{{#!if bp+=9, bb=bb+"000000000" | |
| 6 | }}}}}}{{{#!if ap-bp>=4 | |
| 7 | {{{#!if bp+=4, bb=bb+"0000" | |
| 8 | }}}}}}{{{#!if ap-bp>=2 | |
| 9 | {{{#!if bp+=2, bb=bb+"00" | |
| 10 | }}}}}}{{{#!if ap-bp>=2 | |
| 11 | {{{#!if bp+=2, bb=bb+"00" | |
| 12 | }}}}}}{{{#!if ap-bp>=1 | |
| 13 | {{{#!if bp+=1, bb=bb+"0" | |
| 14 | }}}}}} | |
| 15 | @ap@ @bp@ | |
| 16 | {{{#!if bl = bb.length | |
| 17 | }}}@bl@자 | |
| 18 | ---- | |
| 19 | {{{#!if ap=5, bp=0, bb="" | |
| 20 | }}}{{{#!if ap>bp | |
| 21 | {{{#!if bp=ap, bb+="000000000000000000" | |
| 22 | }}}{{{#!if bb=bb.substr(0,ap) | |
| 23 | }}}}}} | |
| 24 | @ap@ @bp@ | |
| 25 | {{{#!if bl = bb.length | |
| 26 | }}}@bl@자 | |
| 27 | ## | |
| r2662 | 28 | ||<#fff"> <#fff'''{{{#red \"}}}'''>왜 문제가 없지 || |
| r2629 | 29 | ## |
| 30 | folding, wiki(스타일), html은 뒤에 띄어쓰기 없어도 작동. | |
| 31 | 다만 dark-style은 꼭 "-"만 사용 가능. | |
| 32 | if, syntax는 띄어쓰기 없을 시 에러. | |
| 33 | ## | |
| r2624 | 34 | == 문단 == |
| r2671 | 35 | {{{#!folding 계산기 테스트 |
| r2636 | 36 | {{{-5 |
| r2643 | 37 | [include(틀:계산기2, a=1.1, f=-, b=-1.2)] |
| r2637 | 38 | [include(틀:계산기2, a=9223372036854775808, f=-, b=-9223372036854775800)] |
| r2636 | 39 | [include(틀:계산기2, a=., f=-, b=-.)] |
| 40 | [include(틀:계산기2, a=-, f=+, b=-)] | |
| 41 | [include(틀:계산기2, a=10, f=/, b=3)] | |
| r2624 | 42 | [include(틀:계산기2, a=-5, f=/, b=200)] |
| 43 | [include(틀:계산기2, a=-5, f=*, b=200)] | |
| 44 | [include(틀:계산기2, a=123459, f=/, b=2)] | |
| 45 | [include(틀:계산기2, a=12345, f=-, b=67890)] | |
| r2630 | 46 | [include(틀:계산기2, a=123456789012345678, f=-, b=-901234567890123456)] |
| r2632 | 47 | [include(틀:계산기2, a=123456789012345678.901234567890123456, f=+, b=789012345678901234.567890123456789012)] |
| r2639 | 48 | [include(틀:계산기2, a=123456789012345678.9012345678901234567, f=+, b=789012345678901234.567890123456789012)] |
| r2624 | 49 | [include(틀:계산기2, a=-1, f=*, b=-5)] |
| 50 | [include(틀:계산기2, a=-3, f=/, b=7)] | |
| r2633 | 51 | [include(틀:계산기2, a=1.1, f=+, b=0.1)] |
| r2634 | 52 | [include(틀:계산기2, a=1.123, f=+, b=0.877)] |
| 53 | [include(틀:계산기2, a=1.123, f=+, b=0.878)] | |
| r2635 | 54 | [include(틀:계산기2, a=1.333, f=-, b=4.354)] |
| r2638 | 55 | [include(틀:계산기2, a=7.89, f=-, b=12.345)] |
| r2640 | 56 | [include(틀:계산기2, a=1, f=-, b=0.000000000000000001)] |
| r2691 | 57 | [include(틀:계산기2, a=0.999999999999999999, f=+, b=0.000000000000000001)] |
| r2692 | 58 | [include(틀:계산기2, a=1.000000000000000002, f=-, b=2.000000000000000001)] |
| r2694 | 59 | [include(틀:계산기2, a=100000000000000000, f=*, b=100000000000000000)] |
| r2693 | 60 | [include(틀:계산기2, a=123456789012345678, f=*, b=789012345678901234)] |
| r2695 | 61 | [include(틀:계산기2, a=123456789012345678.901234567890123456, f=*, b=789012345678901234.567890123456789012)] |
| r2708 | 62 | [include(틀:계산기2, a=999999999999999999.999999999999999999, f=*, b=999999999999999999.999999999999999999)] |
| r2707 | 63 | [include(틀:계산기2, a=0, f=*, b=789012345678901234.567890123456789012)] |
| 64 | [include(틀:계산기2, a=100000000000000000.000000001, f=*, b=0.00000000000005678)]}}} | |
| r2671 | 65 | 아직은 소수끼리의 계산은 되지 않는 모양이다. 사실 그도 그럴 것이 gauss함수를 가져오지 않았기 때문)}}} |
| r2624 | 66 | |
| 67 | {{{#!if json={'a':'b', 'c':'d'} | |
| 68 | json={'a':'b', 'c':'d'}[br] | |
| 69 | }}}{{{#!if json['a'] == 'b' | |
| 70 | json['a'] == 'b'[br] | |
| 71 | }}}{{{#!if list = ['a', 'b'] | |
| 72 | list = ['a', 'b'][br] | |
| 73 | }}}{{{#!if list[1] == 'b' | |
| 74 | list[1] == 'b'[br] | |
| 75 | }}} | |
| 76 | ||
| 77 | [[../냥]] < 볼드체. 단, {{{../}}}뒤에 붙는 이름이 자기자신과 같은 이름이면 볼드체, 다른 이름(예 : [[../냥냥]], [[../냥/냥]])이면 볼드체가 아니다. 문서명이 '[[냥/냥|(상위문서명)/냥]]'일 경우에도 볼드체가 된다. 이 문서에는 상위 문서가 없으니 그냥 '냥' 으로 링크되는 듯 하다. | |
| 78 | [[냥#]] < 볼드체 | |
| 79 | [[냥#ㅁㄴㅇㄹ|냥#ㅁㄴㅇㄹ]] < 볼드체아님 | |
| 80 | [[문서:냥]] < 볼드체아님 | |
| 81 | ||
| 82 | [include(틀:계산기, r=13)] | |
| 83 | \[include(틀:계산기, r=13)] | |
| 84 | 생각해보니까 그냥 r을 지정할 수도 있겠구나 | |
| 85 | [include(틀:계산기, a=123456789, f=+, b=1)] | |
| 86 | [include(틀:계산기, a=123456789, f=-, b=1)] | |
| 87 | [include(틀:계산기, a=123459, f=*, b=2)] | |
| 88 | [include(틀:계산기, a=123459, f=/, b=2)] | |
| r2646 | 89 | == 그래프구상 == |
| 90 | {{{#!if i=0, x=0 | |
| r2648 | 91 | }}}<math>x^2</math> |
| r2646 | 92 | {{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
| 93 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 94 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 95 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 96 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 97 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 98 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 99 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 100 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 101 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 102 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 103 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 104 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 105 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 106 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 107 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 108 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 109 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 110 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 111 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 | |
| 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 | |
| r2652 | 114 | }}}{{{#!if true |
| r2669 | 115 | #tk : thickness (px) ; wd : width (px) |
| 116 | {{{#!if tk=1+0.0, color="#666", wd=10+0.0 | |
| 117 | }}}}}}{{{#!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 | 118 | }}} |
| r2669 | 119 | {{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y1@px; @wdx@; @vag@(@v1@px + @tk@px)" |
| 120 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y2@px; @wdx@; @vag@(@v2@px + @tk@px);" | |
| 121 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y3@px; @wdx@; @vag@(@v3@px + @tk@px);" | |
| r2670 | 122 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y4@px; @wdx@; @vag@(@v4@px + @tk@px);" |
| 123 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y5@px; @wdx@; @vag@(@v5@px + @tk@px);" | |
| 124 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y6@px; @wdx@; @vag@(@v6@px + @tk@px);" | |
| 125 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y7@px; @wdx@; @vag@(@v7@px + @tk@px);" | |
| 126 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y8@px; @wdx@; @vag@(@v8@px + @tk@px);" | |
| 127 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y9@px; @wdx@; @vag@(@v9@px + @tk@px);" | |
| 128 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y10@px; @wdx@; @vag@(@v10@px + @tk@px)" | |
| 129 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y11@px; @wdx@; @vag@(@v11@px + @tk@px)" | |
| 130 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y12@px; @wdx@; @vag@(@v12@px + @tk@px)" | |
| 131 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y13@px; @wdx@; @vag@(@v13@px + @tk@px)" | |
| 132 | }}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y14@px; @wdx@; @vag@(@v14@px + @tk@px)" | |
| r2646 | 133 | }}} |
| r2624 | 134 | |
| r2657 | 135 | == 나무나무마크구상 == |
| r2681 | 136 | * 할거 > 분류 |
| r2680 (r2677으로 되돌림) | 137 | ## \{{{#!html <div style="clear: both"/>}}} |
| 138 | ## == clearfix | |
| 139 | input={{{냥[[링크|냥]]냥[[https://namu.wiki/w/사용자:nyangx3|냥]]냥}}} | |
| 140 | {{{#!wiki style="display: none" | |
| 141 | {{{#!if input='냥[[링크|냥]]냥[[https://namu.wiki/w/사용자:nyangx3|냥]]냥' | |
| r2657 | 142 | }}} |
| r2680 (r2677으로 되돌림) | 143 | {{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8', outLink='' |
| 144 | }}}{{{#!if linkOpen = input.indexOf('[['), linkClose = input.indexOf(']]') | |
| r2674 | 145 | }}}{{{#!if linkRaw = input.substring(linkOpen, linkClose+2) |
| 146 | }}}{{{#!if linkOpen != -1 && linkClose != -1 && linkOpen+2 < linkClose | |
| r2703 | 147 | ## [[]] 인 경우 linkOpen+2 == linkClose 임 ^^^^^^^^^^^^^^^^^^^^^^ |
| 148 | {{{#!if divider = linkRaw.indexOf('|') | |
| 149 | }}}{{{#!if divider == -1 | |
| r2674 | 150 | ##[[링크]] |
| r2704 | 151 | {{{#!if href = linkRaw.substring(2, linkRaw.length-2), linkPrint=href |
| r2703 | 152 | }}} |
| 153 | }}}{{{#!if divider != -1 | |
| 154 | {{{#!if (divider == 2) && (divider+1 == linkRaw.length-2) | |
| 155 | {{{#!if break = true, input = input.substring(0, linkOpen) + input.substring(linkClose+2) | |
| r2674 | 156 | ##[[|]] > 출력 x |
| r2703 | 157 | }}} |
| 158 | }}} | |
| 159 | {{{#!if (divider == 2) && !break | |
| 160 | {{{#!if break = true, href = linkRaw.substring(divider+1, linkRaw.length-2), linkPrint = href | |
| r2674 | 161 | ##[[|링크]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로. |
| r2703 | 162 | }}} |
| 163 | }}} | |
| 164 | {{{#!if (divider+1 == linkRaw.length-2) && !break | |
| r2674 | 165 | ##[[링크|]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로. |
| r2703 | 166 | {{{#!if break = true, href = linkRaw.substring(2, divider), linkPrint = href |
| 167 | @linkPrint@ | |
| 168 | @href@ | |
| 169 | }}} | |
| r2674 | 170 | }}} |
| r2703 | 171 | {{{#!if !break |
| 172 | {{{#!if href = linkRaw.substring(2, divider), linkPrint = linkRaw.substring(divider+1, linkRaw.length-2) | |
| 173 | }}} | |
| 174 | }}} | |
| 175 | }}} | |
| 176 | {{{#!if isLink = (href.startsWith('https://') || href.startsWith('http://') || href.startsWith('ftp://')), isLink | |
| 177 | {{{#!if linkColor = 'none', outLink = 'asdf' | |
| 178 | }}} | |
| 179 | }}}{{{#!if isCategory = (href.startsWith('분류:')), isCategory | |
| r2674 | 180 | ## 나중에생각 - 실제로 분류되지는 않고(하고 싶어도 못 함 display: none으로 없어지는 것도 아니고) 그냥 분류 느낌만 내기 |
| r2703 | 181 | }}}{{{#!if !(isCategory || isLink) |
| 182 | {{{#!if href = 'https://theseed.io/w/'+href | |
| r2674 | 183 | }}} |
| r2703 | 184 | }}}{{{#!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) |
| 185 | }}} | |
| r2657 | 186 | }}} |
| r2704 | 187 | ####################### |
| 188 | {{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8', outLink='' | |
| 189 | }}}{{{#!if linkOpen = input.indexOf('[['), linkClose = input.indexOf(']]') | |
| 190 | }}}{{{#!if linkRaw = input.substring(linkOpen, linkClose+2) | |
| 191 | }}}{{{#!if linkOpen != -1 && linkClose != -1 && linkOpen+2 < linkClose | |
| 192 | ## [[]] 인 경우 linkOpen+2 == linkClose 임 ^^^^^^^^^^^^^^^^^^^^^^ | |
| 193 | {{{#!if divider = linkRaw.indexOf('|') | |
| 194 | }}}{{{#!if divider == -1 | |
| 195 | ##[[링크]] | |
| 196 | {{{#!if href = linkRaw.substring(2, linkRaw.length-2), linkPrint=href | |
| 197 | }}} | |
| 198 | }}}{{{#!if divider != -1 | |
| 199 | {{{#!if (divider == 2) && (divider+1 == linkRaw.length-2) | |
| 200 | {{{#!if break = true, input = input.substring(0, linkOpen) + input.substring(linkClose+2) | |
| 201 | ##[[|]] > 출력 x | |
| 202 | }}} | |
| 203 | }}} | |
| 204 | {{{#!if (divider == 2) && !break | |
| 205 | {{{#!if break = true, href = linkRaw.substring(divider+1, linkRaw.length-2), linkPrint = href | |
| 206 | ##[[|링크]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로. | |
| 207 | }}} | |
| 208 | }}} | |
| 209 | {{{#!if (divider+1 == linkRaw.length-2) && !break | |
| 210 | ##[[링크|]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로. | |
| 211 | {{{#!if break = true, href = linkRaw.substring(2, divider), linkPrint = href | |
| 212 | @linkPrint@ | |
| 213 | @href@ | |
| 214 | }}} | |
| 215 | }}} | |
| 216 | {{{#!if !break | |
| 217 | {{{#!if href = linkRaw.substring(2, divider), linkPrint = linkRaw.substring(divider+1, linkRaw.length-2) | |
| 218 | }}} | |
| 219 | }}} | |
| 220 | }}} | |
| 221 | {{{#!if isLink = (href.startsWith('https://') || href.startsWith('http://') || href.startsWith('ftp://')), isLink | |
| 222 | {{{#!if linkColor = 'none', outLink = 'asdf' | |
| 223 | }}} | |
| 224 | }}}{{{#!if isCategory = (href.startsWith('분류:')), isCategory | |
| 225 | ## 나중에생각 - 실제로 분류되지는 않고(하고 싶어도 못 함 display: none으로 없어지는 것도 아니고) 그냥 분류 느낌만 내기 | |
| 226 | }}}{{{#!if !(isCategory || isLink) | |
| 227 | {{{#!if href = 'https://theseed.io/w/'+href | |
| 228 | }}} | |
| 229 | }}}{{{#!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) | |
| 230 | }}} | |
| r2680 (r2677으로 되돌림) | 231 | }}} |
| r2704 | 232 | }}} |
| r2680 (r2677으로 되돌림) | 233 | output: {{{#!html @input@}}} |
| r2681 | 234 | |
| 235 | == 나무나무마크구상2 == | |
| r2700 | 236 | 할거 : darkstyle |
| r2681 | 237 | 리터럴귀찮음 if folding syntax는 될리가없음 |
| r2700 | 238 | input='냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue; display: inline"<br>냥텍스트\}\}\}asdf\{\{\{#;color:red,#f00 asdf\}\}\}\{\{\{-3 size\}\}\}' |
| r2681 | 239 | ##괄호를 ) 를 찾고 (를 나중에 찾는 방식이라(이게 로직이 더 간단함 근데 처리부분 길어지면 바꿀수도) input에 다른 거 오면 창남ㅇㅇ |
| 240 | ||
| 241 | {{{#!wiki style="display: none" | |
| r2705 | 242 | {{{#!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"></span>}}}}}}) 한 번 눌러 주세요.}}}}}}}}}' |
| r2690 | 243 | }}} |
| 244 | ############################## | |
| 245 | {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true | |
| r2703 | 246 | {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen |
| 247 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 248 | }}} | |
| 249 | {{{#!if _ParOpen == -1 | |
| 250 | {{{#!if Match=true | |
| r2681 | 251 | }}} |
| r2703 | 252 | }}}{{{#!if _ParOpen != -1 |
| 253 | {{{#!if ParOpen=_ParOpen | |
| 254 | }}} | |
| 255 | }}} | |
| r2681 | 256 | ############################ |
| r2703 | 257 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
| 258 | }}} | |
| 259 | {{{#!if _ParOpen == -1 | |
| 260 | {{{#!if Match=true | |
| r2681 | 261 | }}} |
| r2703 | 262 | }}}{{{#!if _ParOpen != -1 |
| 263 | {{{#!if ParOpen+=_ParOpen+3 | |
| 264 | }}} | |
| 265 | }}} | |
| r2681 | 266 | ############################ |
| r2703 | 267 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
| 268 | }}} | |
| 269 | {{{#!if _ParOpen == -1 | |
| 270 | {{{#!if Match=true | |
| r2681 | 271 | }}} |
| r2703 | 272 | }}}{{{#!if _ParOpen != -1 |
| 273 | {{{#!if ParOpen+=_ParOpen+3 | |
| r2681 | 274 | }}} |
| r2703 | 275 | }}} |
| r2705 | 276 | ############################ |
| 277 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| r2703 | 278 | }}} |
| r2705 | 279 | {{{#!if _ParOpen == -1 |
| 280 | {{{#!if Match=true | |
| 281 | }}} | |
| 282 | }}}{{{#!if _ParOpen != -1 | |
| 283 | {{{#!if ParOpen+=_ParOpen+3 | |
| 284 | }}} | |
| 285 | }}} | |
| 286 | ############################ | |
| 287 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 288 | }}} | |
| 289 | {{{#!if _ParOpen == -1 | |
| 290 | {{{#!if Match=true | |
| 291 | }}} | |
| 292 | }}}{{{#!if _ParOpen != -1 | |
| 293 | {{{#!if ParOpen+=_ParOpen+3 | |
| 294 | }}} | |
| 295 | }}} | |
| 296 | ############################ | |
| 297 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 298 | }}} | |
| 299 | {{{#!if _ParOpen == -1 | |
| 300 | {{{#!if Match=true | |
| 301 | }}} | |
| 302 | }}}{{{#!if _ParOpen != -1 | |
| 303 | {{{#!if ParOpen+=_ParOpen+3 | |
| 304 | }}} | |
| 305 | }}} | |
| 306 | ############################ | |
| 307 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 308 | }}} | |
| 309 | {{{#!if _ParOpen == -1 | |
| 310 | {{{#!if Match=true | |
| 311 | }}} | |
| 312 | }}}{{{#!if _ParOpen != -1 | |
| 313 | {{{#!if ParOpen+=_ParOpen+3 | |
| 314 | }}} | |
| 315 | }}} | |
| 316 | }}} | |
| r2686 | 317 | ########################### |
| r2703 | 318 | {{{#!if Match |
| 319 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' | |
| 320 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) | |
| 321 | }}} | |
| 322 | }}} | |
| 323 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' | |
| 324 | {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') | |
| 325 | }}}{{{#!if BrL != -1 && StyleL!=-1 | |
| 326 | {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) | |
| 327 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 328 | }}} | |
| 329 | }}} | |
| 330 | }}} | |
| 331 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' | |
| 332 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') | |
| 333 | }}}{{{#!if Blank!=-1 | |
| 334 | {{{#!if Comma != -1 | |
| 335 | {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) | |
| r2686 | 336 | }}} |
| r2703 | 337 | }}} |
| 338 | {{{#!if Comma == -1 | |
| 339 | {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor | |
| r2687 | 340 | }}} |
| r2703 | 341 | }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) |
| 342 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| r2690 | 343 | ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. |
| r2703 | 344 | }}} |
| r2681 | 345 | }}} |
| r2703 | 346 | }}} |
| 347 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-' | |
| 348 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ') | |
| 349 | }}}{{{#!if Blank==5 | |
| 350 | {{{#!if Size=input.substr(ParOpen+Blank-2, 2) | |
| 351 | }}} | |
| 352 | {{{#!if Size == '+1' | |
| 353 | {{{#!if Em='1.28889em' | |
| 354 | }}}}}}{{{#!if Size == '+2' | |
| 355 | {{{#!if Em='1.38889em' | |
| 356 | }}}}}}{{{#!if Size == '+3' | |
| 357 | {{{#!if Em='1.48144em' | |
| 358 | }}}}}}{{{#!if Size == '+4' | |
| 359 | {{{#!if Em='1.57400em' | |
| 360 | }}}}}}{{{#!if Size == '+5' | |
| 361 | {{{#!if Em='1.66667em' | |
| 362 | }}}}}}{{{#!if Size == '-1' | |
| 363 | {{{#!if Em='0.92589em' | |
| 364 | }}}}}}{{{#!if Size == '-2' | |
| 365 | {{{#!if Em='0.83333em' | |
| 366 | }}}}}}{{{#!if Size == '-3' | |
| 367 | {{{#!if Em='0.74067em' | |
| 368 | }}}}}}{{{#!if Size == '-4' | |
| 369 | {{{#!if Em='0.64811em' | |
| 370 | }}}}}}{{{#!if Size == '-5' | |
| 371 | {{{#!if Em='0.62222em' | |
| 372 | }}}}}} | |
| 373 | {{{#!if Text = input.substring(ParOpen+Blank,ParClose) | |
| 374 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 375 | }}} | |
| 376 | }}} | |
| 377 | }}} | |
| r2686 | 378 | }}} |
| r2700 | 379 | }}} |
| r2690 | 380 | ############################## |
| r2686 | 381 | {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true |
| r2703 | 382 | {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen |
| 383 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 384 | }}} | |
| 385 | {{{#!if _ParOpen == -1 | |
| 386 | {{{#!if Match=true | |
| r2681 | 387 | }}} |
| r2703 | 388 | }}}{{{#!if _ParOpen != -1 |
| 389 | {{{#!if ParOpen=_ParOpen | |
| 390 | }}} | |
| 391 | }}} | |
| r2681 | 392 | ############################ |
| r2703 | 393 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
| 394 | }}} | |
| 395 | {{{#!if _ParOpen == -1 | |
| 396 | {{{#!if Match=true | |
| r2681 | 397 | }}} |
| r2703 | 398 | }}}{{{#!if _ParOpen != -1 |
| 399 | {{{#!if ParOpen+=_ParOpen+3 | |
| 400 | }}} | |
| 401 | }}} | |
| r2681 | 402 | ############################ |
| r2703 | 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+3 | |
| r2681 | 410 | }}} |
| r2703 | 411 | }}} |
| r2705 | 412 | ############################ |
| 413 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| r2703 | 414 | }}} |
| r2705 | 415 | {{{#!if _ParOpen == -1 |
| 416 | {{{#!if Match=true | |
| 417 | }}} | |
| 418 | }}}{{{#!if _ParOpen != -1 | |
| 419 | {{{#!if ParOpen+=_ParOpen+3 | |
| 420 | }}} | |
| 421 | }}} | |
| 422 | ############################ | |
| 423 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 424 | }}} | |
| 425 | {{{#!if _ParOpen == -1 | |
| 426 | {{{#!if Match=true | |
| 427 | }}} | |
| 428 | }}}{{{#!if _ParOpen != -1 | |
| 429 | {{{#!if ParOpen+=_ParOpen+3 | |
| 430 | }}} | |
| 431 | }}} | |
| 432 | ############################ | |
| 433 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 434 | }}} | |
| 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 | }}} | |
| r2686 | 453 | ########################### |
| r2703 | 454 | {{{#!if Match |
| 455 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' | |
| 456 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) | |
| 457 | }}} | |
| 458 | }}} | |
| 459 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' | |
| 460 | {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') | |
| 461 | }}}{{{#!if BrL != -1 && StyleL!=-1 | |
| 462 | {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) | |
| 463 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 464 | }}} | |
| 465 | }}} | |
| 466 | }}} | |
| 467 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' | |
| 468 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') | |
| 469 | }}}{{{#!if Blank!=-1 | |
| 470 | {{{#!if Comma != -1 | |
| 471 | {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) | |
| r2681 | 472 | }}} |
| r2703 | 473 | }}} |
| 474 | {{{#!if Comma == -1 | |
| 475 | {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor | |
| r2681 | 476 | }}} |
| r2703 | 477 | }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) |
| 478 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| r2690 | 479 | ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. |
| r2703 | 480 | }}} |
| r2681 | 481 | }}} |
| r2703 | 482 | }}} |
| 483 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-' | |
| 484 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ') | |
| 485 | }}}{{{#!if Blank==5 | |
| 486 | {{{#!if Size=input.substr(ParOpen+Blank-2, 2) | |
| 487 | }}} | |
| 488 | {{{#!if Size == '+1' | |
| 489 | {{{#!if Em='1.28889em' | |
| 490 | }}}}}}{{{#!if Size == '+2' | |
| 491 | {{{#!if Em='1.38889em' | |
| 492 | }}}}}}{{{#!if Size == '+3' | |
| 493 | {{{#!if Em='1.48144em' | |
| 494 | }}}}}}{{{#!if Size == '+4' | |
| 495 | {{{#!if Em='1.57400em' | |
| 496 | }}}}}}{{{#!if Size == '+5' | |
| 497 | {{{#!if Em='1.66667em' | |
| 498 | }}}}}}{{{#!if Size == '-1' | |
| 499 | {{{#!if Em='0.92589em' | |
| 500 | }}}}}}{{{#!if Size == '-2' | |
| 501 | {{{#!if Em='0.83333em' | |
| 502 | }}}}}}{{{#!if Size == '-3' | |
| 503 | {{{#!if Em='0.74067em' | |
| 504 | }}}}}}{{{#!if Size == '-4' | |
| 505 | {{{#!if Em='0.64811em' | |
| 506 | }}}}}}{{{#!if Size == '-5' | |
| 507 | {{{#!if Em='0.62222em' | |
| 508 | }}}}}} | |
| 509 | {{{#!if Text = input.substring(ParOpen+Blank,ParClose) | |
| 510 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 511 | }}} | |
| 512 | }}} | |
| 513 | }}} | |
| r2686 | 514 | }}} |
| r2700 | 515 | }}} |
| r2686 | 516 | ############################## |
| r2688 | 517 | {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true |
| r2703 | 518 | {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen |
| 519 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 520 | }}} | |
| 521 | {{{#!if _ParOpen == -1 | |
| 522 | {{{#!if Match=true | |
| r2688 | 523 | }}} |
| r2703 | 524 | }}}{{{#!if _ParOpen != -1 |
| 525 | {{{#!if ParOpen=_ParOpen | |
| 526 | }}} | |
| 527 | }}} | |
| r2688 | 528 | ############################ |
| r2703 | 529 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
| 530 | }}} | |
| 531 | {{{#!if _ParOpen == -1 | |
| 532 | {{{#!if Match=true | |
| r2688 | 533 | }}} |
| r2703 | 534 | }}}{{{#!if _ParOpen != -1 |
| 535 | {{{#!if ParOpen+=_ParOpen+3 | |
| 536 | }}} | |
| 537 | }}} | |
| r2688 | 538 | ############################ |
| r2703 | 539 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
| 540 | }}} | |
| 541 | {{{#!if _ParOpen == -1 | |
| 542 | {{{#!if Match=true | |
| r2688 | 543 | }}} |
| r2703 | 544 | }}}{{{#!if _ParOpen != -1 |
| 545 | {{{#!if ParOpen+=_ParOpen+3 | |
| r2688 | 546 | }}} |
| r2703 | 547 | }}} |
| r2705 | 548 | ############################ |
| 549 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| r2703 | 550 | }}} |
| r2705 | 551 | {{{#!if _ParOpen == -1 |
| 552 | {{{#!if Match=true | |
| 553 | }}} | |
| 554 | }}}{{{#!if _ParOpen != -1 | |
| 555 | {{{#!if ParOpen+=_ParOpen+3 | |
| 556 | }}} | |
| 557 | }}} | |
| 558 | ############################ | |
| 559 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 560 | }}} | |
| 561 | {{{#!if _ParOpen == -1 | |
| 562 | {{{#!if Match=true | |
| 563 | }}} | |
| 564 | }}}{{{#!if _ParOpen != -1 | |
| 565 | {{{#!if ParOpen+=_ParOpen+3 | |
| 566 | }}} | |
| 567 | }}} | |
| 568 | ############################ | |
| 569 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 570 | }}} | |
| 571 | {{{#!if _ParOpen == -1 | |
| 572 | {{{#!if Match=true | |
| 573 | }}} | |
| 574 | }}}{{{#!if _ParOpen != -1 | |
| 575 | {{{#!if ParOpen+=_ParOpen+3 | |
| 576 | }}} | |
| 577 | }}} | |
| 578 | ############################ | |
| 579 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 580 | }}} | |
| 581 | {{{#!if _ParOpen == -1 | |
| 582 | {{{#!if Match=true | |
| 583 | }}} | |
| 584 | }}}{{{#!if _ParOpen != -1 | |
| 585 | {{{#!if ParOpen+=_ParOpen+3 | |
| 586 | }}} | |
| 587 | }}} | |
| 588 | }}} | |
| r2688 | 589 | ########################### |
| r2703 | 590 | {{{#!if Match |
| 591 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' | |
| 592 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) | |
| 593 | }}} | |
| 594 | }}} | |
| 595 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' | |
| 596 | {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') | |
| 597 | }}}{{{#!if BrL != -1 && StyleL!=-1 | |
| 598 | {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) | |
| 599 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 600 | }}} | |
| 601 | }}} | |
| 602 | }}} | |
| 603 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' | |
| 604 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') | |
| 605 | }}}{{{#!if Blank!=-1 | |
| 606 | {{{#!if Comma != -1 | |
| 607 | {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) | |
| r2688 | 608 | }}} |
| r2703 | 609 | }}} |
| 610 | {{{#!if Comma == -1 | |
| 611 | {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor | |
| r2688 | 612 | }}} |
| r2703 | 613 | }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) |
| 614 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| r2688 | 615 | ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. |
| r2703 | 616 | }}} |
| r2688 | 617 | }}} |
| r2703 | 618 | }}} |
| 619 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-' | |
| 620 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ') | |
| 621 | }}}{{{#!if Blank==5 | |
| 622 | {{{#!if Size=input.substr(ParOpen+Blank-2, 2) | |
| 623 | }}} | |
| 624 | {{{#!if Size == '+1' | |
| 625 | {{{#!if Em='1.28889em' | |
| 626 | }}}}}}{{{#!if Size == '+2' | |
| 627 | {{{#!if Em='1.38889em' | |
| 628 | }}}}}}{{{#!if Size == '+3' | |
| 629 | {{{#!if Em='1.48144em' | |
| 630 | }}}}}}{{{#!if Size == '+4' | |
| 631 | {{{#!if Em='1.57400em' | |
| 632 | }}}}}}{{{#!if Size == '+5' | |
| 633 | {{{#!if Em='1.66667em' | |
| 634 | }}}}}}{{{#!if Size == '-1' | |
| 635 | {{{#!if Em='0.92589em' | |
| 636 | }}}}}}{{{#!if Size == '-2' | |
| 637 | {{{#!if Em='0.83333em' | |
| 638 | }}}}}}{{{#!if Size == '-3' | |
| 639 | {{{#!if Em='0.74067em' | |
| 640 | }}}}}}{{{#!if Size == '-4' | |
| 641 | {{{#!if Em='0.64811em' | |
| 642 | }}}}}}{{{#!if Size == '-5' | |
| 643 | {{{#!if Em='0.62222em' | |
| 644 | }}}}}} | |
| 645 | {{{#!if Text = input.substring(ParOpen+Blank,ParClose) | |
| 646 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 647 | }}} | |
| 648 | }}} | |
| 649 | }}} | |
| r2687 | 650 | }}} |
| r2700 | 651 | }}} |
| r2699 | 652 | ############################## |
| 653 | {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true | |
| r2703 | 654 | {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen |
| 655 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 656 | }}} | |
| 657 | {{{#!if _ParOpen == -1 | |
| 658 | {{{#!if Match=true | |
| r2699 | 659 | }}} |
| r2703 | 660 | }}}{{{#!if _ParOpen != -1 |
| 661 | {{{#!if ParOpen=_ParOpen | |
| 662 | }}} | |
| 663 | }}} | |
| r2699 | 664 | ############################ |
| r2703 | 665 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
| 666 | }}} | |
| 667 | {{{#!if _ParOpen == -1 | |
| 668 | {{{#!if Match=true | |
| r2699 | 669 | }}} |
| r2703 | 670 | }}}{{{#!if _ParOpen != -1 |
| 671 | {{{#!if ParOpen+=_ParOpen+3 | |
| 672 | }}} | |
| 673 | }}} | |
| r2699 | 674 | ############################ |
| r2703 | 675 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
| 676 | }}} | |
| 677 | {{{#!if _ParOpen == -1 | |
| 678 | {{{#!if Match=true | |
| r2699 | 679 | }}} |
| r2703 | 680 | }}}{{{#!if _ParOpen != -1 |
| 681 | {{{#!if ParOpen+=_ParOpen+3 | |
| r2699 | 682 | }}} |
| r2703 | 683 | }}} |
| r2705 | 684 | ############################ |
| 685 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| r2703 | 686 | }}} |
| r2705 | 687 | {{{#!if _ParOpen == -1 |
| 688 | {{{#!if Match=true | |
| 689 | }}} | |
| 690 | }}}{{{#!if _ParOpen != -1 | |
| 691 | {{{#!if ParOpen+=_ParOpen+3 | |
| 692 | }}} | |
| 693 | }}} | |
| 694 | ############################ | |
| 695 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 696 | }}} | |
| 697 | {{{#!if _ParOpen == -1 | |
| 698 | {{{#!if Match=true | |
| 699 | }}} | |
| 700 | }}}{{{#!if _ParOpen != -1 | |
| 701 | {{{#!if ParOpen+=_ParOpen+3 | |
| 702 | }}} | |
| 703 | }}} | |
| 704 | ############################ | |
| 705 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 706 | }}} | |
| 707 | {{{#!if _ParOpen == -1 | |
| 708 | {{{#!if Match=true | |
| 709 | }}} | |
| 710 | }}}{{{#!if _ParOpen != -1 | |
| 711 | {{{#!if ParOpen+=_ParOpen+3 | |
| 712 | }}} | |
| 713 | }}} | |
| 714 | ############################ | |
| 715 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 716 | }}} | |
| 717 | {{{#!if _ParOpen == -1 | |
| 718 | {{{#!if Match=true | |
| 719 | }}} | |
| 720 | }}}{{{#!if _ParOpen != -1 | |
| 721 | {{{#!if ParOpen+=_ParOpen+3 | |
| 722 | }}} | |
| 723 | }}} | |
| 724 | }}} | |
| r2688 | 725 | ########################### |
| r2703 | 726 | {{{#!if Match |
| 727 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' | |
| 728 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) | |
| 729 | }}} | |
| 730 | }}} | |
| 731 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' | |
| 732 | {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') | |
| 733 | }}}{{{#!if BrL != -1 && StyleL!=-1 | |
| 734 | {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) | |
| 735 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 736 | }}} | |
| 737 | }}} | |
| 738 | }}} | |
| 739 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' | |
| 740 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') | |
| 741 | }}}{{{#!if Blank!=-1 | |
| 742 | {{{#!if Comma != -1 | |
| 743 | {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) | |
| r2699 | 744 | }}} |
| r2703 | 745 | }}} |
| 746 | {{{#!if Comma == -1 | |
| 747 | {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor | |
| r2699 | 748 | }}} |
| r2703 | 749 | }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) |
| 750 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| r2699 | 751 | ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. |
| r2703 | 752 | }}} |
| r2699 | 753 | }}} |
| r2703 | 754 | }}} |
| 755 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-' | |
| 756 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ') | |
| 757 | }}}{{{#!if Blank==5 | |
| 758 | {{{#!if Size=input.substr(ParOpen+Blank-2, 2) | |
| 759 | }}} | |
| 760 | {{{#!if Size == '+1' | |
| 761 | {{{#!if Em='1.28889em' | |
| 762 | }}}}}}{{{#!if Size == '+2' | |
| 763 | {{{#!if Em='1.38889em' | |
| 764 | }}}}}}{{{#!if Size == '+3' | |
| 765 | {{{#!if Em='1.48144em' | |
| 766 | }}}}}}{{{#!if Size == '+4' | |
| 767 | {{{#!if Em='1.57400em' | |
| 768 | }}}}}}{{{#!if Size == '+5' | |
| 769 | {{{#!if Em='1.66667em' | |
| 770 | }}}}}}{{{#!if Size == '-1' | |
| 771 | {{{#!if Em='0.92589em' | |
| 772 | }}}}}}{{{#!if Size == '-2' | |
| 773 | {{{#!if Em='0.83333em' | |
| 774 | }}}}}}{{{#!if Size == '-3' | |
| 775 | {{{#!if Em='0.74067em' | |
| 776 | }}}}}}{{{#!if Size == '-4' | |
| 777 | {{{#!if Em='0.64811em' | |
| 778 | }}}}}}{{{#!if Size == '-5' | |
| 779 | {{{#!if Em='0.62222em' | |
| 780 | }}}}}} | |
| 781 | {{{#!if Text = input.substring(ParOpen+Blank,ParClose) | |
| 782 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 783 | }}} | |
| 784 | }}} | |
| 785 | }}} | |
| r2689 | 786 | }}} |
| r2700 | 787 | }}} |
| r2705 | 788 | ############################## |
| 789 | {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true | |
| 790 | {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen | |
| 791 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 792 | }}} | |
| 793 | {{{#!if _ParOpen == -1 | |
| 794 | {{{#!if Match=true | |
| 795 | }}} | |
| 796 | }}}{{{#!if _ParOpen != -1 | |
| 797 | {{{#!if ParOpen=_ParOpen | |
| 798 | }}} | |
| 799 | }}} | |
| 800 | ############################ | |
| 801 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 802 | }}} | |
| 803 | {{{#!if _ParOpen == -1 | |
| 804 | {{{#!if Match=true | |
| 805 | }}} | |
| 806 | }}}{{{#!if _ParOpen != -1 | |
| 807 | {{{#!if ParOpen+=_ParOpen+3 | |
| 808 | }}} | |
| 809 | }}} | |
| 810 | ############################ | |
| 811 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 812 | }}} | |
| 813 | {{{#!if _ParOpen == -1 | |
| 814 | {{{#!if Match=true | |
| 815 | }}} | |
| 816 | }}}{{{#!if _ParOpen != -1 | |
| 817 | {{{#!if ParOpen+=_ParOpen+3 | |
| 818 | }}} | |
| 819 | }}} | |
| 820 | ############################ | |
| 821 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 822 | }}} | |
| 823 | {{{#!if _ParOpen == -1 | |
| 824 | {{{#!if Match=true | |
| 825 | }}} | |
| 826 | }}}{{{#!if _ParOpen != -1 | |
| 827 | {{{#!if ParOpen+=_ParOpen+3 | |
| 828 | }}} | |
| 829 | }}} | |
| 830 | ############################ | |
| 831 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 832 | }}} | |
| 833 | {{{#!if _ParOpen == -1 | |
| 834 | {{{#!if Match=true | |
| 835 | }}} | |
| 836 | }}}{{{#!if _ParOpen != -1 | |
| 837 | {{{#!if ParOpen+=_ParOpen+3 | |
| 838 | }}} | |
| 839 | }}} | |
| 840 | ############################ | |
| 841 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 842 | }}} | |
| 843 | {{{#!if _ParOpen == -1 | |
| 844 | {{{#!if Match=true | |
| 845 | }}} | |
| 846 | }}}{{{#!if _ParOpen != -1 | |
| 847 | {{{#!if ParOpen+=_ParOpen+3 | |
| 848 | }}} | |
| 849 | }}} | |
| 850 | ############################ | |
| 851 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 852 | }}} | |
| 853 | {{{#!if _ParOpen == -1 | |
| 854 | {{{#!if Match=true | |
| 855 | }}} | |
| 856 | }}}{{{#!if _ParOpen != -1 | |
| 857 | {{{#!if ParOpen+=_ParOpen+3 | |
| 858 | }}} | |
| 859 | }}} | |
| 860 | }}} | |
| r2699 | 861 | ########################### |
| r2705 | 862 | {{{#!if Match |
| 863 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' | |
| 864 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) | |
| 865 | }}} | |
| 866 | }}} | |
| 867 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' | |
| 868 | {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') | |
| 869 | }}}{{{#!if BrL != -1 && StyleL!=-1 | |
| 870 | {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) | |
| 871 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 872 | }}} | |
| 873 | }}} | |
| 874 | }}} | |
| 875 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' | |
| 876 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') | |
| 877 | }}}{{{#!if Blank!=-1 | |
| 878 | {{{#!if Comma != -1 | |
| 879 | {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) | |
| 880 | }}} | |
| 881 | }}} | |
| 882 | {{{#!if Comma == -1 | |
| 883 | {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor | |
| 884 | }}} | |
| 885 | }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) | |
| 886 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 887 | ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. | |
| 888 | }}} | |
| 889 | }}} | |
| 890 | }}} | |
| 891 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-' | |
| 892 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ') | |
| 893 | }}}{{{#!if Blank==5 | |
| 894 | {{{#!if Size=input.substr(ParOpen+Blank-2, 2) | |
| 895 | }}} | |
| 896 | {{{#!if Size == '+1' | |
| 897 | {{{#!if Em='1.28889em' | |
| 898 | }}}}}}{{{#!if Size == '+2' | |
| 899 | {{{#!if Em='1.38889em' | |
| 900 | }}}}}}{{{#!if Size == '+3' | |
| 901 | {{{#!if Em='1.48144em' | |
| 902 | }}}}}}{{{#!if Size == '+4' | |
| 903 | {{{#!if Em='1.57400em' | |
| 904 | }}}}}}{{{#!if Size == '+5' | |
| 905 | {{{#!if Em='1.66667em' | |
| 906 | }}}}}}{{{#!if Size == '-1' | |
| 907 | {{{#!if Em='0.92589em' | |
| 908 | }}}}}}{{{#!if Size == '-2' | |
| 909 | {{{#!if Em='0.83333em' | |
| 910 | }}}}}}{{{#!if Size == '-3' | |
| 911 | {{{#!if Em='0.74067em' | |
| 912 | }}}}}}{{{#!if Size == '-4' | |
| 913 | {{{#!if Em='0.64811em' | |
| 914 | }}}}}}{{{#!if Size == '-5' | |
| 915 | {{{#!if Em='0.62222em' | |
| 916 | }}}}}} | |
| 917 | {{{#!if Text = input.substring(ParOpen+Blank,ParClose) | |
| 918 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 919 | }}} | |
| 920 | }}} | |
| 921 | }}} | |
| r2699 | 922 | }}} |
| r2705 | 923 | }}} |
| 924 | ############################## | |
| 925 | {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true | |
| 926 | {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen | |
| 927 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 928 | }}} | |
| 929 | {{{#!if _ParOpen == -1 | |
| 930 | {{{#!if Match=true | |
| 931 | }}} | |
| 932 | }}}{{{#!if _ParOpen != -1 | |
| 933 | {{{#!if ParOpen=_ParOpen | |
| 934 | }}} | |
| 935 | }}} | |
| 936 | ############################ | |
| 937 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 938 | }}} | |
| 939 | {{{#!if _ParOpen == -1 | |
| 940 | {{{#!if Match=true | |
| 941 | }}} | |
| 942 | }}}{{{#!if _ParOpen != -1 | |
| 943 | {{{#!if ParOpen+=_ParOpen+3 | |
| 944 | }}} | |
| 945 | }}} | |
| 946 | ############################ | |
| 947 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 948 | }}} | |
| 949 | {{{#!if _ParOpen == -1 | |
| 950 | {{{#!if Match=true | |
| 951 | }}} | |
| 952 | }}}{{{#!if _ParOpen != -1 | |
| 953 | {{{#!if ParOpen+=_ParOpen+3 | |
| 954 | }}} | |
| 955 | }}} | |
| 956 | ############################ | |
| 957 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 958 | }}} | |
| 959 | {{{#!if _ParOpen == -1 | |
| 960 | {{{#!if Match=true | |
| 961 | }}} | |
| 962 | }}}{{{#!if _ParOpen != -1 | |
| 963 | {{{#!if ParOpen+=_ParOpen+3 | |
| 964 | }}} | |
| 965 | }}} | |
| 966 | ############################ | |
| 967 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 968 | }}} | |
| 969 | {{{#!if _ParOpen == -1 | |
| 970 | {{{#!if Match=true | |
| 971 | }}} | |
| 972 | }}}{{{#!if _ParOpen != -1 | |
| 973 | {{{#!if ParOpen+=_ParOpen+3 | |
| 974 | }}} | |
| 975 | }}} | |
| 976 | ############################ | |
| 977 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 978 | }}} | |
| 979 | {{{#!if _ParOpen == -1 | |
| 980 | {{{#!if Match=true | |
| 981 | }}} | |
| 982 | }}}{{{#!if _ParOpen != -1 | |
| 983 | {{{#!if ParOpen+=_ParOpen+3 | |
| 984 | }}} | |
| 985 | }}} | |
| 986 | ############################ | |
| 987 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 988 | }}} | |
| 989 | {{{#!if _ParOpen == -1 | |
| 990 | {{{#!if Match=true | |
| 991 | }}} | |
| 992 | }}}{{{#!if _ParOpen != -1 | |
| 993 | {{{#!if ParOpen+=_ParOpen+3 | |
| 994 | }}} | |
| 995 | }}} | |
| 996 | }}} | |
| 997 | ########################### | |
| 998 | {{{#!if Match | |
| 999 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' | |
| 1000 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) | |
| 1001 | }}} | |
| 1002 | }}} | |
| 1003 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' | |
| 1004 | {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') | |
| 1005 | }}}{{{#!if BrL != -1 && StyleL!=-1 | |
| 1006 | {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) | |
| 1007 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 1008 | }}} | |
| 1009 | }}} | |
| 1010 | }}} | |
| 1011 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' | |
| 1012 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') | |
| 1013 | }}}{{{#!if Blank!=-1 | |
| 1014 | {{{#!if Comma != -1 | |
| 1015 | {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) | |
| 1016 | }}} | |
| 1017 | }}} | |
| 1018 | {{{#!if Comma == -1 | |
| 1019 | {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor | |
| 1020 | }}} | |
| 1021 | }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) | |
| 1022 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 1023 | ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. | |
| 1024 | }}} | |
| 1025 | }}} | |
| 1026 | }}} | |
| 1027 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-' | |
| 1028 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ') | |
| 1029 | }}}{{{#!if Blank==5 | |
| 1030 | {{{#!if Size=input.substr(ParOpen+Blank-2, 2) | |
| 1031 | }}} | |
| 1032 | {{{#!if Size == '+1' | |
| 1033 | {{{#!if Em='1.28889em' | |
| 1034 | }}}}}}{{{#!if Size == '+2' | |
| 1035 | {{{#!if Em='1.38889em' | |
| 1036 | }}}}}}{{{#!if Size == '+3' | |
| 1037 | {{{#!if Em='1.48144em' | |
| 1038 | }}}}}}{{{#!if Size == '+4' | |
| 1039 | {{{#!if Em='1.57400em' | |
| 1040 | }}}}}}{{{#!if Size == '+5' | |
| 1041 | {{{#!if Em='1.66667em' | |
| 1042 | }}}}}}{{{#!if Size == '-1' | |
| 1043 | {{{#!if Em='0.92589em' | |
| 1044 | }}}}}}{{{#!if Size == '-2' | |
| 1045 | {{{#!if Em='0.83333em' | |
| 1046 | }}}}}}{{{#!if Size == '-3' | |
| 1047 | {{{#!if Em='0.74067em' | |
| 1048 | }}}}}}{{{#!if Size == '-4' | |
| 1049 | {{{#!if Em='0.64811em' | |
| 1050 | }}}}}}{{{#!if Size == '-5' | |
| 1051 | {{{#!if Em='0.62222em' | |
| 1052 | }}}}}} | |
| 1053 | {{{#!if Text = input.substring(ParOpen+Blank,ParClose) | |
| 1054 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 1055 | }}} | |
| 1056 | }}} | |
| 1057 | }}} | |
| 1058 | }}} | |
| 1059 | }}} | |
| 1060 | ############################## | |
| 1061 | {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true | |
| 1062 | {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen | |
| 1063 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 1064 | }}} | |
| 1065 | {{{#!if _ParOpen == -1 | |
| 1066 | {{{#!if Match=true | |
| 1067 | }}} | |
| 1068 | }}}{{{#!if _ParOpen != -1 | |
| 1069 | {{{#!if ParOpen=_ParOpen | |
| 1070 | }}} | |
| 1071 | }}} | |
| 1072 | ############################ | |
| 1073 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 1074 | }}} | |
| 1075 | {{{#!if _ParOpen == -1 | |
| 1076 | {{{#!if Match=true | |
| 1077 | }}} | |
| 1078 | }}}{{{#!if _ParOpen != -1 | |
| 1079 | {{{#!if ParOpen+=_ParOpen+3 | |
| 1080 | }}} | |
| 1081 | }}} | |
| 1082 | ############################ | |
| 1083 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 1084 | }}} | |
| 1085 | {{{#!if _ParOpen == -1 | |
| 1086 | {{{#!if Match=true | |
| 1087 | }}} | |
| 1088 | }}}{{{#!if _ParOpen != -1 | |
| 1089 | {{{#!if ParOpen+=_ParOpen+3 | |
| 1090 | }}} | |
| 1091 | }}} | |
| 1092 | ############################ | |
| 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+3 | |
| 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 | ########################### | |
| 1134 | {{{#!if Match | |
| 1135 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' | |
| 1136 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) | |
| 1137 | }}} | |
| 1138 | }}} | |
| 1139 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' | |
| 1140 | {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') | |
| 1141 | }}}{{{#!if BrL != -1 && StyleL!=-1 | |
| 1142 | {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) | |
| 1143 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 1144 | }}} | |
| 1145 | }}} | |
| 1146 | }}} | |
| 1147 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' | |
| 1148 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') | |
| 1149 | }}}{{{#!if Blank!=-1 | |
| 1150 | {{{#!if Comma != -1 | |
| 1151 | {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) | |
| 1152 | }}} | |
| 1153 | }}} | |
| 1154 | {{{#!if Comma == -1 | |
| 1155 | {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor | |
| 1156 | }}} | |
| 1157 | }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) | |
| 1158 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 1159 | ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. | |
| 1160 | }}} | |
| 1161 | }}} | |
| 1162 | }}} | |
| 1163 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-' | |
| 1164 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ') | |
| 1165 | }}}{{{#!if Blank==5 | |
| 1166 | {{{#!if Size=input.substr(ParOpen+Blank-2, 2) | |
| 1167 | }}} | |
| 1168 | {{{#!if Size == '+1' | |
| 1169 | {{{#!if Em='1.28889em' | |
| 1170 | }}}}}}{{{#!if Size == '+2' | |
| 1171 | {{{#!if Em='1.38889em' | |
| 1172 | }}}}}}{{{#!if Size == '+3' | |
| 1173 | {{{#!if Em='1.48144em' | |
| 1174 | }}}}}}{{{#!if Size == '+4' | |
| 1175 | {{{#!if Em='1.57400em' | |
| 1176 | }}}}}}{{{#!if Size == '+5' | |
| 1177 | {{{#!if Em='1.66667em' | |
| 1178 | }}}}}}{{{#!if Size == '-1' | |
| 1179 | {{{#!if Em='0.92589em' | |
| 1180 | }}}}}}{{{#!if Size == '-2' | |
| 1181 | {{{#!if Em='0.83333em' | |
| 1182 | }}}}}}{{{#!if Size == '-3' | |
| 1183 | {{{#!if Em='0.74067em' | |
| 1184 | }}}}}}{{{#!if Size == '-4' | |
| 1185 | {{{#!if Em='0.64811em' | |
| 1186 | }}}}}}{{{#!if Size == '-5' | |
| 1187 | {{{#!if Em='0.62222em' | |
| 1188 | }}}}}} | |
| 1189 | {{{#!if Text = input.substring(ParOpen+Blank,ParClose) | |
| 1190 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 1191 | }}} | |
| 1192 | }}} | |
| 1193 | }}} | |
| 1194 | }}} | |
| 1195 | }}} | |
| 1196 | ############################## | |
| 1197 | {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true | |
| 1198 | {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen | |
| 1199 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 1200 | }}} | |
| 1201 | {{{#!if _ParOpen == -1 | |
| 1202 | {{{#!if Match=true | |
| 1203 | }}} | |
| 1204 | }}}{{{#!if _ParOpen != -1 | |
| 1205 | {{{#!if ParOpen=_ParOpen | |
| 1206 | }}} | |
| 1207 | }}} | |
| 1208 | ############################ | |
| 1209 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 1210 | }}} | |
| 1211 | {{{#!if _ParOpen == -1 | |
| 1212 | {{{#!if Match=true | |
| 1213 | }}} | |
| 1214 | }}}{{{#!if _ParOpen != -1 | |
| 1215 | {{{#!if ParOpen+=_ParOpen+3 | |
| 1216 | }}} | |
| 1217 | }}} | |
| 1218 | ############################ | |
| 1219 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 1220 | }}} | |
| 1221 | {{{#!if _ParOpen == -1 | |
| 1222 | {{{#!if Match=true | |
| 1223 | }}} | |
| 1224 | }}}{{{#!if _ParOpen != -1 | |
| 1225 | {{{#!if ParOpen+=_ParOpen+3 | |
| 1226 | }}} | |
| 1227 | }}} | |
| 1228 | ############################ | |
| 1229 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 1230 | }}} | |
| 1231 | {{{#!if _ParOpen == -1 | |
| 1232 | {{{#!if Match=true | |
| 1233 | }}} | |
| 1234 | }}}{{{#!if _ParOpen != -1 | |
| 1235 | {{{#!if ParOpen+=_ParOpen+3 | |
| 1236 | }}} | |
| 1237 | }}} | |
| 1238 | ############################ | |
| 1239 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 1240 | }}} | |
| 1241 | {{{#!if _ParOpen == -1 | |
| 1242 | {{{#!if Match=true | |
| 1243 | }}} | |
| 1244 | }}}{{{#!if _ParOpen != -1 | |
| 1245 | {{{#!if ParOpen+=_ParOpen+3 | |
| 1246 | }}} | |
| 1247 | }}} | |
| 1248 | ############################ | |
| 1249 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 1250 | }}} | |
| 1251 | {{{#!if _ParOpen == -1 | |
| 1252 | {{{#!if Match=true | |
| 1253 | }}} | |
| 1254 | }}}{{{#!if _ParOpen != -1 | |
| 1255 | {{{#!if ParOpen+=_ParOpen+3 | |
| 1256 | }}} | |
| 1257 | }}} | |
| 1258 | ############################ | |
| 1259 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 1260 | }}} | |
| 1261 | {{{#!if _ParOpen == -1 | |
| 1262 | {{{#!if Match=true | |
| 1263 | }}} | |
| 1264 | }}}{{{#!if _ParOpen != -1 | |
| 1265 | {{{#!if ParOpen+=_ParOpen+3 | |
| 1266 | }}} | |
| 1267 | }}} | |
| 1268 | }}} | |
| 1269 | ########################### | |
| 1270 | {{{#!if Match | |
| 1271 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' | |
| 1272 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) | |
| 1273 | }}} | |
| 1274 | }}} | |
| 1275 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' | |
| 1276 | {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') | |
| 1277 | }}}{{{#!if BrL != -1 && StyleL!=-1 | |
| 1278 | {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) | |
| 1279 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 1280 | }}} | |
| 1281 | }}} | |
| 1282 | }}} | |
| 1283 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' | |
| 1284 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') | |
| 1285 | }}}{{{#!if Blank!=-1 | |
| 1286 | {{{#!if Comma != -1 | |
| 1287 | {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) | |
| 1288 | }}} | |
| 1289 | }}} | |
| 1290 | {{{#!if Comma == -1 | |
| 1291 | {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor | |
| 1292 | }}} | |
| 1293 | }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) | |
| 1294 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 1295 | ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. | |
| 1296 | }}} | |
| 1297 | }}} | |
| 1298 | }}} | |
| 1299 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-' | |
| 1300 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ') | |
| 1301 | }}}{{{#!if Blank==5 | |
| 1302 | {{{#!if Size=input.substr(ParOpen+Blank-2, 2) | |
| 1303 | }}} | |
| 1304 | {{{#!if Size == '+1' | |
| 1305 | {{{#!if Em='1.28889em' | |
| 1306 | }}}}}}{{{#!if Size == '+2' | |
| 1307 | {{{#!if Em='1.38889em' | |
| 1308 | }}}}}}{{{#!if Size == '+3' | |
| 1309 | {{{#!if Em='1.48144em' | |
| 1310 | }}}}}}{{{#!if Size == '+4' | |
| 1311 | {{{#!if Em='1.57400em' | |
| 1312 | }}}}}}{{{#!if Size == '+5' | |
| 1313 | {{{#!if Em='1.66667em' | |
| 1314 | }}}}}}{{{#!if Size == '-1' | |
| 1315 | {{{#!if Em='0.92589em' | |
| 1316 | }}}}}}{{{#!if Size == '-2' | |
| 1317 | {{{#!if Em='0.83333em' | |
| 1318 | }}}}}}{{{#!if Size == '-3' | |
| 1319 | {{{#!if Em='0.74067em' | |
| 1320 | }}}}}}{{{#!if Size == '-4' | |
| 1321 | {{{#!if Em='0.64811em' | |
| 1322 | }}}}}}{{{#!if Size == '-5' | |
| 1323 | {{{#!if Em='0.62222em' | |
| 1324 | }}}}}} | |
| 1325 | {{{#!if Text = input.substring(ParOpen+Blank,ParClose) | |
| 1326 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) | |
| 1327 | }}} | |
| 1328 | }}} | |
| 1329 | }}} | |
| 1330 | }}} | |
| 1331 | }}} | |
| 1332 | ########################### | |
| 1333 | }}} | |
| r2688 | 1334 | |
| r2681 | 1335 | output: {{{#!html @input@}}} |
| r2706 | 1336 | |
| 1337 | == 나무나무마크구상3 == | |
| 1338 | 볼드 기울임 취소선 밑줄 아래위첨자 | |
| r2624 | 1339 | == ㅁㄴㅇㄹ == |
| 1340 | [include(a)]''''''[include(a)][include(a)] | |
| 1341 | [[]][include(a)][include(a)][include(a)] | |
| 1342 | ||
| 1343 | {{{#!wiki style="background: skyblue; margin: 0 auto; padding: 5px; max-width: 500px" | |
| 1344 | ||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><bgcolor=#000>|| | |
| 1345 | ||
| 1346 | ||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><rowbgcolor=#000>|| | |
| 1347 | ||<colbgcolor=#000>|| | |
| 1348 | ||<tan>|| | |
| 1349 | ||
| 1350 | ||<tablealign=center><tablewidth=100%><bgcolor=#000>|| | |
| 1351 | ||
| 1352 | ||<tablealign=center><tablewidth=100%>||}}} | |
| 1353 | Mozilla/5.0 (compatible; Daum/1.0; +http://ws.daum.net/aboutkr.html) ok | |
| 1354 | Mozilla/5.0 (compatible; coccocbot-web/1.0; +http://help.coccoc.com/web) ok | |
| 1355 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)] | |
| 1356 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)] | |
| 1357 | ---- | |
| 1358 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)] | |
| 1359 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)] | |
| 1360 | ---- | |
| 1361 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)] | |
| 1362 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)] | |
| 1363 | ---- | |
| 1364 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)] | |
| 1365 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)] | |
| 1366 | ---- | |
| 1367 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)] | |
| 1368 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)] | |
| 1369 | ---- | |
| 1370 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)] | |
| 1371 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)] | |
| 1372 | ---- | |
| 1373 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)] | |
| 1374 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)] | |
| 1375 | ---- | |
| 1376 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)] | |
| 1377 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)] | |
| 1378 | ---- | |
| 1379 | \[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)] | |
| 1380 | [include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)] | |
| 1381 | ---- | |
| 1382 | \[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)] | |
| 1383 | [include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)] | |
| 1384 | \[include(틀:isuuid, uuid=냥)] | |
| 1385 | [include(틀:isuuid, uuid=냥)] | |
| 1386 | [include(틀:ㅁ, str=Hello\, World!)] | |
| 1387 | toString() 가능 | |
| 1388 | parseInt() x | |
| 1389 | ||
| 1390 | == == | |
| r2584 | 1391 | {{{#!wiki style="font-weight: 300; font-size: 20px" |
| 1392 | {{{#!if 식 = '11+2' | |
| r2597 | 1393 | @식=11+2@}}} = {{{#!if s1=false, s2=false, s3=false, j=1+0, i=0+0, k=1+0 |
| r2593 | 1394 | ##switch1 : 숫자 계속 탐색하기, switch2 : 소수점 아래 기입하기. switch3 : 중복 실행 방지. |
| r2594 | 1395 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
| r2593 | 1396 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
| r2594 | 1397 | ##숫자를 발견할 경우 |
| r2591 | 1398 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
| r2595 | 1399 | ##여기에 앞자리가 음수냐 아니냐를 읽는 판별을 만들어야 합니다. ㅏ 이걸 생각 못했네요 그럼 좀 많이 길어지는데 |
| r2591 | 1400 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
| 1401 | ##숫자를 계속 발견할 경우 (소수점일 수도 있습니다. 여기서는 숫자일 경우) | |
| r2592 | 1402 | ##여기에서 소수점 위를 기입하냐 소수점 아래를 기입하냐 소수점 아래라면 소수점 아래 몇번째 자리를 기입하느냐를 적어야 합니다. |
| r2597 | 1403 | {{{#!if s2==false |
| 1404 | ##정수 자리를 기입하는 경우 | |
| r2595 | 1405 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
| r2597 | 1406 | }}}}}}{{{#!if s2==true |
| 1407 | ##소수점 아래 자리를 기입하는 경우 | |
| 1408 | {{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true | |
| 1409 | }}}{{{#!if k+=1 | |
| 1410 | ##다음 소수점 자리 찾기 | |
| r2602 | 1411 | }}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false) |
| r2605 | 1412 | ##앞에서 숫자를 발견한 다음 소수점을 발견할 경우 (소수점 발견은 최초 1회에 한함) |
| r2597 | 1413 | {{{#!if s2=true, s3=true, k=1+0 |
| 1414 | ##switch2 : 켜기 | |
| r2607 | 1415 | }}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46))||((s2==true)&&!this['d'+i]))&&(s3==false) |
| 1416 | ##숫자가 더 이상 나오지 않고 소수점을 발견하지 못했을 경우, 소수점을 발견한 상황인데 숫자가 나오지 않을 경우 (소수점이 다시 나오는 경우가 자동적으로 포함) | |
| r2591 | 1417 | {{{#!if j+=1, s1=false, s2=false, s3=true |
| r2592 | 1418 | ##소수점 아래 기입하는 스위치도 off, 다음 index(j) 매김. |
| r2597 | 1419 | }}}{{{#!if s3==true |
| 1420 | ##여기까지 과정을 거쳤다면 스위치 off. | |
| 1421 | {{{#!if s3=false | |
| 1422 | }}}}}} | |
| 1423 | }}}{{{#!if i+=1 | |
| r2594 | 1424 | }}} |
| r2595 | 1425 | ## |
| r2599 | 1426 | {{{#!if false |
| r2600 | 1427 | ##이 if문은 실행되지 않는 단락. 주석만 제거하고 복사 붙여넣기. |
| r2599 | 1428 | {{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
| 1429 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) | |
| 1430 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true | |
| 1431 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) | |
| 1432 | {{{#!if s2==false | |
| 1433 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true | |
| 1434 | }}}}}}{{{#!if s2==true | |
| 1435 | {{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true | |
| 1436 | }}}{{{#!if k+=1 | |
| r2603 | 1437 | }}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false) |
| r2599 | 1438 | {{{#!if s2=true, s3=true, k=1+0 |
| r2604 | 1439 | }}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46)||(s2==false))||((s2==true)&&!this['d'+i]&&(식=[i]==46)))&&(s3==false) |
| r2599 | 1440 | {{{#!if j+=1, s1=false, s2=false, s3=true |
| 1441 | }}}{{{#!if s3==true | |
| 1442 | {{{#!if s3=false | |
| 1443 | }}}}}} | |
| 1444 | }}}{{{#!if i+=1 | |
| 1445 | }}} | |
| 1446 | #### | |
| 1447 | }}} | |
| 1448 | ## | |
| r2600 | 1449 | {{{#!if this['v1'] == 1 |
| 1450 | this['v1'] == 1}}} | |
| 1451 | ## | |
| 1452 | {{{#!if s3=false | |
| 1453 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) | |
| 1454 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) | |
| 1455 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true | |
| 1456 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) | |
| 1457 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true | |
| 1458 | }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) | |
| 1459 | {{{#!if s2=true, s3=true | |
| 1460 | }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) | |
| 1461 | {{{#!if j+=1, s1=false, s2=false, s3=true | |
| 1462 | }}}}}}{{{#!if i+=1 | |
| 1463 | }}} | |
| 1464 | ## | |
| r2595 | 1465 | {{{#!if this['v1'] == 11 |
| 1466 | this['v1'] == 11}}} | |
| 1467 | ## | |
| r2596 | 1468 | {{{#!if s3=false |
| 1469 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) | |
| 1470 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) | |
| 1471 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true | |
| 1472 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) | |
| 1473 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true | |
| 1474 | }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) | |
| 1475 | {{{#!if s2=true, s3=true | |
| 1476 | }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) | |
| 1477 | {{{#!if j+=1, s1=false, s2=false, s3=true | |
| 1478 | }}}}}}{{{#!if i+=1 | |
| 1479 | }}}{{{#!if s3=false | |
| 1480 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) | |
| 1481 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) | |
| 1482 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true | |
| 1483 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) | |
| 1484 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true | |
| 1485 | }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) | |
| 1486 | {{{#!if s2=true, s3=true | |
| 1487 | }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) | |
| 1488 | {{{#!if j+=1, s1=false, s2=false, s3=true | |
| 1489 | }}}}}}{{{#!if i+=1 | |
| 1490 | }}} | |
| r2595 | 1491 | ## |
| r2596 | 1492 | {{{#!if this['v2'] == 2 |
| 1493 | this['v2'] == 2}}} | |
| r2595 | 1494 | ## |
| 1495 | ## | |
| 1496 | ## | |
| 1497 | ## | |
| r2593 | 1498 | {{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 |
| r2586 | 1499 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 |
| 1500 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 | |
| r2584 | 1501 | }}} |
| r2586 | 1502 | ## 식 검증이 됐다 치면 |
| r2587 | 1503 | ## dn : true - 수 / false - 연산자 |
| r2586 | 1504 | {{{#!if this['d0'] |
| 1505 | 1}}}{{{#!if this['d1'] | |
| 1506 | 1}}}{{{#!if !this['d2'] | |
| 1507 | +}}}{{{#!if this['d3'] | |
| r2585 | 1508 | 2}}} |
| r2587 | 1509 | ## in : 11+2 에서 '11'은 0번째 위치, '+'는 2번째 위치.. > 0, 2, 3 > 위치 기억 / 뺄셈으로 자릿수 계산 |
| 1510 | ## 보다 좋은 방법이 있ㅅ을 것 같은데음ㅁ.. | |
| 1511 | {{{#!if i = 1, j = 1, i0 = 0 | |
| 1512 | }}} | |
| 1513 | {{{#!if t = this['d0'] != this['d1'], t | |
| 1514 | {{{#!if this['i'+i] = j, j+=1, i+=1 | |
| 1515 | }}}}}}{{{#!if !t | |
| 1516 | {{{#!if j+=1 | |
| 1517 | }}}}}}{{{#!if t = this['d1'] != this['d2'], t | |
| 1518 | {{{#!if this['i'+i] = j, j+=1, i+=1 | |
| 1519 | }}}}}}{{{#!if !t | |
| 1520 | {{{#!if j+=1 | |
| 1521 | }}}}}}{{{#!if t = this['d1'] != this['d2'], t | |
| 1522 | {{{#!if this['i'+i] = j, j+=1, i+=1 | |
| 1523 | }}}}}}{{{#!if !t | |
| 1524 | {{{#!if j+=1 | |
| r2585 | 1525 | }}}}}} |
| r2608 | 1526 | ## {{{#!if i0 == 0 |
| 1527 | ## i0 == 0 }}}{{{#!if i1 == 2 | |
| 1528 | ## i1 == 2 }}}{{{#!if i2 == 3 | |
| 1529 | ## i2 == 3 }}} | |
| r2587 | 1530 | ## {{{#!if list = [d0, d1, d2, d3] |
| 1531 | ## }}} | |
| r2624 | 1532 | }}} |