Template:BgColor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 2: Line 2:
<div style="position: fixed; z-index: -99; top: 0; left: 0; background-color: rgb({{{bg2}}}); width: 100vw; height: 68px"></div>
<div style="position: fixed; z-index: -99; top: 0; left: 0; background-color: rgb({{{bg2}}}); width: 100vw; height: 68px"></div>
<div style="position: static; top: 0; left: 0; width: 100%; height: 100%; padding: 1em 2em; font-smooth: never; -webkit-font-smoothing: none; font-family: Arial; background-color: rgb({{{bg3}}}); color: white">
<div style="position: static; top: 0; left: 0; width: 100%; height: 100%; padding: 1em 2em; font-smooth: never; -webkit-font-smoothing: none; font-family: Arial; background-color: rgb({{{bg3}}}); color: white">
{{#switch:{{lc:{{{pagetitle}}}}}
<h1>{{{title|{{FULLPAGENAME}}}}}</h1></includeonly><noinclude>
| custom      = {{#switch:{{lc:{{{customtitle}}}}}
{{Warning|Template need to be in the top!}}
| #default    = ={{{customtitle}}}= }}
| #default    = ={{#if:{{NAMESPACE}}|{{NAMESPACE}}:|}}{{PAGENAME}}= }}<noinclude></includeonly>
== Parameters ==
== Parameters ==
bg1
*bg1
 
*bg2
bg2
*bg3
 
*title
bg3
 
pagetitle
 
customtitle (IF pagetitle=custom)
</noinclude>
</noinclude>

Revision as of 14:38, 15 July 2022

Warning.pngWarning:Template need to be in the top!

Parameters

  • bg1
  • bg2
  • bg3
  • title