Jump to content

Template:Version nav: Difference between revisions

From Out of Ore Wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="margin-top:1.5em; border-top:1px solid #ccc; padding-top:0.5em; font-size:90%;">
<div style="margin-top:1.5em; border-top:1px solid #ccc; padding-top:0.5em; font-size:90%; text-align:center; opacity:0.9;">


   <div style="display:grid; grid-template-columns: 1fr auto 1fr; column-gap:0.5em; align-items:stretch;">
   <!-- Previous -->
  {{#dpl:
    | category    = Updates
    | namespace  = Main
    | ordermethod = title
    | order      = descending
    | count      = 1
    | titlelt    = {{PAGENAME}}
    | format      = , [[%PAGE%|← Previous]], ,
  }}


    <!-- Previous version -->
   · [[Version History|All versions]] ·
    <div style="text-align:left;">
      {{#dpl:
      | category    = Updates
      | namespace   = Main
      | ordermethod = title
      | order      = descending
      | count      = 1
      | titlelt    = {{PAGENAME}}
      | format      = ,
          <span style="display:inline-block; padding:0.35em 0.9em; border:1px solid #555; border-radius:3px;">
            [[%PAGE%|← Previous: %TITLE%]]
          </span>
        , ,
      }}
    </div>


    <!-- All versions (center) -->
  <!-- Next -->
     <div style="text-align:center;">
  {{#dpl:
       <span style="display:inline-block; padding:0.35em 0.9em; border:1px solid #555; border-radius:3px;">
     | category    = Updates
        [[:Category:Version History|All versions]]
    | namespace  = Main
      </span>
    | ordermethod = title
    </div>
    | order      = ascending
    | count       = 1
    | titlegt    = {{PAGENAME}}
    | format      = , [[%PAGE%|Next →]], ,
  }}


    <!-- Next version -->
    <div style="text-align:right;">
      {{#dpl:
      | category    = Updates
      | namespace  = Main
      | ordermethod = title
      | order      = ascending
      | count      = 1
      | titlegt    = {{PAGENAME}}
      | format      = ,
          <span style="display:inline-block; padding:0.35em 0.9em; border:1px solid #555; border-radius:3px;">
            [[%PAGE%|Next: %TITLE% →]]
          </span>
        , ,
      }}
    </div>
  </div>
</div>
</div>
</includeonly><noinclude>
</includeonly><noinclude>
Automatic version navigation bar.
Usage:
Usage:
<pre>{{Version nav}}</pre>
<pre>{{Version nav}}</pre>
</noinclude>
</noinclude>

Revision as of 15:02, 30 November 2025

Usage:

{{Version nav}}