User:Skybike/Template:This months newsletter

From FlightGear wiki
< User:Skybike
Revision as of 16:01, 3 June 2018 by Skybike (talk | contribs) (Sandbox experiments, see User:Johan G/Template:This months newsletter)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This months newsletter

The following template description is not displayed when the template is inserted in an article.

This sandbox experiment is based on User:Johan G/Template:This months newsletter.


This template will link to the current FlightGear Newsletter. If it does not yet exist this template will show a red link that when clicked will load a FlightGear Newsletter example with common headings, templates and categories already there, as well as some helpful comments for the editor.


{{:User:Skybike/Template:This months newsletter |date= |alttext1= |linktext1= | alttext2= |linktext2= |subpage-to= |lang= }}

All parameters are optional

Default is current date. But you can choose a different date in the form YYYY-MM (like 2021-03).
linktext1, linktext2
Alternative name for the blue link to an existing Newsletter ("linktext1", by default "This months newsletter") and to not existing Newsletter ("linktext2", defaults to "Create this months newsletter")

Advanced Usage

alttext1, alttext2
Explanatory black text followed by the blue link. It shows up as "alttext1 linktext1" and both of them are empty by default. You will find alttext1 = Help us write the | linktext1 = Next newsletter at quite some places around this wiki
Create the next newsletter as a subpage to subpage-to instead of as a separate page. Can be used for sandbox experiments as a subpage to your user page.
This template has {{LangSwitch}} - overwrite that at subpages by entering en, de, fr, es, ca,...


{{This months newsletter}}

This months newsletter

(if it exists: This months newsletter and if not Create this months newsletter

In {{newsletter-header}} we would use alttext= and linktext= to replace the default text:

{{This months newsletter|alttext1=Please help us write|linktext1=the coming edition!|linktext2=Create the coming Newsletter edition}}

Please help us write the coming edition!

On translated pages (like De/Newsletter) you can link to last months english newsletter via:

{{This months newsletter |date=last month |lang= en |alttext1=Add your article to the |linktext2=English newsletter |linktext2=Create English  newsletter}}

Add your article to the English newsletter

Technical notes

The template will preload a subpage (User:Skybike/Template:This months newsletter/Newsletter example) to this template with a FlightGear newsletter example for the editor that clicks the link. Visit to get more information.

You can use the following parameters on the preload subpage:

  • $1 for month (01,02,...12)
  • $2 for Year (like 2021).
  • $3 for current release YYYY.V, now 2020.3. See {{current release}} as source.

Define a subpage with this template (here to [[User:DeleteMe/FlightGear Newsletter March 2021]])

{{This months newsletter|subpage-to=User:DeleteMe}}

Create this months newsletter

Related templates