[Wikipedia-l] Including parametrized snipplets

tarquin tarquin at planetunreal.com
Sat May 17 18:35:40 UTC 2003


Axel Boldt wrote:

>--- Jens Frank <JeLuF at gmx.de> wrote:
>
>  
>
>>There would be another namespace
>>for HTML-Snipplets. Those snipplets can contain variables, e.g.
>>enclosed by %%. A snipplet might be a piece of code to include an
>>image with a label, it might be a table, or a boilerplate text. 
>>    
>>
>>The snipplet
>>ImageFloatingRight 
>>might perhaps look like this:
>>
>><div style="float: right">
>>[[Image:%%Image%%]]<BR>
>><center>
>>''%%Label%%''
>></center>
>></div>

Yuck. Please can we use CSS for this sort of thing?

The best HTML output would be:

<DIV  class="imagefloatright>
<IMG src="foo">
<p>caption</p>
</DIV>

float the div, center the P within it and apply character formatting
such as bold italic:

div.imagefloatright { float:right /* maybe put it on a grey background 
or a border */ }
div.imagefloatright p { /* nice character formatting */ }














More information about the Wikipedia-l mailing list