Template:OBX boilerplate html: Difference between revisions
Jump to navigation
Jump to search
(tweaked some default sizes so the image was not subsampled...) |
m (Template:XO box moved to Template:OBX boilerplate html: settling for the OBX prefix (Olpc BoXes)) |
(No difference)
|
Revision as of 16:49, 5 July 2007
The purpose of this template is to be used by all the real XO box templates as a way to factor out and reuse the most of the layout and display behavior in one single place. Other XO boxes will just invoke this template with the appropriate parameters needed, thus allowing a simple interface to both specifying new XO boxes and using them. needs to be tested and used...
Usage
{{OBX boilerplate html | divstyle = default: "float:left; border:solid silver 1px; margin: 1px;" | tablesytle = default: "width: 238px; height: 57px; color: black; background: white;" | iconstyle = default: "width: 42px; background: white; text-align: center; font-size: 14pt;" | icon = default: [[Image:Xo s.png]] | textstyle = default: "font-size: 8pt; background: #EEEEEE; padding: 4pt; line-height: 1.25em;" | text = default: Something to do with the '''XO''' }}
Sample
Template:XO box | {{XO box | divstyle = "border:solid #C0C000 1px;" | tablesytle = "background:#FFFFC0;" | iconstyle = "background:#FFFFC0;" | icon = [[Image:Xo s.png]] | textstyle = "font-size:9pt;" | text = This user likes playing as [[OLPC France]] in '''[http://en.wikipedia.org/wiki/Diplomacy_(board_game) Diplomacy]'''.}} }} |