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