Template:Icon

From Apache OpenOffice Wiki
Revision as of 18:02, 23 May 2009 by Dominique Pautrel (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
[[Image:{{{1}}}.png|{{{3}}}px]]


This template (will try to) use the ParserFunctions extension.

I see no reason for that I couldn't work. So you can :

  • Help me.
  • Be patient.
  • Explain briefly why I could never be valid. or make me discover another existing simple syntax for this possibility.

Help

This template (will) use three (numbered=default) parameters :

1. Module 
Seven values available
2. Position 
Mapping
Nine values from 1 to 9
From Top Left
To bottom Right
1 2 3
4 5 6
7 8 9
3. Size in pixels 
Optional, thus in third position. Max size if ignored.


Example wished in a cell


If a was a working template...
2nd Parameter: Position. Mapping: Call Result of the template :
Nine values from 1 to 9
From Top Left
To bottom Right
1 2 3
4 5 6
7 8 9
Code :
{{Icon|Calc|3|40}}
Calc.png

The result is now a 40 pixels floating Calc icon, at the top right of the cell...


{{Icon|Base|3|80}}

(Will) Give a floating icon for Base, 80 pixel sized, top right aligned :


Base.png
Personal tools