Template:Whatsnew: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
Tels (talk | contribs)
fixup
Tels (talk | contribs)
add conditional version links
Line 1: Line 1:
<noinclude>
<noinclude>
{{template-help|name=editing|sort=Whatsnew}}
This template displays a "See also" section with links to other changelogs. Also:{{template-help|name=editing|sort=Whatsnew}}
</noinclude>
</noinclude>
<includeonly>
<includeonly>
== See also ==
<!-- each of these lines only displays if the page name is NOT the same as the one we show,
    so we suppress v1.02 on the v1.02 changelog page automatically. Add more lines for each
    release on top.-->
{{#ifeq: {{PAGENAME}} | What's new in TDM 1.03 | | [[What's new in TDM 1.03]] }}
{{#ifeq: {{PAGENAME}} | What's new in TDM 1.02 | | [[What's new in TDM 1.02]] }}
{{#ifeq: {{PAGENAME}} | What's new in TDM 1.01 | | [[What's new in TDM 1.01]] }}
* [http://thedarkmod.com/downloads.php Download TDM]
[[Category:What's New|{{{sort|{{PAGENAME}}}}}]]
[[Category:What's New|{{{sort|{{PAGENAME}}}}}]]
</includeonly>
</includeonly>

Revision as of 06:37, 11 June 2010

This template displays a "See also" section with links to other changelogs. Also:

This template sorts the including article into the right Whatsnew category.

Usage

Include this template at the bottom of editing-related articles like so:

{{editing}}

Parameters

The sort parameter for this template influences the place where the article will be sorted in the category:

Example Description
{{editing}} default sorting order based on article name
{{editing|sort=Doors}} an article named "Creating a Door" goes under "D" (specifically "Doors")