User:Johan G/Template:This months newsletter: Difference between revisions
(Created page with "{{#ifexist: <!-- Does the page the user specified already exist? --> {{#if: {{{subpage-to|}}} |{{urlencode:{{{subpage-to|}}}|WIKI}}/}}FlightGear_Newsletter_<!-- -->{{...") |
(+ Link to subpage being preloaded) |
||
Line 63: | Line 63: | ||
== Technical description == | == Technical description == | ||
The template will preload a subpage 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:Create next newsletter/Newsletter example]]) to this template with a FlightGear newsletter example for the editor that clicks the link. | ||
== Related templates == | == Related templates == |
Revision as of 12:04, 11 November 2017
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.
Adding this template to a page will automatically add Category:... to that page.
Caution Caution that might help prevent lost work, very complicated debugging etc...
Note Note that might be helpful or lead the reader in the right direction.
Usage
{{Create next 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
Known issues and workarounds if such are known.
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.
Related templates
- {{example}}