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