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" |
|---|
r1718
| 240 | {{{#!if input='냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue; display: inline"<br>냥텍스트\}\}\}asdf\{\{\{#;color:red,#f00 asdf\}\}\}\{\{\{-3 size\}\}\}' |
|---|
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 | }}} |
|---|
| 274 | }}} |
|---|
r1702
| 275 | ########################### |
|---|
r1719
| 276 | {{{#!if Match |
|---|
| 277 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' |
|---|
| 278 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) |
|---|
| 279 | }}} |
|---|
| 280 | }}} |
|---|
| 281 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' |
|---|
| 282 | {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') |
|---|
| 283 | }}}{{{#!if BrL != -1 && StyleL!=-1 |
|---|
| 284 | {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) |
|---|
| 285 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) |
|---|
| 286 | }}} |
|---|
| 287 | }}} |
|---|
| 288 | }}} |
|---|
| 289 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' |
|---|
| 290 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') |
|---|
| 291 | }}}{{{#!if Blank!=-1 |
|---|
| 292 | {{{#!if Comma != -1 |
|---|
| 293 | {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) |
|---|
r1702
| 294 | }}} |
|---|
r1719
| 295 | }}} |
|---|
| 296 | {{{#!if Comma == -1 |
|---|
| 297 | {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor |
|---|
r1703
| 298 | }}} |
|---|
r1719
| 299 | }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) |
|---|
| 300 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) |
|---|
r1706
| 301 | ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. |
|---|
r1719
| 302 | }}} |
|---|
r1697
| 303 | }}} |
|---|
r1719
| 304 | }}} |
|---|
| 305 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-' |
|---|
| 306 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ') |
|---|
| 307 | }}}{{{#!if Blank==5 |
|---|
| 308 | {{{#!if Size=input.substr(ParOpen+Blank-2, 2) |
|---|
| 309 | }}} |
|---|
| 310 | {{{#!if Size == '+1' |
|---|
| 311 | {{{#!if Em='1.28889em' |
|---|
| 312 | }}}}}}{{{#!if Size == '+2' |
|---|
| 313 | {{{#!if Em='1.38889em' |
|---|
| 314 | }}}}}}{{{#!if Size == '+3' |
|---|
| 315 | {{{#!if Em='1.48144em' |
|---|
| 316 | }}}}}}{{{#!if Size == '+4' |
|---|
| 317 | {{{#!if Em='1.57400em' |
|---|
| 318 | }}}}}}{{{#!if Size == '+5' |
|---|
| 319 | {{{#!if Em='1.66667em' |
|---|
| 320 | }}}}}}{{{#!if Size == '-1' |
|---|
| 321 | {{{#!if Em='0.92589em' |
|---|
| 322 | }}}}}}{{{#!if Size == '-2' |
|---|
| 323 | {{{#!if Em='0.83333em' |
|---|
| 324 | }}}}}}{{{#!if Size == '-3' |
|---|
| 325 | {{{#!if Em='0.74067em' |
|---|
| 326 | }}}}}}{{{#!if Size == '-4' |
|---|
| 327 | {{{#!if Em='0.64811em' |
|---|
| 328 | }}}}}}{{{#!if Size == '-5' |
|---|
| 329 | {{{#!if Em='0.62222em' |
|---|
| 330 | }}}}}} |
|---|
| 331 | {{{#!if Text = input.substring(ParOpen+Blank,ParClose) |
|---|
| 332 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) |
|---|
| 333 | }}} |
|---|
| 334 | }}} |
|---|
| 335 | }}} |
|---|
r1702
| 336 | }}} |
|---|
r1716
| 337 | }}} |
|---|
r1706
| 338 | ############################## |
|---|
r1702
| 339 | {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true |
|---|
r1719
| 340 | {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen |
|---|
| 341 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
|---|
| 342 | }}} |
|---|
| 343 | {{{#!if _ParOpen == -1 |
|---|
| 344 | {{{#!if Match=true |
|---|
r1697
| 345 | }}} |
|---|
r1719
| 346 | }}}{{{#!if _ParOpen != -1 |
|---|
| 347 | {{{#!if ParOpen=_ParOpen |
|---|
| 348 | }}} |
|---|
| 349 | }}} |
|---|
r1697
| 350 | ############################ |
|---|
r1719
| 351 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
|---|
| 352 | }}} |
|---|
| 353 | {{{#!if _ParOpen == -1 |
|---|
| 354 | {{{#!if Match=true |
|---|
r1697
| 355 | }}} |
|---|
r1719
| 356 | }}}{{{#!if _ParOpen != -1 |
|---|
| 357 | {{{#!if ParOpen+=_ParOpen+3 |
|---|
| 358 | }}} |
|---|
| 359 | }}} |
|---|
r1697
| 360 | ############################ |
|---|
r1719
| 361 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
|---|
| 362 | }}} |
|---|
| 363 | {{{#!if _ParOpen == -1 |
|---|
| 364 | {{{#!if Match=true |
|---|
r1697
| 365 | }}} |
|---|
r1719
| 366 | }}}{{{#!if _ParOpen != -1 |
|---|
| 367 | {{{#!if ParOpen+=_ParOpen+3 |
|---|
r1697
| 368 | }}} |
|---|
r1719
| 369 | }}} |
|---|
| 370 | }}} |
|---|
r1702
| 371 | ########################### |
|---|
r1719
| 372 | {{{#!if Match |
|---|
| 373 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' |
|---|
| 374 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) |
|---|
| 375 | }}} |
|---|
| 376 | }}} |
|---|
| 377 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' |
|---|
| 378 | {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') |
|---|
| 379 | }}}{{{#!if BrL != -1 && StyleL!=-1 |
|---|
| 380 | {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) |
|---|
| 381 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) |
|---|
| 382 | }}} |
|---|
| 383 | }}} |
|---|
| 384 | }}} |
|---|
| 385 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' |
|---|
| 386 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') |
|---|
| 387 | }}}{{{#!if Blank!=-1 |
|---|
| 388 | {{{#!if Comma != -1 |
|---|
| 389 | {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) |
|---|
r1697
| 390 | }}} |
|---|
r1719
| 391 | }}} |
|---|
| 392 | {{{#!if Comma == -1 |
|---|
| 393 | {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor |
|---|
r1697
| 394 | }}} |
|---|
r1719
| 395 | }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) |
|---|
| 396 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) |
|---|
r1706
| 397 | ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. |
|---|
r1719
| 398 | }}} |
|---|
r1697
| 399 | }}} |
|---|
r1719
| 400 | }}} |
|---|
| 401 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-' |
|---|
| 402 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ') |
|---|
| 403 | }}}{{{#!if Blank==5 |
|---|
| 404 | {{{#!if Size=input.substr(ParOpen+Blank-2, 2) |
|---|
| 405 | }}} |
|---|
| 406 | {{{#!if Size == '+1' |
|---|
| 407 | {{{#!if Em='1.28889em' |
|---|
| 408 | }}}}}}{{{#!if Size == '+2' |
|---|
| 409 | {{{#!if Em='1.38889em' |
|---|
| 410 | }}}}}}{{{#!if Size == '+3' |
|---|
| 411 | {{{#!if Em='1.48144em' |
|---|
| 412 | }}}}}}{{{#!if Size == '+4' |
|---|
| 413 | {{{#!if Em='1.57400em' |
|---|
| 414 | }}}}}}{{{#!if Size == '+5' |
|---|
| 415 | {{{#!if Em='1.66667em' |
|---|
| 416 | }}}}}}{{{#!if Size == '-1' |
|---|
| 417 | {{{#!if Em='0.92589em' |
|---|
| 418 | }}}}}}{{{#!if Size == '-2' |
|---|
| 419 | {{{#!if Em='0.83333em' |
|---|
| 420 | }}}}}}{{{#!if Size == '-3' |
|---|
| 421 | {{{#!if Em='0.74067em' |
|---|
| 422 | }}}}}}{{{#!if Size == '-4' |
|---|
| 423 | {{{#!if Em='0.64811em' |
|---|
| 424 | }}}}}}{{{#!if Size == '-5' |
|---|
| 425 | {{{#!if Em='0.62222em' |
|---|
| 426 | }}}}}} |
|---|
| 427 | {{{#!if Text = input.substring(ParOpen+Blank,ParClose) |
|---|
| 428 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) |
|---|
| 429 | }}} |
|---|
| 430 | }}} |
|---|
| 431 | }}} |
|---|
r1702
| 432 | }}} |
|---|
r1716
| 433 | }}} |
|---|
r1702
| 434 | ############################## |
|---|
r1704
| 435 | {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true |
|---|
r1719
| 436 | {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen |
|---|
| 437 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
|---|
| 438 | }}} |
|---|
| 439 | {{{#!if _ParOpen == -1 |
|---|
| 440 | {{{#!if Match=true |
|---|
r1704
| 441 | }}} |
|---|
r1719
| 442 | }}}{{{#!if _ParOpen != -1 |
|---|
| 443 | {{{#!if ParOpen=_ParOpen |
|---|
| 444 | }}} |
|---|
| 445 | }}} |
|---|
r1704
| 446 | ############################ |
|---|
r1719
| 447 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
|---|
| 448 | }}} |
|---|
| 449 | {{{#!if _ParOpen == -1 |
|---|
| 450 | {{{#!if Match=true |
|---|
r1704
| 451 | }}} |
|---|
r1719
| 452 | }}}{{{#!if _ParOpen != -1 |
|---|
| 453 | {{{#!if ParOpen+=_ParOpen+3 |
|---|
| 454 | }}} |
|---|
| 455 | }}} |
|---|
r1704
| 456 | ############################ |
|---|
r1719
| 457 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
|---|
| 458 | }}} |
|---|
| 459 | {{{#!if _ParOpen == -1 |
|---|
| 460 | {{{#!if Match=true |
|---|
r1704
| 461 | }}} |
|---|
r1719
| 462 | }}}{{{#!if _ParOpen != -1 |
|---|
| 463 | {{{#!if ParOpen+=_ParOpen+3 |
|---|
r1704
| 464 | }}} |
|---|
r1719
| 465 | }}} |
|---|
| 466 | }}} |
|---|
r1704
| 467 | ########################### |
|---|
r1719
| 468 | {{{#!if Match |
|---|
| 469 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' |
|---|
| 470 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) |
|---|
| 471 | }}} |
|---|
| 472 | }}} |
|---|
| 473 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' |
|---|
| 474 | {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') |
|---|
| 475 | }}}{{{#!if BrL != -1 && StyleL!=-1 |
|---|
| 476 | {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) |
|---|
| 477 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) |
|---|
| 478 | }}} |
|---|
| 479 | }}} |
|---|
| 480 | }}} |
|---|
| 481 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' |
|---|
| 482 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') |
|---|
| 483 | }}}{{{#!if Blank!=-1 |
|---|
| 484 | {{{#!if Comma != -1 |
|---|
| 485 | {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) |
|---|
r1704
| 486 | }}} |
|---|
r1719
| 487 | }}} |
|---|
| 488 | {{{#!if Comma == -1 |
|---|
| 489 | {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor |
|---|
r1704
| 490 | }}} |
|---|
r1719
| 491 | }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) |
|---|
| 492 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) |
|---|
r1704
| 493 | ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. |
|---|
r1719
| 494 | }}} |
|---|
r1704
| 495 | }}} |
|---|
r1719
| 496 | }}} |
|---|
| 497 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-' |
|---|
| 498 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ') |
|---|
| 499 | }}}{{{#!if Blank==5 |
|---|
| 500 | {{{#!if Size=input.substr(ParOpen+Blank-2, 2) |
|---|
| 501 | }}} |
|---|
| 502 | {{{#!if Size == '+1' |
|---|
| 503 | {{{#!if Em='1.28889em' |
|---|
| 504 | }}}}}}{{{#!if Size == '+2' |
|---|
| 505 | {{{#!if Em='1.38889em' |
|---|
| 506 | }}}}}}{{{#!if Size == '+3' |
|---|
| 507 | {{{#!if Em='1.48144em' |
|---|
| 508 | }}}}}}{{{#!if Size == '+4' |
|---|
| 509 | {{{#!if Em='1.57400em' |
|---|
| 510 | }}}}}}{{{#!if Size == '+5' |
|---|
| 511 | {{{#!if Em='1.66667em' |
|---|
| 512 | }}}}}}{{{#!if Size == '-1' |
|---|
| 513 | {{{#!if Em='0.92589em' |
|---|
| 514 | }}}}}}{{{#!if Size == '-2' |
|---|
| 515 | {{{#!if Em='0.83333em' |
|---|
| 516 | }}}}}}{{{#!if Size == '-3' |
|---|
| 517 | {{{#!if Em='0.74067em' |
|---|
| 518 | }}}}}}{{{#!if Size == '-4' |
|---|
| 519 | {{{#!if Em='0.64811em' |
|---|
| 520 | }}}}}}{{{#!if Size == '-5' |
|---|
| 521 | {{{#!if Em='0.62222em' |
|---|
| 522 | }}}}}} |
|---|
| 523 | {{{#!if Text = input.substring(ParOpen+Blank,ParClose) |
|---|
| 524 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) |
|---|
| 525 | }}} |
|---|
| 526 | }}} |
|---|
| 527 | }}} |
|---|
r1703
| 528 | }}} |
|---|
r1716
| 529 | }}} |
|---|
r1715
| 530 | ############################## |
|---|
| 531 | {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true |
|---|
r1719
| 532 | {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen |
|---|
| 533 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
|---|
| 534 | }}} |
|---|
| 535 | {{{#!if _ParOpen == -1 |
|---|
| 536 | {{{#!if Match=true |
|---|
r1715
| 537 | }}} |
|---|
r1719
| 538 | }}}{{{#!if _ParOpen != -1 |
|---|
| 539 | {{{#!if ParOpen=_ParOpen |
|---|
| 540 | }}} |
|---|
| 541 | }}} |
|---|
r1715
| 542 | ############################ |
|---|
r1719
| 543 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
|---|
| 544 | }}} |
|---|
| 545 | {{{#!if _ParOpen == -1 |
|---|
| 546 | {{{#!if Match=true |
|---|
r1715
| 547 | }}} |
|---|
r1719
| 548 | }}}{{{#!if _ParOpen != -1 |
|---|
| 549 | {{{#!if ParOpen+=_ParOpen+3 |
|---|
| 550 | }}} |
|---|
| 551 | }}} |
|---|
r1715
| 552 | ############################ |
|---|
r1719
| 553 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
|---|
| 554 | }}} |
|---|
| 555 | {{{#!if _ParOpen == -1 |
|---|
| 556 | {{{#!if Match=true |
|---|
r1715
| 557 | }}} |
|---|
r1719
| 558 | }}}{{{#!if _ParOpen != -1 |
|---|
| 559 | {{{#!if ParOpen+=_ParOpen+3 |
|---|
r1715
| 560 | }}} |
|---|
r1719
| 561 | }}} |
|---|
| 562 | }}} |
|---|
r1704
| 563 | ########################### |
|---|
r1719
| 564 | {{{#!if Match |
|---|
| 565 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!html' |
|---|
| 566 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) |
|---|
| 567 | }}} |
|---|
| 568 | }}} |
|---|
| 569 | {{{#!if input.substr(ParOpen, 9) == '\{\{\{#!wiki' |
|---|
| 570 | {{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=') |
|---|
| 571 | }}}{{{#!if BrL != -1 && StyleL!=-1 |
|---|
| 572 | {{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL) |
|---|
| 573 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3) |
|---|
| 574 | }}} |
|---|
| 575 | }}} |
|---|
| 576 | }}} |
|---|
| 577 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{#' |
|---|
| 578 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' '), Comma = input.substring(ParOpen,ParClose).indexOf(',') |
|---|
| 579 | }}}{{{#!if Blank!=-1 |
|---|
| 580 | {{{#!if Comma != -1 |
|---|
| 581 | {{{#!if WhiteColor=input.substr(ParOpen+3,Comma-3), DarkColor=input.substring(ParOpen+Comma+1,ParOpen+Blank) |
|---|
r1715
| 582 | }}} |
|---|
r1719
| 583 | }}} |
|---|
| 584 | {{{#!if Comma == -1 |
|---|
| 585 | {{{#!if WhiteColor=input.substr(ParOpen+3,Blank-3), DarkColor=WhiteColor |
|---|
r1715
| 586 | }}} |
|---|
r1719
| 587 | }}}{{{#!if Text = input.substring(ParOpen+Blank,ParClose) |
|---|
| 588 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; color: '+WhiteColor+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) |
|---|
r1715
| 589 | ##유효성 검사는 뺌. 귀찮고 넣으면 길어짐. |
|---|
r1719
| 590 | }}} |
|---|
r1715
| 591 | }}} |
|---|
r1719
| 592 | }}} |
|---|
| 593 | {{{#!if input.substr(ParOpen, 4) == '\{\{\{+' || input.substr(ParOpen, 4) == '\{\{\{-' |
|---|
| 594 | {{{#!if Blank = input.substring(ParOpen,ParClose).indexOf(' ') |
|---|
| 595 | }}}{{{#!if Blank==5 |
|---|
| 596 | {{{#!if Size=input.substr(ParOpen+Blank-2, 2) |
|---|
| 597 | }}} |
|---|
| 598 | {{{#!if Size == '+1' |
|---|
| 599 | {{{#!if Em='1.28889em' |
|---|
| 600 | }}}}}}{{{#!if Size == '+2' |
|---|
| 601 | {{{#!if Em='1.38889em' |
|---|
| 602 | }}}}}}{{{#!if Size == '+3' |
|---|
| 603 | {{{#!if Em='1.48144em' |
|---|
| 604 | }}}}}}{{{#!if Size == '+4' |
|---|
| 605 | {{{#!if Em='1.57400em' |
|---|
| 606 | }}}}}}{{{#!if Size == '+5' |
|---|
| 607 | {{{#!if Em='1.66667em' |
|---|
| 608 | }}}}}}{{{#!if Size == '-1' |
|---|
| 609 | {{{#!if Em='0.92589em' |
|---|
| 610 | }}}}}}{{{#!if Size == '-2' |
|---|
| 611 | {{{#!if Em='0.83333em' |
|---|
| 612 | }}}}}}{{{#!if Size == '-3' |
|---|
| 613 | {{{#!if Em='0.74067em' |
|---|
| 614 | }}}}}}{{{#!if Size == '-4' |
|---|
| 615 | {{{#!if Em='0.64811em' |
|---|
| 616 | }}}}}}{{{#!if Size == '-5' |
|---|
| 617 | {{{#!if Em='0.62222em' |
|---|
| 618 | }}}}}} |
|---|
| 619 | {{{#!if Text = input.substring(ParOpen+Blank,ParClose) |
|---|
| 620 | }}}{{{#!if input = input.substring(0,ParOpen)+'<div style="display: inline; font-size: '+Em+'">'+Text.trim()+'</div>'+input.substr(ParClose+3) |
|---|
| 621 | }}} |
|---|
| 622 | }}} |
|---|
| 623 | }}} |
|---|
r1705
| 624 | }}} |
|---|
r1716
| 625 | }}} |
|---|
r1715
| 626 | ########################### |
|---|
| 627 | }}} |
|---|
r1704
| 628 | |
|---|
r1697
| 629 | output: {{{#!html @input@}}} |
|---|
r1643
| 630 | == ㅁㄴㅇㄹ == |
|---|
| 631 | [include(a)]''''''[include(a)][include(a)] |
|---|
| 632 | [[]][include(a)][include(a)][include(a)] |
|---|
| 633 | |
|---|
| 634 | {{{#!wiki style="background: skyblue; margin: 0 auto; padding: 5px; max-width: 500px" |
|---|
| 635 | ||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><bgcolor=#000>|| |
|---|
| 636 | |
|---|
| 637 | ||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><rowbgcolor=#000>|| |
|---|
| 638 | ||<colbgcolor=#000>|| |
|---|
| 639 | ||<tan>|| |
|---|
| 640 | |
|---|
| 641 | ||<tablealign=center><tablewidth=100%><bgcolor=#000>|| |
|---|
| 642 | |
|---|
| 643 | ||<tablealign=center><tablewidth=100%>||}}} |
|---|
| 644 | Mozilla/5.0 (compatible; Daum/1.0; +http://ws.daum.net/aboutkr.html) ok |
|---|
| 645 | Mozilla/5.0 (compatible; coccocbot-web/1.0; +http://help.coccoc.com/web) ok |
|---|
| 646 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 647 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 648 | ---- |
|---|
| 649 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)] |
|---|
| 650 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)] |
|---|
| 651 | ---- |
|---|
| 652 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 653 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 654 | ---- |
|---|
| 655 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)] |
|---|
| 656 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)] |
|---|
| 657 | ---- |
|---|
| 658 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)] |
|---|
| 659 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)] |
|---|
| 660 | ---- |
|---|
| 661 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 662 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 663 | ---- |
|---|
| 664 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)] |
|---|
| 665 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)] |
|---|
| 666 | ---- |
|---|
| 667 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 668 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 669 | ---- |
|---|
| 670 | \[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)] |
|---|
| 671 | [include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)] |
|---|
| 672 | ---- |
|---|
| 673 | \[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)] |
|---|
| 674 | [include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)] |
|---|
| 675 | \[include(틀:isuuid, uuid=냥)] |
|---|
| 676 | [include(틀:isuuid, uuid=냥)] |
|---|
| 677 | [include(틀:ㅁ, str=Hello\, World!)] |
|---|
| 678 | toString() 가능 |
|---|
| 679 | parseInt() x |
|---|
| 680 | |
|---|
| 681 | == == |
|---|
r1603
| 682 | {{{#!wiki style="font-weight: 300; font-size: 20px" |
|---|
| 683 | {{{#!if 식 = '11+2' |
|---|
r1616
| 684 | @식=11+2@}}} = {{{#!if s1=false, s2=false, s3=false, j=1+0, i=0+0, k=1+0 |
|---|
r1612
| 685 | ##switch1 : 숫자 계속 탐색하기, switch2 : 소수점 아래 기입하기. switch3 : 중복 실행 방지. |
|---|
r1613
| 686 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
r1612
| 687 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
r1613
| 688 | ##숫자를 발견할 경우 |
|---|
r1610
| 689 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
r1614
| 690 | ##여기에 앞자리가 음수냐 아니냐를 읽는 판별을 만들어야 합니다. ㅏ 이걸 생각 못했네요 그럼 좀 많이 길어지는데 |
|---|
r1610
| 691 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 692 | ##숫자를 계속 발견할 경우 (소수점일 수도 있습니다. 여기서는 숫자일 경우) |
|---|
r1611
| 693 | ##여기에서 소수점 위를 기입하냐 소수점 아래를 기입하냐 소수점 아래라면 소수점 아래 몇번째 자리를 기입하느냐를 적어야 합니다. |
|---|
r1616
| 694 | {{{#!if s2==false |
|---|
| 695 | ##정수 자리를 기입하는 경우 |
|---|
r1614
| 696 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
r1616
| 697 | }}}}}}{{{#!if s2==true |
|---|
| 698 | ##소수점 아래 자리를 기입하는 경우 |
|---|
| 699 | {{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true |
|---|
| 700 | }}}{{{#!if k+=1 |
|---|
| 701 | ##다음 소수점 자리 찾기 |
|---|
r1621
| 702 | }}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false) |
|---|
r1624
| 703 | ##앞에서 숫자를 발견한 다음 소수점을 발견할 경우 (소수점 발견은 최초 1회에 한함) |
|---|
r1616
| 704 | {{{#!if s2=true, s3=true, k=1+0 |
|---|
| 705 | ##switch2 : 켜기 |
|---|
r1626
| 706 | }}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46))||((s2==true)&&!this['d'+i]))&&(s3==false) |
|---|
| 707 | ##숫자가 더 이상 나오지 않고 소수점을 발견하지 못했을 경우, 소수점을 발견한 상황인데 숫자가 나오지 않을 경우 (소수점이 다시 나오는 경우가 자동적으로 포함) |
|---|
r1610
| 708 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
r1611
| 709 | ##소수점 아래 기입하는 스위치도 off, 다음 index(j) 매김. |
|---|
r1616
| 710 | }}}{{{#!if s3==true |
|---|
| 711 | ##여기까지 과정을 거쳤다면 스위치 off. |
|---|
| 712 | {{{#!if s3=false |
|---|
| 713 | }}}}}} |
|---|
| 714 | }}}{{{#!if i+=1 |
|---|
r1613
| 715 | }}} |
|---|
r1614
| 716 | ## |
|---|
r1618
| 717 | {{{#!if false |
|---|
r1619
| 718 | ##이 if문은 실행되지 않는 단락. 주석만 제거하고 복사 붙여넣기. |
|---|
r1618
| 719 | {{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
| 720 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
| 721 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
| 722 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 723 | {{{#!if s2==false |
|---|
| 724 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
| 725 | }}}}}}{{{#!if s2==true |
|---|
| 726 | {{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true |
|---|
| 727 | }}}{{{#!if k+=1 |
|---|
r1622
| 728 | }}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false) |
|---|
r1618
| 729 | {{{#!if s2=true, s3=true, k=1+0 |
|---|
r1623
| 730 | }}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46)||(s2==false))||((s2==true)&&!this['d'+i]&&(식=[i]==46)))&&(s3==false) |
|---|
r1618
| 731 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
| 732 | }}}{{{#!if s3==true |
|---|
| 733 | {{{#!if s3=false |
|---|
| 734 | }}}}}} |
|---|
| 735 | }}}{{{#!if i+=1 |
|---|
| 736 | }}} |
|---|
| 737 | #### |
|---|
| 738 | }}} |
|---|
| 739 | ## |
|---|
r1619
| 740 | {{{#!if this['v1'] == 1 |
|---|
| 741 | this['v1'] == 1}}} |
|---|
| 742 | ## |
|---|
| 743 | {{{#!if s3=false |
|---|
| 744 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
| 745 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
| 746 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
| 747 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 748 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
| 749 | }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) |
|---|
| 750 | {{{#!if s2=true, s3=true |
|---|
| 751 | }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) |
|---|
| 752 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
| 753 | }}}}}}{{{#!if i+=1 |
|---|
| 754 | }}} |
|---|
| 755 | ## |
|---|
r1614
| 756 | {{{#!if this['v1'] == 11 |
|---|
| 757 | this['v1'] == 11}}} |
|---|
| 758 | ## |
|---|
r1615
| 759 | {{{#!if s3=false |
|---|
| 760 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
| 761 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
| 762 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
| 763 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 764 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
| 765 | }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) |
|---|
| 766 | {{{#!if s2=true, s3=true |
|---|
| 767 | }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) |
|---|
| 768 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
| 769 | }}}}}}{{{#!if i+=1 |
|---|
| 770 | }}}{{{#!if s3=false |
|---|
| 771 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
| 772 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
| 773 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
| 774 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 775 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
| 776 | }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) |
|---|
| 777 | {{{#!if s2=true, s3=true |
|---|
| 778 | }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) |
|---|
| 779 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
| 780 | }}}}}}{{{#!if i+=1 |
|---|
| 781 | }}} |
|---|
r1614
| 782 | ## |
|---|
r1615
| 783 | {{{#!if this['v2'] == 2 |
|---|
| 784 | this['v2'] == 2}}} |
|---|
r1614
| 785 | ## |
|---|
| 786 | ## |
|---|
| 787 | ## |
|---|
| 788 | ## |
|---|
r1612
| 789 | {{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 |
|---|
r1605
| 790 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 |
|---|
| 791 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 |
|---|
r1603
| 792 | }}} |
|---|
r1605
| 793 | ## 식 검증이 됐다 치면 |
|---|
r1606
| 794 | ## dn : true - 수 / false - 연산자 |
|---|
r1605
| 795 | {{{#!if this['d0'] |
|---|
| 796 | 1}}}{{{#!if this['d1'] |
|---|
| 797 | 1}}}{{{#!if !this['d2'] |
|---|
| 798 | +}}}{{{#!if this['d3'] |
|---|
r1604
| 799 | 2}}} |
|---|
r1606
| 800 | ## in : 11+2 에서 '11'은 0번째 위치, '+'는 2번째 위치.. > 0, 2, 3 > 위치 기억 / 뺄셈으로 자릿수 계산 |
|---|
| 801 | ## 보다 좋은 방법이 있ㅅ을 것 같은데음ㅁ.. |
|---|
| 802 | {{{#!if i = 1, j = 1, i0 = 0 |
|---|
| 803 | }}} |
|---|
| 804 | {{{#!if t = this['d0'] != this['d1'], t |
|---|
| 805 | {{{#!if this['i'+i] = j, j+=1, i+=1 |
|---|
| 806 | }}}}}}{{{#!if !t |
|---|
| 807 | {{{#!if j+=1 |
|---|
| 808 | }}}}}}{{{#!if t = this['d1'] != this['d2'], t |
|---|
| 809 | {{{#!if this['i'+i] = j, j+=1, i+=1 |
|---|
| 810 | }}}}}}{{{#!if !t |
|---|
| 811 | {{{#!if j+=1 |
|---|
| 812 | }}}}}}{{{#!if t = this['d1'] != this['d2'], t |
|---|
| 813 | {{{#!if this['i'+i] = j, j+=1, i+=1 |
|---|
| 814 | }}}}}}{{{#!if !t |
|---|
| 815 | {{{#!if j+=1 |
|---|
r1604
| 816 | }}}}}} |
|---|
r1627
| 817 | ## {{{#!if i0 == 0 |
|---|
| 818 | ## i0 == 0 }}}{{{#!if i1 == 2 |
|---|
| 819 | ## i1 == 2 }}}{{{#!if i2 == 3 |
|---|
| 820 | ## i2 == 3 }}} |
|---|
r1606
| 821 | ## {{{#!if list = [d0, d1, d2, d3] |
|---|
| 822 | ## }}} |
|---|
r1643
| 823 | }}} |
|---|