Template:OBX boilerplate html: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (testing the idea of XO boxes)
 
m (typo in image)
Line 27: Line 27:
{|
{|
|-
|-
| {{{{PAGENAME}}
| {{XO box
| divstyle = "float: left; border: solid #C0C000 1px; margin: 1px;"
| divstyle = "float:left; border:solid #C0C000 1px; margin:1px;"
| tablesytle = "width: 238px; background: #FFFFC0;"
| tablesytle = "width:238px; background:#FFFFC0;"
| iconstyle = "width: 45px; height: 45px; background: #FFFFC0; text-align: center; font-size: 14pt;"
| iconstyle = "width:45px; height:45px; background:#FFFFC0; text-align:center; font-size:14pt;"
| textstyle = "font-size:8pt; padding:4pt; line-height:1.25em;"
| 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]'''.}}
| text = This user likes playing as [[OLPC France]] in '''[http://en.wikipedia.org/wiki/Diplomacy_(board_game) Diplomacy]'''.}}
| <pre>
| <pre>
{{XO box
{{{{PAGENAME}}
| divstyle = "float: left; border: solid #C0C000 1px; margin: 1px;"
| divstyle = "float:left; border:solid #C0C000 1px; margin:1px;"
| tablesytle = "width: 238px; background: #FFFFC0;"
| tablesytle = "width:238px; background:#FFFFC0;"
| iconstyle = "width: 45px; height: 45px; background: #FFFFC0; text-align: center; font-size: 14pt;"
| iconstyle = "width:45px; height:45px; background:#FFFFC0; text-align:center; font-size:14pt;"
| textstyle = "font-size:8pt; padding:4pt; line-height:1.25em;"
| icon = [[Image:Xo s.jpg|40px]]
| text = This user likes playing as [[OLPC France]] in '''[http://en.wikipedia.org/wiki/Diplomacy_(board_game) Diplomacy]'''.}}
| 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]'''.
}}</pre>
}}</pre>
|}
|}

Revision as of 17:26, 4 July 2007

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

Template:XO box
{{XO box 
  | 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;"
  | 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]'''.}}
}}