Difference between revisions of "Template:Databox"

From Grid Sage Wiki
Jump to navigation Jump to search
(support unnamed parameter)
m
 
(15 intermediate revisions by 2 users 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: 27em;">
<div style="float:right; background: black; color: green; padding: 1em; min-width: 25em;">
+
<div style="padding: 1em 2em; border: 2px solid #008c00;">
<div style="padding: 1em; border: 2px solid green;">
+
<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;">/ {{{header|Data}}} /</div></div>
 
 
 
 
{{{content|{{{1}}}}}}
 
{{{content|{{{1}}}}}}
 
<div style="float: right; margin: 0.3em 0.5em 0 0;"><div style="position:absolute; background: black; padding: 0 0.25em;"> X </div></div>
 
<div style="float: right; margin: 0.3em 0.5em 0 0;"><div style="position:absolute; background: black; padding: 0 0.25em;"> X </div></div>
 
</div>
 
</div>
</div></includeonly>
+
</div></includeonly><noinclude>
<noinclude>
 
 
Utility template for making Cogmind-style data boxes.
 
Utility template for making Cogmind-style data boxes.
== Usage ==
 
<nowiki>
 
{{Databox|content goes here}}
 
</nowiki>
 
 
== Example ==
 
== Example ==
{{Databox|content goes here}}
+
{{Databox|content=
 +
  {{Dataheader|Overview}}
 +
  {{Datum|Rating|10}}
 +
}}
 +
<pre>
 +
{{Databox|content=
 +
  {{Dataheader|Overview}}
 +
  {{Datum|Rating|10}}
 +
}}
 +
</pre>
 +
{{Clear}}
 +
----
 +
{{Databox|float=left|content=
 +
  {{Dataheader|Overview}}
 +
  {{Datum|Rating|10}}
 +
}}
 +
<pre>
 +
{{Databox|float=left|content=
 +
  {{Dataheader|Overview}}
 +
  {{Datum|Rating|10}}
 +
}}
 +
</pre>
 +
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 03: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}}
}}