Help:Howto/Update info when new version is released: Difference between revisions

From Miranda NG
Jump to navigation Jump to search
("Editing News page" outdated -> hidden)
(→‎Creating Changelog/: example updated)
Line 49: Line 49:


<pre style="overflow:auto;">
<pre style="overflow:auto;">
<noinclude>{{VersionInfo
<noinclude>{{PageLang|en}}{{VersionInfo
| en
| version=0.94.6
| version=0.94.6
| revision=2453
| released=5 November 2013
| released=5 November 2013
}}{{Languages/Changelogs|0.94.6}}</noinclude>
}}{{Languages/Changelogs|0.94.6}}</noinclude>
Line 60: Line 60:
* ...
* ...
</pre>
</pre>


== Updating [[Changelog]] page ==
== Updating [[Changelog]] page ==
Add the new version to the list of released versions. Use previous entries as example.
Add the new version to the list of released versions. Use previous entries as example.
[[Category:Howto]]
[[Category:Howto]]

Revision as of 13:16, 22 July 2014

Version numbers

Update version numbers in Template:StableVersion (new stable build) and Template:CurrentVersion (next current/development version).


Editing News page

<spoiler show="outdated section" hide="collapse">

These instructions are given using the English section as an example. To start updating info in other language, please use the language bar on the News page to switch to its corresponding version.

The News page consists of content transcluded from Changelog/* pages and is in its turn transcluded into Main Page. Thus it undergoes two types of changes:

Adding news

To make an announcement about new version release you need to add a link to Changelog/<new_stable_version_No> page. The easiest way to do this is to make a copy of the previous entry and change the date and version number in it. Here's what a typical release announcement entry looks like:

{{News|title=New stable version is {{Version|en|0.94.6}}
|author=watcher
|date=2013-11-05
|content={{:Changelog/0.94.6}}
}}

This new entry should go first, i. e. right after the following code:

{{#switch: {{BASEPAGENAME}} 
  | Main pages
  | Main Page =
  | #default = {{Languages/News}}__NOTOC__
}}

Hiding old news

Old pieces of news can be hidden to prevent Main Page from being too long. This is obtained by moving the code

{{#switch: {{BASEPAGENAME}} 
  | Main pages
  | Main Page =
  | #default = <!-- Please, move old news into this block (if there will be more than 3 news) -->

higher, so that 2 or 3 pieces of news are left between the top of the page and this switch. </spoiler>


Creating Changelog/<new_version>

When the above described is done, you'll see the red link Changelog/<new_version> at the top of the News block on Main Page. To create the page, follow the link. Changelog/* pages have their own structure (pay attention to release date and version number):

<noinclude>{{PageLang|en}}{{VersionInfo
| version=0.94.6
| revision=2453
| released=5 November 2013
}}{{Languages/Changelogs|0.94.6}}</noinclude>
Short changelog:

* <changelog item>
* <changelog item>
* ...

Updating Changelog page

Add the new version to the list of released versions. Use previous entries as example.