Class: MediaWikiTemplateHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/mediacloth/mediawikitemplatehandler.rb

Instance Method Summary collapse

Instance Method Details

#included_template(name, parameters) ⇒ Object



3
4
5
6
# File 'lib/mediacloth/mediawikitemplatehandler.rb', line 3

def included_template(name, parameters)
    serialized_parameters = "|" + parameters.join('|') if parameters and !parameters.empty?
    "{{#{name}#{serialized_parameters}}}"
end