Modifications

Sauter à la navigation Sauter à la recherche
458 octets ajoutés ,  12 août 2015 à 18:27
argument index correction
p = {}

function p.genIndication(code, nom, classe_css)

local html = mw.html.create( '' )

html:tag( 'span' )
:addClass( classe_css )
:wikitext( '(' )
:tag( 'abbr' )
:addClass( 'abbr' )
:attr( 'title', nom )
:wikitext( code )
:done()
:wikitext( ')' )
:done()
:wikitext( texte )

return tostring(html)
end

function p.indication(frame)
return p.genIndication(frame.args[1], frame.args[2], frame.args[3])
end

return p
Utilisateur anonyme

Menu de navigation