Template:Changelogs: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Start some experimentation)
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly>{| style="width: 100%; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa"
 
{{#if: {{{prev|}}}
--><hr>
| {{!}} ← [[Changelog {{{prev|}}}|Previous changelog]]
<div style="align: center">
{| style="width: 50%; text-align: center"
{{#ifeq: {{{prev|}}}
|2.10
|
|
|  | {{#ifeq: {{{prev|}}} | 2.10 | | [[Changelog {{{prev|}}}|{{{prev}}}]]
  | ← previous changelog
}}
}}
| [[Changelog {{{this|}}}|{{{this}}}]]
| style="text-align: right" | [[Changelog {{{next|}}}|Next changelog]]
| next changelog →
|}</includeonly><noinclude>{{Informative template|1=
| [[Changelog {{{next|}}}|{{{next}}}]]
__NOTOC__
|}
== Goal ==
</div>
This template adds a navigation bar to the previous and next changelogs at the top of the page. It is to be used on changelog pages.
<hr><!--


--></includeonly><noinclude>
== Usage ==
{{obr}}'''changelogs'''{{!}}''prev=''{{!}}next={{cbr}}


; prev : Optional previous changelog version. This is optional because there is no changelog pages before FG 2.4.


; next : Next changelog version.


{{Changelogs|prev=2.10|this=2016.4|next=2017.1}}
== Exmaples ==
<nowiki>{{changelogs|next=2.6.0}}</nowiki>
{{changelogs|next=2.6.0}}


[[Category:Undocumented templates]]
<nowiki>{{changelogs|prev=2016.3|next=2017.1}}</nowiki>
{{changelogs|prev=2016.3|next=2017.1}}
 
}}


[[Category:Navigation templates]]
</noinclude>
</noinclude>

Latest revision as of 10:20, 27 November 2016

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

Goal

This template adds a navigation bar to the previous and next changelogs at the top of the page. It is to be used on changelog pages.

Usage

{{changelogs|prev=|next=}}
prev
Optional previous changelog version. This is optional because there is no changelog pages before FG 2.4.
next
Next changelog version.

Exmaples

{{changelogs|next=2.6.0}}
Next changelog
{{changelogs|prev=2016.3|next=2017.1}}
Previous changelog Next changelog