User:Johan G/Template:This months newsletter: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(+ Link to subpage being preloaded)
m (Johan G moved page User:Johan G/Template:Create next newsletter to User:Johan G/Template:This months newsletter without leaving a redirect: Better name)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#ifexist:
{{#ifexist:
   <!-- Does the page the user specified already exist? -->
   <!-- Does the page specified by the user already exist? -->
   {{#if: {{{subpage-to|}}}
   {{#if: {{{subpage-to|}}}
   |{{urlencode:{{{subpage-to|}}}|WIKI}}/}}FlightGear_Newsletter_<!--
   |{{urlencode:{{{subpage-to|}}}|WIKI}}/}}FlightGear_Newsletter_<!--
Line 32: Line 32:
         |{{{year}}}
         |{{{year}}}
         |{{CURRENTYEAR}}
         |{{CURRENTYEAR}}
       }}&action=edit&preload=User:Johan_G/Template:Create_next_newsletter/Newsletter_example Create this months newsletter]}}<noinclude>
       }}&action=edit&preload=User:Johan_G/Template:This_months_newsletter/Newsletter_example Create this months newsletter]}}<noinclude>
{{Informative template|1=
{{Informative template|1=
__NOTOC__
__NOTOC__
== Goal ==
== Goal ==
If there is not already a [[FlightGear Newsletter]] for the current month, this template will show a red link which when clicked will load a FlightGear newsletter example with all the common headings, templates and categories already there.
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.
 
Adding this template to a page will automatically add [[:Category:...]] to that page.
 
{{icaution|Caution that might help prevent lost work, very complicated debugging etc...}}
 
{{inote|Note that might be helpful or lead the reader in the right direction.}}


== Usage ==
== Usage ==
  {{obr}}'''Create next newsletter''' {{!}}''subpage-to='' {{!}}''year='' {{!}}''month=''{{cbr}}
  {{obr}}'''This months newsletter''' {{!}}''subpage-to='' {{!}}''year='' {{!}}''month=''{{cbr}}


All parameters are optional
All parameters are optional
Line 60: Line 54:


== Known issues ==
== Known issues ==
Known issues and workarounds if such are known.
While it is stated that "Using this option the normal categories will not be included." they currently in fact are.


== Technical description ==
== Technical description ==
The template will preload a subpage ([[User:Johan G/Template:Create next newsletter/Newsletter example]]) to this template with a FlightGear newsletter example for the editor that clicks the link.
The template will preload a subpage ([[User:Johan G/Template:This months newsletter/Newsletter example]]) to this template with a FlightGear newsletter example for the editor that clicks the link.


== Related templates ==
== Related templates ==

Latest revision as of 17:23, 19 November 2017

This months newsletter

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

Goal

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.

Usage

{{This months newsletter |subpage-to= |year= |month=}}

All parameters are optional

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.
Using this option the normal categories will not be included.
year
Use year instead of the current year
month
Use month instead of the current month

Examples

Examples using different options.

Known issues

While it is stated that "Using this option the normal categories will not be included." they currently in fact are.

Technical description

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

Related templates