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