Difference between revisions of "Template:ContentBox"

From EncyclopAtys

Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
<div style="text-align:left; position:relative; left:4px; right: 4px; top:2px; border:1px solid #{{ColorAtys|group={{{palette}}}}};height:25px;
+
<div style="
background: #{{ColorAtys|type=bg|group={{{palette}}}}};
+
position:relative; left:4px; right: 4px; top:2px;
background: rgba(255, 255, 255, 0.8);
+
border:1px solid #{{ColorAtys|group={{{palette}}}}};
background: linear-gradient(to right, #{{ColorAtys|type=bg|group={{{palette}}}}}, rgba(0,0,0,0));
+
height:25px;
        border: thin solid transparent;
+
background: #{{ColorAtys|type=bg|group={{{palette}}}}};
        border: thin solid #{{ColorAtys|type=bg|group={{{palette}}}}};
+
background: linear-gradient(to right, #{{ColorAtys|type=bg|group={{{palette}}}}}, #{{ColorAtys|type=light|group={{{palette}}}}});
border-bottom: thin outset #{{ColorAtys|type=dark|group={{{palette}}}}};
+
border: thin solid #{{ColorAtys|type=bg|group={{{palette}}}}};
color: #{{ColorAtys|type=fg|group={{{palette}}}}};
+
border-bottom: thin outset #{{ColorAtys|type=dark|group={{{palette}}}}};
font-weight: bold;
+
color: #{{ColorAtys|type=fg|group={{{palette}}}}};
font-size: 1.25em;
+
font-weight: bold;
text-align: center;
+
font-size: 1.25em;
text-shadow: #{{ColorAtys|type=light|group={{{palette}}} -0.1em -0.1em 0.2em, #{{ColorAtys|type=dark|group={{{palette}}} 0.1em 0.1em 0.2em;
+
text-align: center;
 
">
 
">
 
<div style="position:absolute; left:5px; top:-5px;">[[File:{{{image}}}|38px|link=]]</div>
 
<div style="position:absolute; left:5px; top:-5px;">[[File:{{{image}}}|38px|link=]]</div>
<div style="position:absolute; left:40px; top:2px;"><h2 {{#if:{{{id|}}} | id="{{{id}}}Head"| }} style="margin:0; border-bottom:0; font-size:120%; font-weight:bold; text-align:left; color:#{{ColorAtys|type=dark|group={{{palette}}}}}; padding:.15em .4em;">{{{title}}}</h2></div></div>
+
<div style="position:absolute; left:40px; top:2px; right:0px"><h2 {{#if:{{{id|}}} | id="{{{id}}}Head"| }} style="margin:0; border-bottom:0; font-size:120%; font-weight:bold; text-align:left; padding:.15em .4em;
 +
text-shadow: #{{ColorAtys|type=light|group={{{palette}}}}} -0.1em -0.1em 0.2em, #{{ColorAtys|type=dark|group={{{palette}}}}} 0.1em 0.1em 0.2em;">{{{title}}}</h2></div></div>
 
|-
 
|-
 
|<div {{#if:{{{id|}}}|id="{{{id}}}"|}} style="padding-left:10px; padding-bottom:5px; padding-top:0px;">
 
|<div {{#if:{{{id|}}}|id="{{{id}}}"|}} style="padding-left:10px; padding-bottom:5px; padding-top:0px;">
Line 35: Line 36:
 
}}
 
}}
 
</pre>
 
</pre>
 
+
==Sample==
 +
<pre>
 +
{|width="100%"
 +
!{{ContentBox
 +
|title=Title
 +
|id=none
 +
|image=dummy.png
 +
|content=Any content
 +
|link=Somewhere
 +
|palette=fyros
 +
}}
 +
|}
 +
</pre>
 +
{|width="100%"
 +
!{{ContentBox
 +
|title=Title
 +
|id=none
 +
|image=dummy.png
 +
|content=Any content
 +
|link=Somewhere
 +
|palette=fyros
 +
}}
 +
|}
 
[[Category:Formatting templates|{{PAGENAME}}]]
 
[[Category:Formatting templates|{{PAGENAME}}]]
 
[[Category:Mainpage templates|{{PAGENAME}}]]
 
[[Category:Mainpage templates|{{PAGENAME}}]]
  
 
</noinclude>
 
</noinclude>

Latest revision as of 17:48, 1 July 2018

de:Template:ContentBox
en:Template:ContentBox
es:Template:ContentBox
fr:Template:ContentBox
ru:Template:ContentBox
 
UnderConstruction.png
Translation to review
Don't blame the contributors, but come and help them 😎

Reference text ( Maintained text, used as reference ) :
Notes: (Zorroargh, 2018-07-01)

Usage

{{ContentBox
|title=
|id=
|image=
|content=
|link=
|palette=
}}

Sample

{|width="100%"
!{{ContentBox
|title=Title
|id=none
|image=dummy.png
|content=Any content
|link=Somewhere
|palette=fyros
}}
|}
Dummy.png

Title

Any content

Somewhere