| r2772 vs r2773 | ||
|---|---|---|
| ... | ... | |
| 3219 | 3219 | ## * date(datetime) dday pagecount 되겠냐? |
| 3220 | 3220 | |
| 3221 | 3221 | ruby는 쉼표 붙여쓰기. |
| 3222 | ||
| 3223 | {{{#! | |
| 3224 | ||
| 3222 | {{{#!if this.input="냥\[br]냥\[clearfix]d[ruby(글자,ruby=루비,color=red)][ruby(글자,ruby=루비루비)]sid" | |
| 3225 | 3223 | }}} |
| 3226 | {{{#!if Macro=input.indexOf("[br]") | |
| 3227 | }}}{{{#!if Macro!=-1 | |
| 3228 | {{{#!if input = input.substring(0,Macro)+'<br>'+input.substr(Macro+4) | |
| 3224 | input=@input@ | |
| 3225 | {{{#!wiki style="display: none" | |
| 3226 | {{{#!if this.Macro=this.input.indexOf("[br]") | |
| 3227 | }}}{{{#!if this.Macro!=-1 | |
| 3228 | {{{#!if this.input = this.input.substring(0,this.Macro)+'<br>'+this.input.substr(this.Macro+4) | |
| 3229 | 3229 | }}}}}} |
| 3230 | {{{#!if Macro=input.indexOf("[clearfix]") | |
| 3231 | }}}{{{#!if Macro!=-1 | |
| 3232 | {{{#!if input = input.substring(0,Macro)+'<div style="clear: both">'+input.substr(Macro+10) | |
| 3230 | {{{#!if this.Macro=this.input.indexOf("[clearfix]") | |
| 3231 | }}}{{{#!if this.Macro!=-1 | |
| 3232 | {{{#!if this.input = this.input.substring(0,this.Macro)+'<div style="clear: both">'+this.input.substr(this.Macro+10) | |
| 3233 | 3233 | }}}}}} |
| 3234 | {{{#!if MacroOpen=input.indexOf("\[ruby\("), Color='' | |
| 3234 | {{{#!if this.MacroOpen=this.input.indexOf("\[ruby\("), this.Color='' | |
| 3235 | 3235 | ##)] |
| 3236 | }}}{{{#!if MacroOpen!=-1 | |
| 3237 | {{{#!if MacroClose=input.substring(MacroOpen).indexOf(")]") | |
| 3238 | }}}{{{#!if MacroClose!=-1 | |
| 3239 | {{{#!if RubyRaw=input.substr(MacroOpen,MacroClose), Comma1 = RubyRaw.indexOf(',ruby='), Comma2 = RubyRaw.substr().indexOf(',color='), Text = RubyRaw.substring(6,Comma1) | |
| 3240 | }}}{{{#!if Comma2==-1 | |
| 3241 | {{{#!if Ruby = RubyRaw.substring(Comma1+6,MacroClose) | |
| 3236 | }}}{{{#!if this.MacroOpen!=-1 | |
| 3237 | {{{#!if this.MacroClose=this.input.substring(this.MacroOpen).indexOf(")]") | |
| 3238 | }}}{{{#!if this.MacroClose!=-1 | |
| 3239 | {{{#!if this.RubyRaw=this.input.substr(this.MacroOpen,this.MacroClose), this.Comma1 = this.RubyRaw.indexOf(',ruby='), this.Comma2 = this.RubyRaw.substr().indexOf(',color='), this.Text = this.RubyRaw.substring(6,this.Comma1) | |
| 3240 | }}}{{{#!if this.Comma2==-1 | |
| 3241 | {{{#!if this.Ruby = this.RubyRaw.substring(this.Comma1+6,this.MacroClose) | |
| 3242 | 3242 | }}} |
| 3243 | }}}{{{#!if Comma2!=-1 | |
| 3244 | {{{#!if Ruby = RubyRaw.substring(Comma1+6,Comma2) | |
| 3245 | }}}{{{#!if Color = RubyRaw.substr(Comma2+7,MacroClose) | |
| 3243 | }}}{{{#!if this.Comma2!=-1 | |
| 3244 | {{{#!if this.Ruby = this.RubyRaw.substring(this.Comma1+6,this.Comma2) | |
| 3245 | }}}{{{#!if this.Color = this.RubyRaw.substr(this.Comma2+7,this.MacroClose) | |
| 3246 | 3246 | }}} |
| 3247 | 3247 | }}} |
| 3248 | {{{#!if input = input.substring(0,MacroOpen)+'<ruby>'+Text+'<rt><span style="color:'+Color+'">'+Ruby+'</span></rt></ruby>'+input.substr(MacroClose+MacroOpen+2) | |
| 3248 | {{{#!if this.input = this.input.substring(0,this.MacroOpen)+'<ruby>'+this.Text+'<rt><span style="color:'+this.Color+'">'+this.Ruby+'</span></rt></ruby>'+this.input.substr(this.MacroClose+this.MacroOpen+2) | |
| 3249 | 3249 | }}} |
| 3250 | 3250 | }}} |
| 3251 | 3251 | }}} |
| 3252 | {{{#!if MacroOpen=input.indexOf("\[ruby\("), Color='' | |
| 3253 | ##)] | |
| 3254 | }}}{{{#!if MacroOpen!=-1 | |
| 3255 | {{{#!if MacroClose=input.substring(MacroOpen).indexOf(")]") | |
| 3256 | }}}{{{#!if MacroClose!=-1 | |
| 3257 | {{{#!if RubyRaw=input.substr(MacroOpen,MacroClose), Comma1 = RubyRaw.indexOf(',ruby='), Comma2 = RubyRaw.substr().indexOf(',color='), Text = RubyRaw.substring(6,Comma1) | |
| 3258 | }}}{{{#!if Comma2==-1 | |
| 3259 | {{{#!if Ruby = RubyRaw.substring(Comma1+6,MacroClose) | |
| 3260 | }}} | |
| 3261 | }}}{{{#!if Comma2!=-1 | |
| 3262 | {{{#!if Ruby = RubyRaw.substring(Comma1+6,Comma2) | |
| 3263 | }}}{{{#!if Color = RubyRaw.substr(Comma2+7,MacroClose) | |
| 3264 | }}} | |
| 3265 | }}} | |
| 3266 | {{{#!if input = input.substring(0,MacroOpen)+'<ruby>'+Text+'<rt><span style="color:'+Color+'">'+Ruby+'</span></rt></ruby>'+input.substr(MacroClose+MacroOpen+2) | |
| 3267 | }}} | |
| 3268 | }}} | |
| 3269 | 3252 | }}} |
| 3270 | ||
| 3271 | }}} | |
| 3272 | 3253 | output: {{{#!html @input@}}} |
| 3273 | 3254 | == ㅁㄴㅇㄹ == |
| 3274 | 3255 | [include(a)]''''''[include(a)][include(a)] |
| ... | ... |