Difference between revisions of "Template:Databox"

From Grid Sage Wiki
Jump to navigation Jump to search
(Change text and border color. Add float parameter.)
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly
 
<includeonly
><div class="databox" style="float:{{{float|right}}}; background: black; color: #00b200; margin: 0 0 0.5em 0.5em; padding: 1em; width: 25em;">
+
><div class="databox" style="float:{{{float|right}}}; background: black; color: #00b200; margin: 0 0 0.5em 0.5em; padding: 1em; width: 27em;">
 
<div style="padding: 1em 2em; border: 2px solid #008c00;">
 
<div style="padding: 1em 2em; border: 2px solid #008c00;">
 
<div style="text-align: center; margin-top: -1.8em;"><div style="display:inline-block; background: black; text-transform: uppercase; letter-spacing: 0.5em;; padding-left: 0.5em;">/{{{title|Data}}}/</div></div>
 
<div style="text-align: center; margin-top: -1.8em;"><div style="display:inline-block; background: black; text-transform: uppercase; letter-spacing: 0.5em;; padding-left: 0.5em;">/{{{title|Data}}}/</div></div>
Line 11: Line 11:
 
{{Databox|content=
 
{{Databox|content=
 
   {{Dataheader|Overview}}
 
   {{Dataheader|Overview}}
   {{Datum|Rating|6}}
+
   {{Datum|Rating|10}}
 
}}
 
}}
 
<pre>
 
<pre>
 
{{Databox|content=
 
{{Databox|content=
 
   {{Dataheader|Overview}}
 
   {{Dataheader|Overview}}
   {{Datum|Rating|6}}
+
   {{Datum|Rating|10}}
 
}}
 
}}
 
</pre>
 
</pre>
Line 23: Line 23:
 
{{Databox|float=left|content=
 
{{Databox|float=left|content=
 
   {{Dataheader|Overview}}
 
   {{Dataheader|Overview}}
   {{Datum|Rating|6}}
+
   {{Datum|Rating|10}}
 
}}
 
}}
 
<pre>
 
<pre>
 
{{Databox|float=left|content=
 
{{Databox|float=left|content=
 
   {{Dataheader|Overview}}
 
   {{Dataheader|Overview}}
   {{Datum|Rating|6}}
+
   {{Datum|Rating|10}}
 
}}
 
}}
 
</pre>
 
</pre>
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 04:04, 23 January 2020

Utility template for making Cogmind-style data boxes.

Example

/Data/
Overview
Rating
10
X
{{Databox|content=
  {{Dataheader|Overview}}
  {{Datum|Rating|10}}
}}

/Data/
Overview
Rating
10
X
{{Databox|float=left|content=
  {{Dataheader|Overview}}
  {{Datum|Rating|10}}
}}