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
Tag: Manual revert
 
(15 intermediate revisions by the same user not shown)
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>
<templatestyles src="Version nav/styles.css" />
<DynamicPageList>
<div class="ooo-version-nav">
  category    = Updates
{{#dpl:
  namespace  = Main
| category    = Updates
  ordermethod = sortkey
| namespace  = Main
  order      = ascending
| ordermethod = title
  mode        = inline
| order      = descending
</DynamicPageList>
| count      = 1
</div></includeonly><noinclude>
| titlelt    = {{PAGENAME}}
Automatic version navigation bar.
| mode        = inline
 
| format      = , ← [[%PAGE%|Previous (%TITLE%)]] · , ,
Displays all pages in [[:Category:Updates]] sorted by their sortkey (date).
}}[[:Category:Version History|All Versions]]{{#dpl:
 
| category    = Updates
Usage (at the bottom of a version page):
| namespace  = Main
<pre>
| ordermethod = title
{{Version nav}}
| order      = ascending
</pre>
| count      = 1
| titlegt    = {{PAGENAME}}
| mode        = inline
| format      = , · [[%PAGE%|Next (%TITLE%)]] → , ,
}}
</div>
</includeonly><noinclude>
Usage:
<pre>{{Version nav}}</pre>
</noinclude>
</noinclude>