Difference between revisions of "Template:Databox"

From Grid Sage Wiki
Jump to navigation Jump to search
(adjust margin)
(support title field)
Line 2: Line 2:
 
<div class="databox" style="float:right; background: black; color: green; margin: 0 0 0.5em 0.5em; padding: 1em; width: 25em;">
 
<div class="databox" style="float:right; background: black; color: green; margin: 0 0 0.5em 0.5em; padding: 1em; width: 25em;">
 
<div style="padding: 1em 2em; border: 2px solid green;">
 
<div style="padding: 1em 2em; border: 2px solid green;">
<div style="text-align: center; margin-top: -1.8em;"><div style="display:inline-block; background: black;">/ {{{header|Data}}} /</div></div>
+
<div style="text-align: center; margin-top: -1.8em;"><div style="display:inline-block; background: black;">/ {{{title|Data}}} /</div></div>
  
 
{{{content|{{{1}}}}}}
 
{{{content|{{{1}}}}}}

Revision as of 05:07, 5 June 2015

Utility template for making Cogmind-style data boxes.

Usage

{{Databox|content=
  {{Dataheader|Overview}}
  {{Datum|Rating|6}}
}}

Example

/ Data /
Overview
Rating
6
X