Jump to content

Template:Version nav: Difference between revisions

From Out of Ore Wiki
No edit summary
No edit summary
Tag: Manual revert
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="margin-top:1.5em; border-top:1px solid #ccc; padding-top:0.5em; font-size:90%;">
<templatestyles src="Version nav/styles.css" />
 
<div class="ooo-version-nav">
  <div style="display:flex; justify-content:space-between;">
{{#dpl:
 
| category    = Updates
    <!-- Previous version -->
| namespace  = Main
    <div>
| ordermethod = title
      {{#dpl:
| order      = descending
      | category    = Updates
| count      = 1
      | namespace  = Main
| titlelt    = {{PAGENAME}}
      | ordermethod = title
| mode       = inline
      | order      = descending
| format      = , [[%PAGE%|Previous (%TITLE%)]] · , ,
      | count      = 1
}}[[:Category:Version History|All Versions]]{{#dpl:
      | titlelt    = {{PAGENAME}}
| category    = Updates
       | format      = , [[%PAGE%|Previous: %TITLE%]], ,
| namespace  = Main
      }}
| ordermethod = title
    </div>
| order      = ascending
 
| count      = 1
    <!-- Next version -->
| titlegt    = {{PAGENAME}}
    <div style="text-align:right;">
| mode       = inline
      {{#dpl:
| format      = , · [[%PAGE%|Next (%TITLE%)]] , ,
      | category    = Updates
}}
      | namespace  = Main
      | ordermethod = title
      | order      = ascending
      | count      = 1
      | titlegt    = {{PAGENAME}}
       | format      = , [[%PAGE%|Next: %TITLE% ]], ,
      }}
    </div>
 
  </div>
 
  <div style="margin-top:0.6em; text-align:center; opacity:0.8;">
    <small>See all versions: [[:Category:Version History|Version History]]</small>
  </div>
 
</div>
</div>
</includeonly><noinclude>
</includeonly><noinclude>
Automatic version navigation bar.
Usage:
 
<pre>{{Version nav}}</pre>
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):
<pre>
{{Version nav}}
</pre>
</noinclude>
</noinclude>

Latest revision as of 15:29, 30 November 2025

Usage:

{{Version nav}}