Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

User:Skybike/Template:This months newsletter

From FlightGear wiki
Jump to: navigation, search

FlightGear Newsletter November 2019

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.

If we decide to publish it I would suggest a more general name like "Template:Newsletter link" instead of "This months newsletter" as you can change the date here.

Goal

This template will link to the 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. It is multilingual and supports custom

Usage

{{:User:Skybike/Template:This months newsletter |date= |link= |create= |subpage-to= |lang= }}

All parameters are optional

date
Default is current date. But you can choose a different date in the form YYYY-MM (like 2019-11).
link, create
Alternative name for the printed link to an existing Newsletter and to not existing Newsletter (by default "FlightGear Newsletter November 2019" and "Create FlightGear Newsletter November 2019")


Advanced Usage


All parameters are optional

date=
  • Default is now. More expressions are 2019-6, January 2020, next month, last month, +1 month, +8 month, +8 months, -8 days,,...
  • Only english therms are accepted, März 2018 or nächster Monat do NOT work, nowhere.


link= / create=
  • Shown as blue link text linking to an existing newsletter (link=) and creating a new one (create=):
    • "link=abc|create=def" shows "Abc" or "Def"


  • There are optional explanatory black texts around the blue link. Both are empty by default. You can define them by a "/" slash in the way "link=black/blue/black" "Black blue black"
    • Only the first one: "Write/me" shows "Write me"
    • Both texts: "Write/me/now" shows "Write me now"
    • Only the last text: "/me/now" shows "Me now"
    • No text: "Me" shows "Me"



subpage-to
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.
lang
This template has {{LangSwitch}} - overwrite that at subpages by entering en, de, fr, es, ca,...

Examples

{{This months newsletter}}

FlightGear Newsletter November 2019

(if it exists: FlightGear Newsletter May 2017 and if not Create FlightGear Newsletter May 2000


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

{{This months newsletter|link=Please help us write/the coming edition!|create=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 |link=Add your article to the english/name |ceate=Create English  newsletter}}

Add your article to the english FlightGear Newsletter October 2019

Known issues

  • The first letter of "create=" and "link=" is always a capital letter
  • text//text and text/ does not work as you need a link text. Use text/name/text instead (or don't use link= and create= at all).
  • You can't combine the magical word "name" with other words than "create" and "read" within the blue link ("create=ab/cd name ef/gh" or "link=ab name" does not work). Type the newsletters name manually or define these words as black text using "/" slash
  • time= only works with english language, try to use international "YYYY-MM" (2018-12) whenever possible to help translators.
  • "name" and "read name" and "create name" are english codewords but have translated output. |create=bitte/create name/, um ihn zu füllen|lang=de
  • The internal wiki server may need some time (up to minutes) to index new pages. This template still shows the "create" link during that time.

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 mediawiki.org to get more information.

You can use the following parameters on the preload subpage:

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


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

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

Create FlightGear Newsletter November 2019

Related templates
http://wiki.flightgear.org/index.php?title=User:Skybike/Template:This_months_newsletter&amp%3Boldid=115797&printable=yes
wiki.flightgear.org
crawl=CC-MAIN-2019-47
26855
application/http; msgtype=response
sha1:HOA3YSGWGWYXXRL3NJBVNN63B5XXMV5Q
<urn:uuid:e611056c-f4d0-47b5-88e6-855398ba8b59>
2019-11-21T19:40:04Z
104.236.115.152
text/html
sha1:SWVVBGQUICUTTUCWITO5SNFVMVM53KDZ
<urn:uuid:8491eb4b-fb39-47df-b507-5d643ea69bca>
http://wiki.flightgear.org/index.php?title=User:Skybike/Template:This_months_newsletter&amp%3Boldid=115797&printable=yes
response
<urn:uuid:6eafe957-9612-42df-90d1-a991ebf752e7>
isPartOf: CC-MAIN-2019-47
publisher: Common Crawl
description: Wide crawl of the web for November 2019
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-133.ec2.internal
software: Apache Nutch 1.16 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.1-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: http://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/