Template:tweets-box
From Homestar Runner Wiki
(Difference between revisions)
(switch to new tweets-box template) |
(consolidate content body into one; pick header and footer based on variable) |
||
| Line 2: | Line 2: | ||
-->{{#setvar:inMainPage|{{#ifeq:{{PAGENAME}}|@StrongBadActual|1|0}}}}<!-- | -->{{#setvar:inMainPage|{{#ifeq:{{PAGENAME}}|@StrongBadActual|1|0}}}}<!-- | ||
| - | -->{{#switch:{{#var:inMainPage}}|0= | + | |
| + | /* pick header depending on which page we're on: */ | ||
| + | -->{{#switch:{{#var:inMainPage}} | ||
| + | |0= | ||
<div style="text-align:center;float: right; margin: 0 0 1em 1em;"> | <div style="text-align:center;float: right; margin: 0 0 1em 1em;"> | ||
<table cellpadding="3" cellspacing="0" style="border: 1px solid #000;"> | <table cellpadding="3" cellspacing="0" style="border: 1px solid #000;"> | ||
<tr><td style="border-bottom:1px solid; background:#ddf">'''[[@StrongBadActual]]'''</td> | <tr><td style="border-bottom:1px solid; background:#ddf">'''[[@StrongBadActual]]'''</td> | ||
<tr><td> | <tr><td> | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
|1= | |1= | ||
<center> | <center> | ||
| Line 25: | Line 15: | ||
<tr><td colspan={{#var:pageCount}} style="border-bottom:1px solid; background:#ddf; text-align:center">'''Tweet Archives'''</td></tr> | <tr><td colspan={{#var:pageCount}} style="border-bottom:1px solid; background:#ddf; text-align:center">'''Tweet Archives'''</td></tr> | ||
<tr> | <tr> | ||
| + | }} | ||
{{tweets-box-year|2023|{{#var:inMainPage}}}} | {{tweets-box-year|2023|{{#var:inMainPage}}}} | ||
{{tweets-box-year|2022|{{#var:inMainPage}}}} | {{tweets-box-year|2022|{{#var:inMainPage}}}} | ||
| Line 35: | Line 26: | ||
{{tweets-box-year|2015|{{#var:inMainPage}}}} | {{tweets-box-year|2015|{{#var:inMainPage}}}} | ||
{{tweets-box-year|2014|{{#var:inMainPage}}}} | {{tweets-box-year|2014|{{#var:inMainPage}}}} | ||
| + | <!-- | ||
| + | |||
| + | /* pick footer depending on which page we're on: */ | ||
| + | -->{{#switch:{{#var:inMainPage}} | ||
| + | |0= | ||
| + | </td></tr> | ||
| + | </table> | ||
| + | </div> | ||
| + | |1= | ||
</tr></table> | </tr></table> | ||
</center> | </center> | ||
