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