Module talk:Taxobox-briques
Appearance
This module gives functions that build the HTML/wikitext elements of a taxobox (which is an infobox).
It gives access to opening/closing a such infobox, adding titles, subtitles, tables…
The goal is to have a strict separation beetween code (how to treat informations in order to build a taxobox), data (how these elements are "translated" into french texts and wikilinks) and infobox display style (the way the infobox is generated in term of wikitext+HTML+CSS+JS).
This module don't depends on any other module.
Note: some building code is still present in other modules and should be moved here. Some other simple codes should also be added here (such as p /p pairs which are handle in other modules).
List of functions
[edit]- function z.t_debut(style, titre): opens a "box". Style is the CSS style to use, and titre the title.
- function z.t_bloc(texte)
- function z.t_texte(texte, centre)
- function z.t_ligne_mixte_champs(texte)
- function z.t_ligne_mixte_valeur(texte)
- function z.t_ligne_mixte(rang, nom)
- function z.t_ligne_unique(contenu)
- function z.t_sous_titre(texte): put a "real" sub-title. Needs a dedicated JS function in personnal or global .js.
- function z.t_end(): closes a "box".
- function z.t_erreur(texte, cattitle): generates an error box with given text, and set the given category.