Difference between revisions of "Template:TitleBanner"

From EncyclopAtys

Jump to: navigation, search
Line 3: Line 3:
 
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}}}}}; -->
 
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);">
 
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;">#if {{ {{{icon|}}}| [[File:{{{icon|}}}|{{{iconsize|40}}}px]] }}</div>
+
   <div style="position:absolute; left:.5em; top:-.5em;"> [[File:{{{icon|}}}|{{{iconsize|40}}}px]] </div>
 
   <div style="<!-- position:absolute; left:4em; top:.2em; --> font-size:1.2em; font-weight:bold;  text-align:center; vertical-align: middle; color:#{{ColorAtys|group={{{palette}}}|type=dark}}; padding:.0em;text-overflow: ellipsis;">{{3DText|text={{{text}}} }}</div><!--  
 
   <div style="<!-- position:absolute; left:4em; top:.2em; --> font-size:1.2em; font-weight:bold;  text-align:center; vertical-align: middle; 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>
Line 24: Line 24:
 
|palette=tryker
 
|palette=tryker
 
|text= Template:TitleBanner }}</noinclude>
 
|text= Template:TitleBanner }}</noinclude>
 +
#if{{ {{{icon|}}}| [[File:{{{icon|}}}|{{{iconsize|40}}}px]] }}

Revision as of 11:37, 7 October 2020


Important.png
Under Construction Panel.png !!!! WIP !!!! Under Construction Panel.png
There are currently still 80 articles in preparation in the category "WIP"
Article in preparation. Please let the author finish it before you modify it.
The last editing was from Dorothée on 7.10.2020.

Parameters

  • icon an image to be used as left icon
  • iconsize: image width in pixels
  • palette: wikipAtys colour theme
  • text: The text to be displayed

Usage

{{TitleBanner
|icon=<image>
|iconsize= <size>
|palette=<theme> 
|text= <title text> }}
Logo 40px.png
Template:TitleBanner
  1. if{{ | [[File:|40px]] }}