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