r2678 vs r2679
11
[[분류:냥]]
2
##@{{{#!if a="2"
3
##@}}}{{{#!if a=a+a+a+a+a+a+a+a+a+a, g=a+a+a+a+a+a+a
4
##@## 10
5
##@}}}{{{#!if a=a+a+a+a+a+a+a+a+a+a, f=a+a+a+a+a+a+a+a+a
6
##@## 100
7
##@}}}{{{#!if a=a+a+a+a+a+a+a+a+a+a, e=a+a+a+a+a+a+a+a+a
8
##@## 1,000
9
##@}}}{{{#!if a=a+a+a+a+a+a+a+a+a+a, d=a+a+a+a+a+a+a+a+a
10
##@## 10,000
11
##@}}}{{{#!if a=a+a+a+a+a+a+a+a+a+a, c=a+a+a+a+a+a+a+a+a
12
##@## 100,000
13
##@}}}{{{#!if a=a+a+a+a+a+a+a+a+a+a, b=a+a+a+a+a+a+a+a+a
14
##@## 1,000,000
15
##@}}}{{{#!if a=a+a+a+a+a+a+a+a+a+a
16
##@## 10,999,997
17
##@}}}@a@@b@@c@@d@@e@@f@@g@
182
{{{#!if au='222222222'
193
}}}
204
@au@
......
127111
128112
== 나무나무마크구상 ==
129113
* 링크 > 분류/일반 링크/외부 링크(파일 불가)
130
## \{{{#!html <div style="clear: both"/>}}}
131
## == clearfix
114
\{{{#!html <div style="clear: both"/>}}}
115
== clearfix
132116
접기includeifsyntax각주일부 불가능
133
134
input={{{냥[[링크|냥]]냥[[https://namu.wiki/w/사용자:nyangx3|냥]]냥}}}
135
{{{#!wiki style="display: none"
136
{{{#!if input='냥[[링크|냥]]냥[[https://namu.wiki/w/사용자:nyangx3|냥]]냥'
117
asdf{{{#!html <div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -1.2em"><a href="https://theseed.io/w">asdf</div></a></div></div></div>}}}asdf
118
<div style="color: #0275d8">
119
{{{#!if input='냥[[링크|냥]]냥'
137120
}}}
138
{{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8', outLink=''
139
}}}{{{#!if linkOpen = input.indexOf('[['), linkClose = input.indexOf(']]')
121
{{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8'
122
}}}
123
{{{#!if linkOpen = input.indexOf('[['), linkClose = input.indexOf(']]')
140124
}}}{{{#!if linkRaw = input.substring(linkOpen, linkClose+2)
141125
}}}{{{#!if linkOpen != -1 && linkClose != -1 && linkOpen+2 < linkClose
142126
## [[]] 인 경우 linkOpen+2 == linkClose 임 ^^^^^^^^^^^^^^^^^^^^^^
......
169153
}}}
170154
}}}
171155
{{{#!if isLink = (href.startsWith('https://') || href.startsWith('http://') || href.startsWith('ftp://')), isLink
172
{{{#!if linkColor = 'none', outLink = 'asdf'
156
{{{#!if linkColor = 'none'
173157
}}}
174158
}}}{{{#!if isCategory = (href.startsWith('분류:')), isCategory
175159
## 나중에생각 - 실제로 분류되지는 않고(하고 싶어도 못 함 display: none으로 없어지는 것도 아니고) 그냥 분류 느낌만 내기
176160
}}}{{{#!if !(isCategory || isLink)
177161
{{{#!if href = 'https://theseed.io/w/'+href
178162
}}}
179
}}}{{{#!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)
163
}}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -1.2em"><a href="' + href + '">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2)
180164
}}}
181165
}}}
182
###########
183
{{{#!if h=null,a=null,b=false,c='#0275d8',d=''
184
}}}{{{#!if e=input.indexOf('[['),x=input.indexOf(']]')
185
}}}{{{#!if z=input.substring(e,x+2)
186
}}}{{{#!if e!=-1&&x!=-1&&e+2<x
187
{{{#!if g=z.indexOf('|')
188
}}}{{{#!if g==-1
189
{{{#!if h=z.substring(2,z.length-2)
190
}}}}}}{{{#!if g!=-1
191
{{{#!if (g==2)&&(g+1==z.length-2)
192
{{{#!if b=true,input=input.substring(0,e)+input.substring(x+2)
193
}}}}}}{{{#!if (g==2)&&!b
194
{{{#!if b=true,h=z.substring(g+1,z.length-2),a=h
195
}}}}}}{{{#!if (g+1==z.length-2)&&!b
196
{{{#!if b=true,h=z.substring(2,g),a=h
197
}}}}}}{{{#!if !b
198
{{{#!if h=z.substring(2,g),a=z.substring(g+1,z.length-2)
199
}}}}}}}}}{{{#!if isLink=(h.startsWith('https://')||h.startsWith('http://')||h.startsWith('ftp://')),isLink
200
{{{#!if c='none',d='asdf'
201
}}}}}}{{{#!if isCategory=(h.startsWith('분류:')),isCategory
202
}}}{{{#!if !(isCategory||isLink)
203
{{{#!if h='https://theseed.io/w/'+h
204
}}}}}}{{{#!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)
205
}}}}}}
206
}}}
207
output: {{{#!html @input@}}}
166
167
@linkRaw@
168
@href@
169
@linkPrint@
170
171
{{{#!html @input@}}}
208172
== ㅁㄴㅇㄹ ==
209173
[include(a)]''''''[include(a)][include(a)]
210174
[[]][include(a)][include(a)][include(a)]
......