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