| r1 vs r2 | ||
|---|---|---|
| 1 | ##디버그용 if 문법 | |
| 2 | {{{#!if 값= | |
| 1 | ##미완성 | |
| 2 | ##디버그용 if 문법 (문자열 값으로 적어놓고 미리보기 테스트) | |
| 3 | {{{#!if 값= ,칸= | |
| 3 | 4 | }}}{{{#!if (값!=null)&&(값!="") |
| 4 | 5 | {{{#!if (칸==null)||(칸=="") |
| 5 | 6 | {{{#!if 칸="1em" |
| 6 | }}}}}}{{{#!if sty='style="', 색=sty+'display:inline-block;width:'+칸+';height:'+칸+';background:', 컷=값.indexOf("|"), mg=sty+'margin-top:calc(-1.5em + '+칸+')"' | |
| 7 | }}}}}}{{{#!if sty='style="', 색=sty+'display:inline-block;width:'+칸+';height:'+칸+';background:', 컷=값.indexOf("|"), mg=sty+'margin-top:calc(-1.5em + '+칸+')"', 끝=false | |
| 7 | 8 | }}}{{{#!wiki @mg@ |
| 9 | {{{#!if !끝 | |
| 8 | 10 | {{{#!if 컷!=-1 |
| 9 | {{{#!if 칠=값.substr(0,컷) | |
| 11 | {{{#!if 칠=값.substr(0,컷), 값=값.substr(컷+1, 값.length-컷-1) | |
| 10 | 12 | }}}}}}{{{#!if 컷==-1 |
| 11 | {{{#!if 칠=값 | |
| 13 | {{{#!if 칠=값, 끝=true | |
| 12 | 14 | }}}}}}{{{#!if (칠=="")||(칠==" ") |
| 13 | 15 | {{{#!if 칠="transparent" |
| 14 | 16 | }}}}}}{{{#!wiki @색@@칠@" |
| 15 | }}}}}}}}} | |
| 17 | }}}}}}}}}}}} | |
| 16 | 18 |