« Modèle:Galerie » : différence entre les versions

[version non vérifiée][version non vérifiée]
Contenu supprimé Contenu ajouté
Bawolff (discuter | contributions)
Bawolff (discuter | contributions)
Ligne 167 :
==caveats and bugs==
*Maximum 200 (but if you need more, its a simple edit to this template)
*Headline (<code><nowiki>==foo==</nowiki></code>) support in your describing text is wachyconfusing ( this requires a couple minnor changescould tobe jschanged, toask fixme)
**it Assumes that your headline is a title of a tab, so doesn't display
***use alternative syntax:<code><nowiki><h2 style="display:block">foo</h2></nowiki></code> (change the 2 to the number of equal signs you'd use in normal syntax) if you want a headline
**Makes it the title of the tab using its innerHTML property (as opposed to auto-numbering)
***always use a ''title<number>''=picture_numb if you havewant ato overide other labeling of headertabs
***due to mediawiki's headline formating, this is a bad idea
***always use a ''title<number>''=picture_numb if you have a header
The max 200 tabs is a limit to this template, not the tab system, and can be expanded as needed. I don't consider that an issue. The tab title issues are problems with adapting the tabber code to the wiki. They require minnor changes to js (I should get arround to fixing them sometime soon). In the meanwhile i don't think it will be an issue.
 
Note: tab title is determined by:
#''title<tab number>=something'' parameter of template (corresponding to title attribute of containing div)
#any section headers
#InnerHTML of any titles (header/<code><nowiki><h[1-6]>'s/==some header==</nowiki></code>) in the image caption - which is bad as we have inside HTML in headers
#as last resort, automatically given a number (this is what is generally used)
[[category:Images|*]]