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