Module:Texte
Aller à la navigation
Aller à la recherche
Exemples d'utilisation : Modèle:Modifications récentes Modèle:Ligne de liste JCC.
local p = {} function p.ouiparmi( frame ) if mw.ustring.find(frame.args[1], "oui", 1, true) ~= nil then return "oui" end return "non" end function p.pluscourt( frame ) if mw.ustring.len( frame.args[1] ) >= 22 then return mw.ustring.sub( frame.args[1], 1, 22 ) .. '…' else return frame.args[1] end end function p.donneelement( frame ) return mw.text.split( frame.args[1], ", ", true )[tonumber(frame.args[2])] end return p