Difference between revisions of "Template:Main page banner"
From MHWiki
(Update to add upcoming event field, make upcoming and current optional) |
m (fix whitespace) |
||
| Line 1: | Line 1: | ||
<includeonly>{| width="100%" border="0" cellspacing="10" cellpadding="10" | <includeonly>{| width="100%" border="0" cellspacing="10" cellpadding="10" | ||
| valign="top" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; padding:5px; background-color:#fcfcfc; border:5px solid #ff80ed; width:100%; height:50%; border-left: 20px solid #ff80ed; border-right: 20px solid #ff80ed;" | '''New Content and Current Event''' | | valign="top" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; padding:5px; background-color:#fcfcfc; border:5px solid #ff80ed; width:100%; height:50%; border-left: 20px solid #ff80ed; border-right: 20px solid #ff80ed;" | '''New Content and Current Event''' | ||
| − | {{if|{{{event_upcoming|}}}|· }}{{if|{{{event_upcoming|}}}|[[{{{event_upcoming}}}]] {{Superscript | text = Soon!}} }}{{if|{{{event_current|}}}| · }}{{if|{{{event_current|}}}|[[{{{event_current}}}]]{{Superscript | text = Current!}} }} | + | {{if|{{{event_upcoming|}}}|· }}{{if|{{{event_upcoming|}}}|[[{{{event_upcoming}}}]] {{Superscript | text = Soon!}} }}{{if|{{{event_current|}}}| · }}{{if|{{{event_current|}}}|[[{{{event_current}}}]] {{Superscript | text = Current!}} }} |
· [[{{{event_recent1|}}}]] ''<span style="color:red; font-size:80%; position: relative; bottom:4px;">Recent!</span>'' · [[{{{event_recent2|}}}]] ''<span style="color:red; font-size:80%; position: relative; bottom:4px;">Recent!</span>'' | · [[{{{event_recent1|}}}]] ''<span style="color:red; font-size:80%; position: relative; bottom:4px;">Recent!</span>'' · [[{{{event_recent2|}}}]] ''<span style="color:red; font-size:80%; position: relative; bottom:4px;">Recent!</span>'' | ||
|- | |- | ||
Revision as of 04:52, 7 May 2025
{{Main page banner
| event_upcoming = next event with announced start date (blank if none)
| event_current = latest event or new content page (blank if none)
| event_recent1 = move current here
| event_recent2 = move recent1 here
}}
Live example (edit then view page preview to preview changes):
| New Content and Current Event
· SoonThing Soon! · CurrentThing Current! · move current here Recent! · move recent1 here Recent! |