Template:Version nav: Difference between revisions
Created page with "<includeonly><div style="margin-top:1.5em; border-top:1px solid #ccc; padding-top:0.5em; font-size:90%;"> <b>Versions:</b> <DynamicPageList> category = Updates namespace = Main ordermethod = sortkey order = ascending mode = inline </DynamicPageList> </div></includeonly><noinclude> Automatic version navigation bar. Displays all pages in Category:Updates sorted by their sortkey (date). Usage (at the bottom of a version page): <pre> {{Vers..." |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><div style="margin-top:1.5em; border-top:1px solid #ccc; padding-top:0.5em; font-size:90%;"> | <includeonly> | ||
<b>Versions:</b> | <div style="margin-top:1.5em; border-top:1px solid #ccc; padding-top:0.5em; font-size:90%;"> | ||
<DynamicPageList> | |||
<div style="display:flex; justify-content:space-between;"> | |||
<!-- Previous version --> | |||
<div> | |||
{{#dpl: | |||
</DynamicPageList> | | category = Updates | ||
</div></includeonly><noinclude> | | namespace = Main | ||
| ordermethod = title | |||
| order = descending | |||
| count = 1 | |||
| titlelt = {{PAGENAME}} | |||
| format = , [[%PAGE%|← Previous: %TITLE%]], , | |||
}} | |||
</div> | |||
<!-- Next version --> | |||
<div style="text-align:right;"> | |||
{{#dpl: | |||
| category = Updates | |||
| namespace = Main | |||
| ordermethod = title | |||
| order = ascending | |||
| count = 1 | |||
| titlegt = {{PAGENAME}} | |||
| format = , [[%PAGE%|Next: %TITLE% →]], , | |||
}} | |||
</div> | |||
</div> | |||
<!-- Full list of versions, same as you already had --> | |||
<div style="margin-top:0.4em; text-align:center;"> | |||
<b>Versions:</b> | |||
<DynamicPageList> | |||
category = Updates | |||
namespace = Main | |||
ordermethod = title | |||
order = ascending | |||
mode = inline | |||
</DynamicPageList> | |||
</div> | |||
</div> | |||
</includeonly> | |||
<noinclude> | |||
Automatic version navigation bar. | Automatic version navigation bar. | ||
Shows previous/next version (by page title) and a full inline list | |||
of all pages in [[:Category:Updates]]. | |||
Usage (at the bottom of a version page): | Usage (at the bottom of a version page): | ||