Template:tweets-header
From Homestar Runner Wiki
(Difference between revisions)
(format conditional statements for clarity; add monthnav option to be used in 2018 tweets page) |
(add support for transcripts parameter; add example to help with previews) |
||
| Line 6: | Line 6: | ||
--> | --> | ||
| - | This is a list of all the [[@StrongBadActual]] Tweets from {{#if:{{{month|}}}|{{{month}}} {{b}}|}}{{{year}}}. | + | This is a list of {{#if:{{{transcripts|}}}|some of|all}} the [[@StrongBadActual]] {{#if:{{{transcripts|}}}|Tweet Image and Video Transcripts|Tweets}} from {{#if:{{{month|}}}|{{{month}}} {{b}}|}}{{{year}}}. |
| - | {{#if:{{{month|}}}|__NOTOC__|{{toclimit|1}}}}{{clear}} | + | {{#if:{{{month|}}}<!-- |
| + | -->|__NOTOC__<!-- | ||
| + | -->|{{#if:{{{transcripts|}}}||{{toclimit|1}}}}<!-- | ||
| + | -->}}{{clear}} <!-- /*end {{#if:{{{month|}}} */ --> | ||
{{#if:{{{month|}}}<!-- | {{#if:{{{month|}}}<!-- | ||
-->|Note: some links to other tweets may only work on the [[@StrongBadActual Tweets {{{year}}}|full year]] page.<!-- | -->|Note: some links to other tweets may only work on the [[@StrongBadActual Tweets {{{year}}}|full year]] page.<!-- | ||
| Line 19: | Line 22: | ||
To use this template: | To use this template: | ||
<pre> | <pre> | ||
| - | {{tweets-header|year=<year>|[month=<month>]|[monthnav=true]}} | + | {{tweets-header|year=<year>|[month=<month>]|[monthnav=true]|[transcripts=true]}} |
</pre> | </pre> | ||
* Note that the <code>month</code> 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 | * <code>monthnav</code> is also optional and used when we want to force the monthly nav to be displayed | ||
| + | * <code>transcripts</code> is also optional and used when we want to display the nav on a Transcripts page. | ||
| + | |||
| + | === Example === | ||
| + | <pre> | ||
| + | {{tweets-header|year=2018|monthnav=true}} | ||
| + | </pre> | ||
| + | |||
| + | Yields: | ||
| + | ---- | ||
| + | {{tweets-header|year=2018|monthnav=true}} | ||
| + | ---- | ||
| - | + | === See also === | |
| + | This template uses the following templates: | ||
* {{t|tweets-box}} | * {{t|tweets-box}} | ||
* {{t|tweets-box-monthly}} | * {{t|tweets-box-monthly}} | ||
Revision as of 18:05, 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]|[transcripts=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 -
transcriptsis also optional and used when we want to display the nav on a Transcripts page.
Example
{{tweets-header|year=2018|monthnav=true}}
Yields:
| @StrongBadActual Tweets for 2018 |
|
December November October September August July June May April March February January |
Contents |
See also
This template uses the following templates:
- {{tweets-box}}
- {{tweets-box-monthly}}
- {{toclimit}}
