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