Difference between revisions of "Template:TitleBanner"

From EncyclopAtys

Jump to: navigation, search
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><div class="cadre"  
 
<includeonly><div class="cadre"  
style="text-align:center; vertical-align: middle;position:relative; left:0; top:0;  border:thin outset #{{ColorAtys|group={{{palette}}}|type=dark}}; height:1.3em; border-radius:.5em .5em .5em .5em;margin:.0em;text-overflow: ellipsis;
+
style="text-align:center; position:relative; left:0; top:0;  border:thin outset #{{ColorAtys|group={{{palette}}}|type=dark}}; height:2em; border-radius:.5em .5em .5em .5em;margin:.0em;text-overflow: ellipsis; background: #{{ColorAtys|type=bg|group={{{palette}}}}}; background: linear-gradient(to right, #{{ColorAtys|type=dark|group={{{palette}}}}}, #{{ColorAtys|type=bg|group={{{palette}}}}} 5%, #{{ColorAtys|type=light|group={{{palette}}}}}  50%,  #{{ColorAtys|type=dark|group={{{palette}}}}}); border: thin outset <!-- solid --> #{{ColorAtys|type=bg|group={{{palette}}}}};<!-- border-bottom: thin outset  #{{ColorAtys|type=dark|group={{{palette}}}}}; --> color: #{{ColorAtys|type=fg|group={{{palette}}}}}; box-shadow: 5px 5px 7px 0px rgba(0,0,0,0.7);">
background: #{{ColorAtys|type=bg|group={{{palette}}}}}; background: linear-gradient(to right, #{{ColorAtys|type=dark|group={{{palette}}}}}, #{{ColorAtys|type=bg|group={{{palette}}}}} 5%, #{{ColorAtys|type=light|group={{{palette}}}}}  50%,  #{{ColorAtys|type=dark|group={{{palette}}}}}); border: thin outset <!-- solid --> #{{ColorAtys|type=bg|group={{{palette}}}}};<!-- border-bottom: thin outset  #{{ColorAtys|type=dark|group={{{palette}}}}}; --> color: #{{ColorAtys|type=fg|group={{{palette}}}}}; box-shadow: 5px 5px 7px 0px rgba(0,0,0,0.7);"><!--
+
  <div style="position:absolute; left:.5em; top:-.5em;">[[File:{{{icon|Dummy.png}}}|{{{iconsize|40}}}px|link=]]</div>
-->  <div style="position:absolute; left:.5em; top:-.5em;">[[File:{{{icon|dummy.png}}}|{{{iconsize|40}}}px|link=]]</div><!--
+
  <div style="position:absolute; left:4em; top:.2em;font-size:1.2em; font-weight:bold; text-align:left; color:#{{ColorAtys|group={{{palette}}}|type=dark}}; padding:.0em;text-overflow: ellipsis;">{{3DText|text={{{text}}} }}</div><!--  
-->  <div style="position:absolute; left:4em; top: .2 em; font-size:1.2em; font-weight:bold; color:#{{ColorAtys|group={{{palette}}}|type=dark}}; padding:.0em;text-overflow: ellipsis;">{{3DText|text={{{text}}} }}</div><!--  
 
 
<div style="margin:.0em; padding:.5em;">Content</div> --> </div></includeonly>
 
<div style="margin:.0em; padding:.5em;">Content</div> --> </div></includeonly>
<noinclude>{{WIP}}
+
<noinclude>
 
== Parameters ==
 
== Parameters ==
* icon an image to be used as left icon
+
* icon an image to be used as left icon (defaults to dummy.png [[File:Dummy.png|40px]])
 
* iconsize: image size in pixels
 
* iconsize: image size in pixels
 
* palette: wikipAtys  colour theme  
 
* palette: wikipAtys  colour theme  
Line 18: Line 17:
 
|palette=<theme>  
 
|palette=<theme>  
 
|text= <title text> }}</nowiki>
 
|text= <title text> }}</nowiki>
 
+
==Example==
 +
<nowiki>{{TitleBanner
 +
|icon=logo_40px.png
 +
|palette=tryker
 +
|text=Template:TitleBanner }}</nowiki>
 
{{TitleBanner
 
{{TitleBanner
 
|icon=logo_40px.png
 
|icon=logo_40px.png
 
|palette=tryker
 
|palette=tryker
|text= <center>Template:TitleBanner</center> }}</noinclude>
+
|text=Template:TitleBanner }}
 +
{{Clear}}
 +
<nowiki>{{TitleBanner
 +
|text=Template:TitleBanner }}</nowiki>
 +
{{TitleBanner
 +
|text=Template:TitleBanner }}</noinclude>

Latest revision as of 12:47, 7 October 2020


Parameters

  • icon an image to be used as left icon (defaults to dummy.png Dummy.png)
  • iconsize: image size in pixels
  • palette: wikipAtys colour theme
  • text: The text to be displayed

Usage

{{TitleBanner
|icon=<image>
|iconsize= <size>
|palette=<theme> 
|text= <title text> }}

Example

{{TitleBanner
|icon=logo_40px.png
|palette=tryker
|text=Template:TitleBanner }}
Logo 40px.png
Template:TitleBanner


{{TitleBanner
|text=Template:TitleBanner }}
Dummy.png
Template:TitleBanner