Template:tweets-header

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(suppress monthly category on yearly pages)
(testing something)
 
(includes 7 intermediate revisions)
Line 1: Line 1:
-
<includeonly>{{tweets-box}}{{tweets-box-monthly|year={{{year}}}|nocat={{#if:{{{month|}}}||true}}}}
+
<includeonly>{{tweets-box}}<!--
-
This is a list of all the [[@StrongBadActual]] Tweets from {{#if:{{{month|}}}|{{{month}}}, {{b}}|}}{{{year}}}.
+
 
-
{{#if:{{{month|}}}|__NOTOC__|{{toclimit|1}}}}{{clear}}
+
-->{{#if:{{{monthnav|{{{month|}}}}}}<!-- /* allow {{{monthnav}}} to force use of {{tweets-box-monthly}}; {{{month}}} always shows the template */
-
[[Category:Twitter]]</includeonly><noinclude>
+
  -->|{{tweets-box-monthly|year={{{year}}}|nocat={{#if:{{{month|}}}||true}}}}<!--
 +
-->|}}<!-- /*end {{#if:{{{monthnav|}}} */
 +
 
 +
-->
 +
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}}}.{{toclimit|1}}
 +
{{#if:{{{month|}}}<!--
 +
  -->|__NOTOC__<!--
 +
  -->|{{#if:{{{transcripts|}}}||{{toclimit|1}}}}<!--
 +
-->}}{{clear}} <!-- /*end {{#if:{{{month|}}} */ -->
 +
{{#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 22:
To use this template:
To use this template:
<pre>
<pre>
-
{{tweets-header|year=<year>|[month=<month>]}}
+
{{tweets-header|year=<year>|[month=<month>]|[monthnav=true]|[transcripts=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
 +
* <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}}
 +
----
-
It uses the following templates:
+
=== See also ===
 +
This template uses the following templates:
* {{t|tweets-box}}
* {{t|tweets-box}}
* {{t|tweets-box-monthly}}
* {{t|tweets-box-monthly}}

Current revision as of 03:24, 25 November 2023

This template serves a standard header for @StrongBadActual Tweet pages.

[edit] Usage

To use this template:

{{tweets-header|year=<year>|[month=<month>]|[monthnav=true]|[transcripts=true]}}
  • Note that the month is optional and used only on monthly tweet pages.
  • monthnav is also optional and used when we want to force the monthly nav to be displayed
  • transcripts is also optional and used when we want to display the nav on a Transcripts page.

[edit] Example

{{tweets-header|year=2018|monthnav=true}}

Yields:


@StrongBadActual

2026
2025
2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014

@StrongBadActual
Tweets for 2018
December
November
October
September
August
July
June
May
April
March
February
January

Transcripts
This is a list of all the @StrongBadActual Tweets from 2018.

Contents


[edit] See also

This template uses the following templates:

Personal tools