Submitted: 71. Using models

Article submitted
-----------------

The article "71. Using models" is submitted for publication.
You are invited to review it and to give your opinion
in the forum linked to it. It is available at the address:
http://www.spip.net/ecrire/?exec=articles&id_article=3512

** 71. Using models **
by mortimer, Paolo

SPIP 1.9.1 introduces models.

What is a model? It is a mini SPIP template defining an HTML fragment that
can be easily inserted in other templates or — and this is the main
novelty — in the text of an article.

The system of models has been inspired by Wikipedia template messages and
offers new features to the webmasters and site authors.

Models are an extension of the classic SPIP shortcuts for images and
documents: and . These shortcuts now use these models:
dist/modeles/img.html and dist/modeles/doc.html.

Treating these shortcuts as models has extended their syntax. In addition
to the alignment parameter (, or ), you can now also specify a generic
class parameter that corresponds (...)