Template:CustomHeader: Difference between revisions
Elena & Fabrice's Web
mNo edit summary
mNo edit summary
Line 1: Line 1:
<div class="custom-header" style="display:none;" data-image="{{{image|}}}" data-maintitle="{{{maintitle|Default Title}}}" data-colormaintitle="{{{colormaintitle|blue}}}" data-backgroundmaintitle="{{{backgroundmaintitle|rgba(207, 211, 222, 0.66)}}}" data-blurb="{{{blurb|}}}" data-blurbcolor="{{{blurbcolor|black}}}" data-blurbcolorbackground="{{{blurbcolorbackground|rgba(207, 211, 222, 0.66)}}}" data-blurbposition="{{{blurbposition|top:10px;left:20px}}}"></div>
<div class="custom-header" style="display:none;" data-image="{{{image|}}}" data-headertext="{{{headertext|}}}" data-colormaintitle="{{{colormaintitle|blue}}}" data-backgroundmaintitle="{{{backgroundmaintitle|rgba(207, 211, 222, 0.66)}}}" data-blurb="{{{blurb|}}}" data-blurbcolor="{{{blurbcolor|black}}}" data-blurbcolorbackground="{{{blurbcolorbackground|rgba(207, 211, 222, 0.66)}}}" data-blurbposition="{{{blurbposition|top:10px;left:20px}}}"></div>
<noinclude>
<noinclude>
This template overrides the default header image and text.
This template overrides the default header image and text.
Usage: {{CustomHeader|image=http://localhost/laussywiki/images/5/5f/Banos-de-la-Encina-Dec18-9.jpg|maintitle="Trapped in the Province of Jaén (December 2017-January 2018)"|colormaintitle=blue|backgroundmaintitle=rgba(207, 211, 222, 0.66)|blurb=Back from our [[trip to Granada and the Sierra Nevada (December 2017)]], we got trapped...|blurbcolor=black|blurbcolorbackground=rgba(207, 211, 222, 0.66)|blurbposition=bottom:150px;right:5px;font-size:8px;width:100px;text-align:left}}
Usage: {{CustomHeader|image=http://localhost/laussywiki/images/5/5f/Banos-de-la-Encina-Dec18-9.jpg|headertext="Trapped in the Province of Jaén (December 2017-January 2018)"|colormaintitle=white|backgroundmaintitle=rgba(207, 211, 222, 0.25)|blurb=Back from our [[trip to Granada and the Sierra Nevada (December 2017)]], we got trapped...|blurbcolor=black|blurbcolorbackground=rgba(207, 211, 222, 0.66)|blurbposition=bottom:150px;right:5px;font-size:8px;width:100px;text-align:left}}
Note: Use the full image URL from the File: namespace. Use blurbposition as 'top:XXpx;left:YYpx;font-size:VALUE;width:VALUE;text-align:VALUE' or 'bottom:XXpx;right:YYpx;font-size:VALUE;width:VALUE;text-align:VALUE'.
Note: Use the full image URL from the File: namespace. Use blurbposition as 'top:XXpx;left:YYpx;font-size:VALUE;width:VALUE;text-align:VALUE' or 'bottom:XXpx;right:YYpx;font-size:VALUE;width:VALUE;text-align:VALUE'.
</noinclude>
</noinclude>

Revision as of 19:53, 29 June 2025

This template overrides the default header image and text.

Usage:

Note: Use the full image URL from the File: namespace. Use blurbposition as 'top:XXpx;left:YYpx;font-size:VALUE;width:VALUE;text-align:VALUE' or 'bottom:XXpx;right:YYpx;font-size:VALUE;width:VALUE;text-align:VALUE'.