| r2675 vs r2676 | ||
|---|---|---|
| ... | ... | |
| 164 | 164 | }}} |
| 165 | 165 | }}} |
| 166 | 166 | ########### |
| 167 | {{{#!if h | |
| 168 | }}}{{{#!if | |
| 169 | }}}{{{#!if | |
| 170 | }}}{{{#!if | |
| 171 | {{{#!if | |
| 172 | }}}{{{#!if | |
| 173 | {{{#!if h | |
| 174 | }}}}}}{{{#!if | |
| 175 | {{{#!if ( | |
| 176 | {{{#!if b | |
| 177 | }}}}}}{{{#!if ( | |
| 178 | {{{#!if b | |
| 179 | }}}}}}{{{#!if ( | |
| 180 | {{{#!if b | |
| 181 | }}}}}}{{{#!if !b | |
| 182 | {{{#!if h | |
| 183 | }}}}}}}}}{{{#!if isLink | |
| 184 | {{{#!if | |
| 185 | }}}}}}{{{#!if isCategory | |
| 186 | }}}{{{#!if !(isCategory | |
| 187 | {{{#!if h | |
| 188 | }}}}}}{{{#!if input | |
| 167 | {{{#!if h=null,a=null,b=false,c='#0275d8',d='' | |
| 168 | }}}{{{#!if e=input.indexOf('[['),x=input.indexOf(']]') | |
| 169 | }}}{{{#!if z=input.substring(e,x+2) | |
| 170 | }}}{{{#!if e!=-1&&x!=-1&&e+2<x | |
| 171 | {{{#!if g=z.indexOf('|') | |
| 172 | }}}{{{#!if g==-1 | |
| 173 | {{{#!if h=z.substring(2,z.length-2) | |
| 174 | }}}}}}{{{#!if g!=-1 | |
| 175 | {{{#!if (g==2)&&(g+1==z.length-2) | |
| 176 | {{{#!if b=true,input=input.substring(0,e)+input.substring(x+2) | |
| 177 | }}}}}}{{{#!if (g==2)&&!b | |
| 178 | {{{#!if b=true,h=z.substring(g+1,z.length-2),a=h | |
| 179 | }}}}}}{{{#!if (g+1==z.length-2)&&!b | |
| 180 | {{{#!if b=true,h=z.substring(2,g),a=h | |
| 181 | }}}}}}{{{#!if !b | |
| 182 | {{{#!if h=z.substring(2,g),a=z.substring(g+1,z.length-2) | |
| 183 | }}}}}}}}}{{{#!if isLink=(h.startsWith('https://')||h.startsWith('http://')||h.startsWith('ftp://')),isLink | |
| 184 | {{{#!if c='none',d='asdf' | |
| 185 | }}}}}}{{{#!if isCategory=(h.startsWith('분류:')),isCategory | |
| 186 | }}}{{{#!if !(isCategory||isLink) | |
| 187 | {{{#!if h='https://theseed.io/w/'+h | |
| 188 | }}}}}}{{{#!if input=input.substring(0,e)+'<div style="display:inline-table"><div style="overflow:hidden"><div style="margin-left:-1.2em'+d+'"><a href="'+h+'"><div style="color:'+c+';display:inline">'+a+'</div></a></div></div></div>'+input.substring(x+2) | |
| 189 | 189 | }}}}}} |
| 190 | 190 | }}} |
| 191 | 191 | output: {{{#!html @input@}}} |
| ... | ... |