Template:Changelogs: Difference between revisions
Jump to navigation
Jump to search
Red Leader (talk | contribs) (More playing around) |
Red Leader (talk | contribs) (Template fix and add doc) |
||
Line 1: | Line 1: | ||
<includeonly>{| style="width: 100%; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa" | <includeonly>{| style="width: 100%; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa" | ||
{{# | {{#if: {{{prev|}}} | ||
| | | {{!}} ← [[Changelog {{{prev|}}}|Previous changelog]] | ||
| | | | ||
}} | }} | ||
| style="text-align: right" | [[Changelog {{{next|}}}|Next changelog]] → | | style="text-align: right" | [[Changelog {{{next|}}}|Next changelog]] → | ||
|}</includeonly><noinclude>[[Category: | |}</includeonly><noinclude>{{Informative template|1= | ||
__NOTOC__ | |||
== 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 == | |||
{{obr}}'''changelogs'''{{!}}''prev=''{{!}}next={{cbr}} | |||
; prev : Optional previous changelog version. This is optional because there is no changelog pages before FG 2.10. | |||
; next : Next changelog version. | |||
== Exmaples == | |||
<nowiki>{{changelogs|next=2.12}}</nowiki> | |||
{{changelogs|next=2.12}} | |||
<nowiki>{{changelogs|prev=2016.3|next=2017.1}}</nowiki> | |||
{{changelogs|prev=2016.3|next=2017.1}} | |||
}} | |||
[[Category:Navigation templates]] | |||
</noinclude> |
Revision as of 10:18, 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.10.
- next
- Next changelog version.
Exmaples
{{changelogs|next=2.12}}
Next changelog → |
{{changelogs|prev=2016.3|next=2017.1}}
← Previous changelog | Next changelog → |