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