| r2672 vs r2673 | ||
|---|---|---|
| ... | ... | |
| 119 | 119 | {{{#!wiki style="display: none" |
| 120 | 120 | {{{#!if input='냥[[링크|냥]]냥' |
| 121 | 121 | }}} |
| 122 | {{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8' | |
| 122 | {{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8', outLink='' | |
| 123 | 123 | }}} |
| 124 | 124 | {{{#!if linkOpen = input.indexOf('[['), linkClose = input.indexOf(']]') |
| 125 | 125 | }}}{{{#!if linkRaw = input.substring(linkOpen, linkClose+2) |
| ... | ... | |
| 154 | 154 | }}} |
| 155 | 155 | }}} |
| 156 | 156 | {{{#!if isLink = (href.startsWith('https://') || href.startsWith('http://') || href.startsWith('ftp://')), isLink |
| 157 | {{{#!if linkColor = 'none' | |
| 157 | {{{#!if linkColor = 'none', outLink = 'asdf' | |
| 158 | 158 | }}} |
| 159 | 159 | }}}{{{#!if isCategory = (href.startsWith('분류:')), isCategory |
| 160 | 160 | ## 나중에생각 - 실제로 분류되지는 않고(하고 싶어도 못 함 display: none으로 없어지는 것도 아니고) 그냥 분류 느낌만 내기 |
| 161 | 161 | }}}{{{#!if !(isCategory || isLink) |
| 162 | 162 | {{{#!if href = 'https://theseed.io/w/'+href |
| 163 | 163 | }}} |
| 164 | }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -1.2em' + | |
| 164 | }}}{{{#!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) | |
| 165 | 165 | }}} |
| 166 | 166 | }}} |
| 167 | 167 | }}} |
| ... | ... |