r2597
| 1 | [[분류:냥]] |
|---|
r2644
| 2 | {{{#!if au='222222222' |
|---|
| 3 | }}} |
|---|
| 4 | @au@ |
|---|
r2650
| 5 | {{{#!if au += "000000000000000000" |
|---|
| 6 | +18자}}}{{{#!if au=au.substr(0,18) |
|---|
| 7 | }}}{{{#!if al = au.length |
|---|
r2644
| 8 | }}} |
|---|
| 9 | @au@ |
|---|
| 10 | @al@자 |
|---|
r2641
| 11 | |
|---|
r2631
| 12 | ||<tablebgcolor=#fff,#1c1d1f'> <tablebgcolor=#fff,#1c1d1f'''{{{#red \'}}}'''>왜 문제가 없지 || |
|---|
| 13 | |
|---|
r2629
| 14 | {{{#!wikistyle="color:red" |
|---|
| 15 | wikistyle}}} |
|---|
| 16 | {{{#!wikistyle="color:red" |
|---|
| 17 | wikistyle}}}{{{#!wiki- - - - --style="color:red"dark-style="color:blue"dark-style="color:green" |
|---|
| 18 | wikistyle}}} |
|---|
| 19 | }}}{{{{{{#!wikistyle="color:red" |
|---|
| 20 | wikistyle}}} |
|---|
| 21 | {{{#!wikistyle="color:red" |
|---|
| 22 | wikistyle{{{{{{}}}}}}}}}{{{#!wikistyle="color:red" |
|---|
| 23 | wikistyle}}} |
|---|
| 24 | ## |
|---|
| 25 | {{{#!foldingfolding접기 |
|---|
| 26 | foldingfolding접기}}}{{{#!ifa==null |
|---|
| 27 | ifa==null}}}{{{#!syntaxpython |
|---|
| 28 | print('asdf')}}}{{{#!html{{{#!html이게왜됨}}}}}} |
|---|
| 29 | ## |
|---|
| 30 | folding, wiki(스타일), html은 뒤에 띄어쓰기 없어도 작동. |
|---|
| 31 | 다만 dark-style은 꼭 "-"만 사용 가능. |
|---|
| 32 | if, syntax는 띄어쓰기 없을 시 에러. |
|---|
| 33 | ## |
|---|
r2624
| 34 | == 문단 == |
|---|
r2636
| 35 | {{{-5 |
|---|
r2643
| 36 | [include(틀:계산기2, a=1.1, f=-, b=-1.2)] |
|---|
r2637
| 37 | [include(틀:계산기2, a=9223372036854775808, f=-, b=-9223372036854775800)] |
|---|
r2636
| 38 | [include(틀:계산기2, a=., f=-, b=-.)] |
|---|
| 39 | [include(틀:계산기2, a=-, f=+, b=-)] |
|---|
| 40 | [include(틀:계산기2, a=10, f=/, b=3)] |
|---|
r2624
| 41 | [include(틀:계산기2, a=-5, f=/, b=200)] |
|---|
| 42 | [include(틀:계산기2, a=-5, f=*, b=200)] |
|---|
| 43 | [include(틀:계산기2, a=123459, f=/, b=2)] |
|---|
| 44 | [include(틀:계산기2, a=12345, f=-, b=67890)] |
|---|
r2630
| 45 | [include(틀:계산기2, a=123456789012345678, f=-, b=-901234567890123456)] |
|---|
r2632
| 46 | [include(틀:계산기2, a=123456789012345678.901234567890123456, f=+, b=789012345678901234.567890123456789012)] |
|---|
r2639
| 47 | [include(틀:계산기2, a=123456789012345678.9012345678901234567, f=+, b=789012345678901234.567890123456789012)] |
|---|
r2624
| 48 | [include(틀:계산기2, a=-1, f=*, b=-5)] |
|---|
| 49 | [include(틀:계산기2, a=-3, f=/, b=7)] |
|---|
r2633
| 50 | [include(틀:계산기2, a=1.1, f=+, b=0.1)] |
|---|
r2634
| 51 | [include(틀:계산기2, a=1.123, f=+, b=0.877)] |
|---|
| 52 | [include(틀:계산기2, a=1.123, f=+, b=0.878)] |
|---|
r2635
| 53 | [include(틀:계산기2, a=1.333, f=-, b=4.354)] |
|---|
r2638
| 54 | [include(틀:계산기2, a=7.89, f=-, b=12.345)] |
|---|
r2640
| 55 | [include(틀:계산기2, a=1, f=-, b=0.000000000000000001)] |
|---|
| 56 | [include(틀:계산기2, a=1.000000000000000002, f=-, b=2.000000000000000001)]}}} |
|---|
r2633
| 57 | 아직은 소수끼리의 계산은 되지 않는 모양이다. 사실 그도 그럴 것이 gauss함수를 가져오지 않았기 때문) |
|---|
r2624
| 58 | |
|---|
| 59 | {{{#!if json={'a':'b', 'c':'d'} |
|---|
| 60 | json={'a':'b', 'c':'d'}[br] |
|---|
| 61 | }}}{{{#!if json['a'] == 'b' |
|---|
| 62 | json['a'] == 'b'[br] |
|---|
| 63 | }}}{{{#!if list = ['a', 'b'] |
|---|
| 64 | list = ['a', 'b'][br] |
|---|
| 65 | }}}{{{#!if list[1] == 'b' |
|---|
| 66 | list[1] == 'b'[br] |
|---|
| 67 | }}} |
|---|
| 68 | |
|---|
| 69 | [[../냥]] < 볼드체. 단, {{{../}}}뒤에 붙는 이름이 자기자신과 같은 이름이면 볼드체, 다른 이름(예 : [[../냥냥]], [[../냥/냥]])이면 볼드체가 아니다. 문서명이 '[[냥/냥|(상위문서명)/냥]]'일 경우에도 볼드체가 된다. 이 문서에는 상위 문서가 없으니 그냥 '냥' 으로 링크되는 듯 하다. |
|---|
| 70 | [[냥#]] < 볼드체 |
|---|
| 71 | [[냥#ㅁㄴㅇㄹ|냥#ㅁㄴㅇㄹ]] < 볼드체아님 |
|---|
| 72 | [[문서:냥]] < 볼드체아님 |
|---|
| 73 | |
|---|
| 74 | [include(틀:계산기, r=13)] |
|---|
| 75 | \[include(틀:계산기, r=13)] |
|---|
| 76 | 생각해보니까 그냥 r을 지정할 수도 있겠구나 |
|---|
| 77 | [include(틀:계산기, a=123456789, f=+, b=1)] |
|---|
| 78 | [include(틀:계산기, a=123456789, f=-, b=1)] |
|---|
| 79 | [include(틀:계산기, a=123459, f=*, b=2)] |
|---|
| 80 | [include(틀:계산기, a=123459, f=/, b=2)] |
|---|
r2646
| 81 | == 그래프구상 == |
|---|
| 82 | {{{#!if i=0, x=0 |
|---|
r2648
| 83 | }}}<math>x^2</math> |
|---|
r2646
| 84 | {{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 85 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 86 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 87 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 88 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 89 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 90 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 91 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 92 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 93 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 94 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 95 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 96 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 97 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 98 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 99 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 100 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 101 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 102 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 103 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 104 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
| 105 | }}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1 |
|---|
r2652
| 106 | }}}{{{#!if true |
|---|
| 107 | #tk : thickness |
|---|
| 108 | {{{#!if tk=1+0.0 |
|---|
r2656
| 109 | }}}}}}{{{#!if tk=(+tk)/2, tk=tk.toString(), color="#666", tp="transparent", c1="50% - "+tk+"px", c2="50% + "+tk+"px" |
|---|
r2646
| 110 | }}} |
|---|
| 111 | {{{#!wiki style="letter-spacing: -5px" |
|---|
r2649
| 112 | {{{#!wiki style="display: inline-table; background: linear-gradient(to right bottom, transparent calc(50% - 0.5px), #666 calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)); height: @y1@px; width: 10px; vertical-align: @v1@px" |
|---|
| 113 | }}}{{{#!wiki style="display: inline-table; background: linear-gradient(to right bottom, transparent calc(50% - 0.5px), #666 calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)); height: @y2@px; width: 10px; vertical-align: @v2@px;" |
|---|
| 114 | }}}{{{#!wiki style="display: inline-table; background: linear-gradient(to right bottom, transparent calc(50% - 0.5px), #666 calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)); height: @y3@px; width: 10px; vertical-align: @v3@px;" |
|---|
| 115 | }}}{{{#!wiki style="display: inline-table; background: linear-gradient(to right bottom, transparent calc(50% - 0.5px), #666 calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)); height: @y4@px; width: 10px; vertical-align: @v4@px;" |
|---|
| 116 | }}}{{{#!wiki style="display: inline-table; background: linear-gradient(to right bottom, transparent calc(50% - 0.5px), #666 calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)); height: @y5@px; width: 10px; vertical-align: @v5@px;" |
|---|
| 117 | }}}{{{#!wiki style="display: inline-table; background: linear-gradient(to right bottom, transparent calc(50% - 0.5px), #666 calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)); height: @y6@px; width: 10px; vertical-align: @v6@px;" |
|---|
| 118 | }}}{{{#!wiki style="display: inline-table; background: linear-gradient(to right bottom, transparent calc(50% - 0.5px), #666 calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)); height: @y7@px; width: 10px; vertical-align: @v7@px;" |
|---|
| 119 | }}}{{{#!wiki style="display: inline-table; background: linear-gradient(to right bottom, transparent calc(50% - 0.5px), #666 calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)); height: @y8@px; width: 10px; vertical-align: @v8@px;" |
|---|
| 120 | }}}{{{#!wiki style="display: inline-table; background: linear-gradient(to right bottom, transparent calc(50% - 0.5px), #666 calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)); height: @y9@px; width: 10px; vertical-align: @v9@px;" |
|---|
| 121 | }}}{{{#!wiki style="display: inline-table; background: linear-gradient(to right bottom, transparent calc(50% - 0.5px), #666 calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)); height: @y10@px; width: 10px; vertical-align: @v10@px" |
|---|
r2656
| 122 | }}}{{{#!wiki style="display: inline-table; background: linear-gradient(to right bottom, @tp@ calc(@c1@), @color@ calc(@c1@) calc(@c2@), @tp@ calc(@c2@)); height: @y11@px; width: 10px; vertical-align: @v11@px" |
|---|
r2649
| 123 | }}}{{{#!wiki style="display: inline-table; background: linear-gradient(to right bottom, transparent calc(50% - 0.5px), #666 calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)); height: @y12@px; width: 10px; vertical-align: @v12@px" |
|---|
| 124 | }}}{{{#!wiki style="display: inline-table; background: linear-gradient(to right bottom, transparent calc(50% - 0.5px), #666 calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)); height: @y13@px; width: 10px; vertical-align: @v13@px" |
|---|
| 125 | }}}{{{#!wiki style="display: inline-table; background: linear-gradient(to right bottom, transparent calc(50% - 0.5px), #666 calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)); height: @y14@px; width: 10px; vertical-align: @v14@px" |
|---|
r2646
| 126 | }}} |
|---|
| 127 | }}} |
|---|
r2624
| 128 | |
|---|
r2657
| 129 | == 나무나무마크구상 == |
|---|
| 130 | * 링크 > 분류/일반 링크/외부 링크 |
|---|
| 131 | {{{#!if input='냥[[링크|냥]]냥' |
|---|
| 132 | }}} |
|---|
| 133 | {{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8' |
|---|
| 134 | }}} |
|---|
| 135 | {{{#!if linkOpen = input.indexOf('[['), linkClose = input.indexOf(']]') |
|---|
| 136 | }}}{{{#!if linkRaw = input.substring(linkOpen, linkClose+2) |
|---|
| 137 | }}}{{{#!if linkOpen != -1 && linkClose != -1 && linkOpen+2 < linkClose |
|---|
| 138 | ## [[]] 인 경우 linkOpen+2 == linkClose 임 ^^^^^^^^^^^^^^^^^^^^^^ |
|---|
| 139 | {{{#!if divider = linkRaw.indexOf('|') |
|---|
| 140 | }}}{{{#!if divider == -1 |
|---|
| 141 | ##[[링크]] |
|---|
| 142 | {{{#!if href = linkRaw.substring(2, linkRaw.length-2) |
|---|
| 143 | }}} |
|---|
| 144 | }}}{{{#!if divider != -1 |
|---|
| 145 | {{{#!if (divider == 2) && (divider+1 == linkRaw.length-2) |
|---|
| 146 | {{{#!if break = true, input = input.substring(0, linkOpen) + input.substring(linkClose+2) |
|---|
| 147 | ##[[|]] > 출력 x |
|---|
| 148 | }}} |
|---|
| 149 | }}} |
|---|
| 150 | {{{#!if (divider == 2) && !break |
|---|
| 151 | {{{#!if break = true, href = linkRaw.substring(divider+1, linkRaw.length-2), linkPrint = href |
|---|
| 152 | ##[[|링크]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로. |
|---|
| 153 | }}} |
|---|
| 154 | }}} |
|---|
| 155 | {{{#!if (divider+1 == linkRaw.length-2) && !break |
|---|
| 156 | ##[[링크|]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로. |
|---|
| 157 | {{{#!if break = true, href = linkRaw.substring(2, divider), linkPrint = href |
|---|
| 158 | @linkPrint@ |
|---|
| 159 | @href@ |
|---|
| 160 | }}} |
|---|
| 161 | }}} |
|---|
| 162 | {{{#!if !break |
|---|
| 163 | {{{#!if href = linkRaw.substring(2, divider), linkPrint = linkRaw.substring(divider+1, linkRaw.length-2) |
|---|
| 164 | }}} |
|---|
| 165 | }}} |
|---|
| 166 | }}} |
|---|
| 167 | {{{#!if isLink = (href.startsWith('https://') || href.startsWith('http://') || href.startsWith('ftp://')), isLink |
|---|
| 168 | {{{#!if linkColor = 'none' |
|---|
| 169 | }}} |
|---|
| 170 | }}}{{{#!if isCategory = (href.startsWith('분류:')), isCategory |
|---|
| 171 | ## 나중에생각 - 실제로 분류되지는 않고(하고 싶어도 못 함 display: none으로 없어지는 것도 아니고) 그냥 분류 느낌만 내기 |
|---|
| 172 | }}}{{{#!if !(isCategory || isLink) |
|---|
| 173 | {{{#!if href = 'https://theseed.io/w/'+href |
|---|
| 174 | }}} |
|---|
| 175 | }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline"><div style="overflow: hidden"><div style="margin-top: -1.5em"><a href="' + href + '"><div style="color: ' + linkColor + '">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2) |
|---|
| 176 | }}} |
|---|
| 177 | }}} |
|---|
| 178 | |
|---|
| 179 | @linkRaw@ |
|---|
| 180 | @href@ |
|---|
| 181 | @linkPrint@ |
|---|
| 182 | |
|---|
| 183 | {{{#!html @input@}}} |
|---|
r2624
| 184 | == ㅁㄴㅇㄹ == |
|---|
| 185 | [include(a)]''''''[include(a)][include(a)] |
|---|
| 186 | [[]][include(a)][include(a)][include(a)] |
|---|
| 187 | |
|---|
| 188 | {{{#!wiki style="background: skyblue; margin: 0 auto; padding: 5px; max-width: 500px" |
|---|
| 189 | ||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><bgcolor=#000>|| |
|---|
| 190 | |
|---|
| 191 | ||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><rowbgcolor=#000>|| |
|---|
| 192 | ||<colbgcolor=#000>|| |
|---|
| 193 | ||<tan>|| |
|---|
| 194 | |
|---|
| 195 | ||<tablealign=center><tablewidth=100%><bgcolor=#000>|| |
|---|
| 196 | |
|---|
| 197 | ||<tablealign=center><tablewidth=100%>||}}} |
|---|
| 198 | Mozilla/5.0 (compatible; Daum/1.0; +http://ws.daum.net/aboutkr.html) ok |
|---|
| 199 | Mozilla/5.0 (compatible; coccocbot-web/1.0; +http://help.coccoc.com/web) ok |
|---|
| 200 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 201 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 202 | ---- |
|---|
| 203 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)] |
|---|
| 204 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)] |
|---|
| 205 | ---- |
|---|
| 206 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 207 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 208 | ---- |
|---|
| 209 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)] |
|---|
| 210 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)] |
|---|
| 211 | ---- |
|---|
| 212 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)] |
|---|
| 213 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)] |
|---|
| 214 | ---- |
|---|
| 215 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 216 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 217 | ---- |
|---|
| 218 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)] |
|---|
| 219 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)] |
|---|
| 220 | ---- |
|---|
| 221 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 222 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 223 | ---- |
|---|
| 224 | \[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)] |
|---|
| 225 | [include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)] |
|---|
| 226 | ---- |
|---|
| 227 | \[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)] |
|---|
| 228 | [include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)] |
|---|
| 229 | \[include(틀:isuuid, uuid=냥)] |
|---|
| 230 | [include(틀:isuuid, uuid=냥)] |
|---|
| 231 | [include(틀:ㅁ, str=Hello\, World!)] |
|---|
| 232 | toString() 가능 |
|---|
| 233 | parseInt() x |
|---|
| 234 | |
|---|
| 235 | == == |
|---|
r2584
| 236 | {{{#!wiki style="font-weight: 300; font-size: 20px" |
|---|
| 237 | {{{#!if 식 = '11+2' |
|---|
r2597
| 238 | @식=11+2@}}} = {{{#!if s1=false, s2=false, s3=false, j=1+0, i=0+0, k=1+0 |
|---|
r2593
| 239 | ##switch1 : 숫자 계속 탐색하기, switch2 : 소수점 아래 기입하기. switch3 : 중복 실행 방지. |
|---|
r2594
| 240 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
r2593
| 241 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
r2594
| 242 | ##숫자를 발견할 경우 |
|---|
r2591
| 243 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
r2595
| 244 | ##여기에 앞자리가 음수냐 아니냐를 읽는 판별을 만들어야 합니다. ㅏ 이걸 생각 못했네요 그럼 좀 많이 길어지는데 |
|---|
r2591
| 245 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 246 | ##숫자를 계속 발견할 경우 (소수점일 수도 있습니다. 여기서는 숫자일 경우) |
|---|
r2592
| 247 | ##여기에서 소수점 위를 기입하냐 소수점 아래를 기입하냐 소수점 아래라면 소수점 아래 몇번째 자리를 기입하느냐를 적어야 합니다. |
|---|
r2597
| 248 | {{{#!if s2==false |
|---|
| 249 | ##정수 자리를 기입하는 경우 |
|---|
r2595
| 250 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
r2597
| 251 | }}}}}}{{{#!if s2==true |
|---|
| 252 | ##소수점 아래 자리를 기입하는 경우 |
|---|
| 253 | {{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true |
|---|
| 254 | }}}{{{#!if k+=1 |
|---|
| 255 | ##다음 소수점 자리 찾기 |
|---|
r2602
| 256 | }}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false) |
|---|
r2605
| 257 | ##앞에서 숫자를 발견한 다음 소수점을 발견할 경우 (소수점 발견은 최초 1회에 한함) |
|---|
r2597
| 258 | {{{#!if s2=true, s3=true, k=1+0 |
|---|
| 259 | ##switch2 : 켜기 |
|---|
r2607
| 260 | }}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46))||((s2==true)&&!this['d'+i]))&&(s3==false) |
|---|
| 261 | ##숫자가 더 이상 나오지 않고 소수점을 발견하지 못했을 경우, 소수점을 발견한 상황인데 숫자가 나오지 않을 경우 (소수점이 다시 나오는 경우가 자동적으로 포함) |
|---|
r2591
| 262 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
r2592
| 263 | ##소수점 아래 기입하는 스위치도 off, 다음 index(j) 매김. |
|---|
r2597
| 264 | }}}{{{#!if s3==true |
|---|
| 265 | ##여기까지 과정을 거쳤다면 스위치 off. |
|---|
| 266 | {{{#!if s3=false |
|---|
| 267 | }}}}}} |
|---|
| 268 | }}}{{{#!if i+=1 |
|---|
r2594
| 269 | }}} |
|---|
r2595
| 270 | ## |
|---|
r2599
| 271 | {{{#!if false |
|---|
r2600
| 272 | ##이 if문은 실행되지 않는 단락. 주석만 제거하고 복사 붙여넣기. |
|---|
r2599
| 273 | {{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
| 274 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
| 275 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
| 276 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 277 | {{{#!if s2==false |
|---|
| 278 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
| 279 | }}}}}}{{{#!if s2==true |
|---|
| 280 | {{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true |
|---|
| 281 | }}}{{{#!if k+=1 |
|---|
r2603
| 282 | }}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false) |
|---|
r2599
| 283 | {{{#!if s2=true, s3=true, k=1+0 |
|---|
r2604
| 284 | }}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46)||(s2==false))||((s2==true)&&!this['d'+i]&&(식=[i]==46)))&&(s3==false) |
|---|
r2599
| 285 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
| 286 | }}}{{{#!if s3==true |
|---|
| 287 | {{{#!if s3=false |
|---|
| 288 | }}}}}} |
|---|
| 289 | }}}{{{#!if i+=1 |
|---|
| 290 | }}} |
|---|
| 291 | #### |
|---|
| 292 | }}} |
|---|
| 293 | ## |
|---|
r2600
| 294 | {{{#!if this['v1'] == 1 |
|---|
| 295 | this['v1'] == 1}}} |
|---|
| 296 | ## |
|---|
| 297 | {{{#!if s3=false |
|---|
| 298 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
| 299 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
| 300 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
| 301 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 302 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
| 303 | }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) |
|---|
| 304 | {{{#!if s2=true, s3=true |
|---|
| 305 | }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) |
|---|
| 306 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
| 307 | }}}}}}{{{#!if i+=1 |
|---|
| 308 | }}} |
|---|
| 309 | ## |
|---|
r2595
| 310 | {{{#!if this['v1'] == 11 |
|---|
| 311 | this['v1'] == 11}}} |
|---|
| 312 | ## |
|---|
r2596
| 313 | {{{#!if s3=false |
|---|
| 314 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
| 315 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
| 316 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
| 317 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 318 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
| 319 | }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) |
|---|
| 320 | {{{#!if s2=true, s3=true |
|---|
| 321 | }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) |
|---|
| 322 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
| 323 | }}}}}}{{{#!if i+=1 |
|---|
| 324 | }}}{{{#!if s3=false |
|---|
| 325 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
| 326 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
| 327 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
| 328 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 329 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
| 330 | }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) |
|---|
| 331 | {{{#!if s2=true, s3=true |
|---|
| 332 | }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) |
|---|
| 333 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
| 334 | }}}}}}{{{#!if i+=1 |
|---|
| 335 | }}} |
|---|
r2595
| 336 | ## |
|---|
r2596
| 337 | {{{#!if this['v2'] == 2 |
|---|
| 338 | this['v2'] == 2}}} |
|---|
r2595
| 339 | ## |
|---|
| 340 | ## |
|---|
| 341 | ## |
|---|
| 342 | ## |
|---|
r2593
| 343 | {{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 |
|---|
r2586
| 344 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 |
|---|
| 345 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 |
|---|
r2584
| 346 | }}} |
|---|
r2586
| 347 | ## 식 검증이 됐다 치면 |
|---|
r2587
| 348 | ## dn : true - 수 / false - 연산자 |
|---|
r2586
| 349 | {{{#!if this['d0'] |
|---|
| 350 | 1}}}{{{#!if this['d1'] |
|---|
| 351 | 1}}}{{{#!if !this['d2'] |
|---|
| 352 | +}}}{{{#!if this['d3'] |
|---|
r2585
| 353 | 2}}} |
|---|
r2587
| 354 | ## in : 11+2 에서 '11'은 0번째 위치, '+'는 2번째 위치.. > 0, 2, 3 > 위치 기억 / 뺄셈으로 자릿수 계산 |
|---|
| 355 | ## 보다 좋은 방법이 있ㅅ을 것 같은데음ㅁ.. |
|---|
| 356 | {{{#!if i = 1, j = 1, i0 = 0 |
|---|
| 357 | }}} |
|---|
| 358 | {{{#!if t = this['d0'] != this['d1'], t |
|---|
| 359 | {{{#!if this['i'+i] = j, j+=1, i+=1 |
|---|
| 360 | }}}}}}{{{#!if !t |
|---|
| 361 | {{{#!if j+=1 |
|---|
| 362 | }}}}}}{{{#!if t = this['d1'] != this['d2'], t |
|---|
| 363 | {{{#!if this['i'+i] = j, j+=1, i+=1 |
|---|
| 364 | }}}}}}{{{#!if !t |
|---|
| 365 | {{{#!if j+=1 |
|---|
| 366 | }}}}}}{{{#!if t = this['d1'] != this['d2'], t |
|---|
| 367 | {{{#!if this['i'+i] = j, j+=1, i+=1 |
|---|
| 368 | }}}}}}{{{#!if !t |
|---|
| 369 | {{{#!if j+=1 |
|---|
r2585
| 370 | }}}}}} |
|---|
r2608
| 371 | ## {{{#!if i0 == 0 |
|---|
| 372 | ## i0 == 0 }}}{{{#!if i1 == 2 |
|---|
| 373 | ## i1 == 2 }}}{{{#!if i2 == 3 |
|---|
| 374 | ## i2 == 3 }}} |
|---|
r2587
| 375 | ## {{{#!if list = [d0, d1, d2, d3] |
|---|
| 376 | ## }}} |
|---|
r2624
| 377 | }}} |
|---|