The wiki is currently a work in progress. If you'd like to help out, please check the Community Portal and our getting started guide. Also, check out our sister project on poewiki.net.

Template:Version history list/doc: Difference between revisions

From Path of Exile 2 Wiki
Jump to navigation Jump to search
>OmegaK2
No edit summary
>OmegaK2
m (Undo revision 146955 by OmegaK2 (talk))
Line 1: Line 1:
{{documentation subpage}}
{{documentation subpage}}
{{lua|Module:SMWResultFormat}}
__TOC__
__TOC__


==Overview==
==Overview==


This template creates a <nowiki><br></nowiki> separated version info.  
This module and it's submodules are responsible for creating a list of versions. It will automatically create new sections for each minor sections.
 
It is intended to be used with only a single row which has the arguments:
* Page
* Release date


==Usage==
==Usage==
Line 14: Line 11:
In SMW ask queries, specify the following:
In SMW ask queries, specify the following:
<code>
<code>
  |template=SMW current version
  |template=SMW version history
|outrotemplate=SMW version history/outro
</code>
</code>


Line 22: Line 20:
  [[Category:Versions]]
  [[Category:Versions]]
  |?Has release date
  |?Has release date
  |headers=hide
  |link=none
  |sort=Has release date, Is version
  |limit=2
  |order=desc, desc
|format=template
  |limit=1
  |template=SMW version history
  |outrotemplate=SMW version history/outro
  |searchlabel=
  |searchlabel=
|format=template
|template=SMW current version
}}</pre>
}}</pre>


Line 36: Line 33:
  [[Category:Versions]]
  [[Category:Versions]]
  |?Has release date
  |?Has release date
  |headers=hide
  |link=none
  |sort=Has release date, Is version
  |limit=2
  |order=desc, desc
|format=template
  |limit=1
  |template=SMW version history
  |outrotemplate=SMW version history/outro
  |searchlabel=
  |searchlabel=
|format=template
|template=SMW current version
}}
}}



Revision as of 12:36, 1 September 2015

This subpage provides documentation for Template:Version history list.

Lua logo

This template uses the following modules:

Overview

This module and it's submodules are responsible for creating a list of versions. It will automatically create new sections for each minor sections.

Usage

In SMW ask queries, specify the following:

|template=SMW version history
|outrotemplate=SMW version history/outro

Example

{{#ask:
 [[Category:Versions]]
 |?Has release date
 |link=none
 |limit=2
 |format=template
 |template=SMW version history
 |outrotemplate=SMW version history/outro
 |searchlabel=
}}

Result:

{{#ask:

|?Has release date
|link=none
|limit=2
|format=template
|template=SMW version history
|outrotemplate=SMW version history/outro
|searchlabel=

}}