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