Template:tweets-header
From Homestar Runner Wiki
(Difference between revisions)
(prevent category on Template:tweets-year) |
(format conditional statements for clarity; add monthnav option to be used in 2018 tweets page) |
||
| Line 1: | Line 1: | ||
| - | <includeonly>{{tweets-box}}{{#if:{{{month|}}}|{{tweets-box-monthly|year={{{year}}}|nocat={{#if:{{{month|}}}||true}}}}|}} | + | <includeonly>{{tweets-box}}<!-- |
| + | |||
| + | -->{{#if:{{{monthnav|{{{month|}}}}}}<!-- /* allow {{{monthnav}}} to force use of {{tweets-box-monthly}}; {{{month}}} always shows the template */ | ||
| + | -->|{{tweets-box-monthly|year={{{year}}}|nocat={{#if:{{{month|}}}||true}}}}<!-- | ||
| + | -->|}}<!-- /*end {{#if:{{{monthnav|}}} */ | ||
| + | |||
| + | --> | ||
This is a list of all the [[@StrongBadActual]] Tweets from {{#if:{{{month|}}}|{{{month}}} {{b}}|}}{{{year}}}. | This is a list of all the [[@StrongBadActual]] Tweets from {{#if:{{{month|}}}|{{{month}}} {{b}}|}}{{{year}}}. | ||
{{#if:{{{month|}}}|__NOTOC__|{{toclimit|1}}}}{{clear}} | {{#if:{{{month|}}}|__NOTOC__|{{toclimit|1}}}}{{clear}} | ||
| - | {{#if:{{{month|}}}|Note: some links to other tweets may only work on the [[@StrongBadActual Tweets {{{year}}}|full year]] page.|{{#ifeq:{{NAMESPACE}}|Template||[[Category:Twitter]]}}}}</includeonly><noinclude> | + | {{#if:{{{month|}}}<!-- |
| + | -->|Note: some links to other tweets may only work on the [[@StrongBadActual Tweets {{{year}}}|full year]] page.<!-- | ||
| + | -->|{{#ifeq:{{NAMESPACE}}|Template||[[Category:Twitter]]}}<!-- | ||
| + | -->}}<!-- /*end {{#if:{{{month|}}} */ | ||
| + | |||
| + | --></includeonly><noinclude> | ||
This template serves a standard header for [[@StrongBadActual]] Tweet pages. | This template serves a standard header for [[@StrongBadActual]] Tweet pages. | ||
| Line 8: | Line 19: | ||
To use this template: | To use this template: | ||
<pre> | <pre> | ||
| - | {{tweets-header|year=<year>|[month=<month>]}} | + | {{tweets-header|year=<year>|[month=<month>]|[monthnav=true]}} |
</pre> | </pre> | ||
| - | Note that the month is optional and used only on monthly tweet pages. | + | * Note that the <code>month</code> is optional and used only on monthly tweet pages. |
| + | * <code>monthnav</code> is also optional and used when we want to force the monthly nav to be displayed | ||
It uses the following templates: | It uses the following templates: | ||
Revision as of 10:48, 10 November 2023
This template serves a standard header for @StrongBadActual Tweet pages.
Usage
To use this template:
{{tweets-header|year=<year>|[month=<month>]|[monthnav=true]}}
- Note that the
monthis optional and used only on monthly tweet pages. -
monthnavis also optional and used when we want to force the monthly nav to be displayed
It uses the following templates:
- {{tweets-box}}
- {{tweets-box-monthly}}
- {{toclimit}}
