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