« Module:Langue » : différence entre les versions

Contenu supprimé Contenu ajouté
Zebulon84 (discuter | contributions)
langue : ajout paramètre "class", pour ajouter une class au span - destiné aux modèles, pas pour l'espace principal
Zebulon84 (discuter | contributions)
langue : correction bug trans (foutu gsub qui retourne deux valeurs)
Ligne 192 :
-- Translittération.
if ( args.trans or '' ) ~= '' then
local trans = args.trans:gsub( "^''([^'].*[^'])''$", "%1" )
html:wikitext( " (''" )
:tag( 'span' )
Ligne 197 ⟶ 198 :
:attr( 'lang', code .. '-Latn' )
:attr( 'dir', 'ltr' )
:wikitext( args.trans:gsub( "^''([^'].*[^'])''$", "%1" ) )
:done()
:wikitext( "'')" )
Ce document provient de « https://fr.wikipedia.org/wiki/Module:Langue ».