Article publicat
----------------
L'article "|extraire_attribut" ha estat validat per merce.
** |extraire_attribut **
per merce
el diumenge 11 d'abril de 2010
El filtre |extraire_attributnom_attribut (a partir d’SPIP 1.8.2) permet
recuperar l’atribut especificat d’un tag html. Per exemple: si
l’etiqueta #LOGO_SITE_SPIP genera el codi html <img width="353"
height="120" style="height: 120px; width: 353px;" class="spip_logos"
alt="SPIP" src="local/cache-vignettes/L353xH120/siteon0-1de24.jpg"/>,
llavors: [(#LOGO_SITE_SPIP||extraire_attributsrc)] retornarà
local/cache-vignettes/L353xH120/siteon0-1de24.jpg
[(#LOGO_SITE_SPIP||extraire_attributwidth)] retornarà 353
[(#LOGO_SITE_SPIP||extraire_attributstyle)] retornarà height: 120px;
width: (...)