Module:ViewData URL/doc: Difference between revisions

From BlazBlue Wiki
m (add function for handling queries to the 'Files' Cargo table)
m (adds order_by parameter to p.Files)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Please go to [[Module:ViewData URL/doc]] to edit the documentation.
''To be used with [[Template:Gallery Section (BBRadio)]] or [[Template:Gallery Section (Cargo)]]''
''To be used with [[Template:Gallery Section (BBRadio)]] or [[Template:Gallery Section (Cargo)]]''
==Motivation==


This module builds a URL to Special:ViewData to fix some undesirable behavior in the link that's generated by default:
This module builds a URL to Special:ViewData to fix some undesirable behavior in the link that's generated by default:
Line 17: Line 21:
To create a link for [[Template:Gallery Section (Cargo)]]:
To create a link for [[Template:Gallery Section (Cargo)]]:
<pre><nowiki>
<pre><nowiki>
{{#invoke:ViewData|Files
{{#invoke:ViewData URL|Files
|character=
|character=
|cameo=
|location=
|location=
|weapon=
|weapon=
Line 28: Line 33:
|intro=
|intro=
|limit=100
|limit=100
|order_by=Date DESC
}}
}}
</nowiki></pre>
</nowiki></pre>


<includeonly>[[Category:Graphic templates]]</includeonly>
<includeonly>[[Category:Graphic templates]]</includeonly>

Latest revision as of 04:10, 10 September 2019

Please go to Module:ViewData URL/doc to edit the documentation.

To be used with Template:Gallery Section (BBRadio) or Template:Gallery Section (Cargo)

Motivation

This module builds a URL to Special:ViewData to fix some undesirable behavior in the link that's generated by default:

  1. The first batch of results are excluded. We want to display all results, even ones that have already been returned.
  2. The results per page are limited to whatever was initially set as the limit, unless the limit was 0, in which case Special:ViewData shows 100 results per page. We want to be able to manually set this limit.

Usage

To create a link for Template: Gallery Section (BBRadio):

{{#invoke:ViewData URL|BBRadio|character|season
|intro=<h3>BlazBlue Radio D</h3>
|limit=100
}}

To create a link for Template:Gallery Section (Cargo):

{{#invoke:ViewData URL|Files
|character=
|cameo=
|location=
|weapon=
|source=
|section=
|artist=
|limit=
|widths=
|intro=
|limit=100
|order_by=Date DESC
}}