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