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