Template:OBX boilerplate html

From OLPC
Revision as of 13:20, 4 July 2007 by Xavi (talk | contribs) (testing the idea of XO boxes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Xo s.png Something to do with the XO

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: 45px; color: black; background: white;"
 | iconstyle  = default: "width: 45px; background: white; text-align: center; font-size: 14pt;"
 | icon       = default: [[Image:Xo s.jpg|40px]]
 | textstyle  = default: "font-size: 8pt; background: #EEEEEE; padding: 4pt; line-height: 1.25em;"
 | text       = default: Something to do with the '''XO'''
 }}

Sample

40px This user likes playing as OLPC France in Diplomacy.
{{{{PAGENAME}} 
  | divstyle   = "float: left; border: solid #C0C000 1px; margin: 1px;"
  | tablesytle = "width: 238px; background: #FFFFC0;"
  | iconstyle  = "width: 45px; height: 45px; background: #FFFFC0; text-align: center; font-size: 14pt;"
  | icon       = [[Image:Xo s.jpg|40px]]
  | textstyle  = "font-size: 8pt; padding: 4pt; line-height: 1.25em;"
  | text       = This user likes playing as [[OLPC France]] in '''[http://en.wikipedia.org/wiki/Diplomacy_(board_game) Diplomacy]'''.
}}