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