Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:ViewData URL/doc: Difference between revisions

From BlazBlue Wiki
(Created page with " ''To be used with Template:Gallery Section (BBRadio)'' This module builds a URL to Special:ViewData to fix some undesirable behavior in the link that's generated by defa...")
 
m (add function for handling queries to the 'Files' Cargo table)
Line 1: Line 1:
 
''To be used with [[Template:Gallery Section (BBRadio)]] or [[Template:Gallery Section (Cargo)]]''
''To be used with [[Template:Gallery Section (BBRadio)]]''


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 8: Line 7:


==Usage==
==Usage==
To create a link for [[Template: Gallery Section (BBRadio)]]:
<pre><nowiki>
<pre><nowiki>
{{#invoke:ViewData URL|BBRadio|character|season
{{#invoke:ViewData URL|BBRadio|character|season
Line 15: Line 15:
</nowiki></pre>
</nowiki></pre>


==Todo==
To create a link for [[Template:Gallery Section (Cargo)]]:
Possible future expansion: Expand to use with the Files Cargo table as well
<pre><nowiki>
<pre><nowiki>
{{#invoke:ViewData|Files
{{#invoke:ViewData|Files
|character
|character=
|category
|location=
...
|weapon=
|intro=<h3>BlazBlue Radio D</h3>
|source=
|section=
|artist=
|limit=
|widths=
|intro=
|limit=100
|limit=100
}}
}}

Revision as of 00:24, 1 August 2019

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

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|Files
|character=
|location=
|weapon=
|source=
|section=
|artist=
|limit=
|widths=
|intro=
|limit=100
}}