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

Jump to navigation Jump to search
Better name; Some cleanup
(+ Link to subpage being preloaded)
(Better name; Some cleanup)
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 ==

Navigation menu