User:Stoppingby4now/Sandbox: Difference between revisions

From Step Mods | Change The Game
No edit summary
mNo edit summary
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
First, we'll create a table that we can format, and do this before the query. I will use the template to perform another query in order to pull in information from the Mod Pages, and then create the row within the table.
First, I'll create the beginnings of a table that I can format, and do this before the query. Just contains the headers for now. I will use the template to perform another query in order to pull in information from the Mod Pages, and create each row within the table.


<pre>
{| class="wikitable" style="width:100%;"
{| class="wikitable" style="width:100%;"
! style="width:75px;" | Mod Name
! style="width:25%;" | Mod Name
! style="width:75px;" | Section
! style="width:10%;" | Section
! style="width:75px;" | NexusID
! style="width:10%;" | NexusID
! style="width:75px;" | NexusURL
! style="width:55%;" | NexusURL
{{#ask:[[Version::{{#show:STEP:Main|?CurrentRelease#}}]]
</pre>
 
Then I perform the base query which will use a template format. Every row of data returned from the query is a separate call to the template. So 5 query results equates to 5 template calls. The limit is assigned a high value so that the "find more results" link isn't displayed.
 
<pre>
{{#ask:[[Concept:ModsInSTEP]]
|mainlabel=-
|?ModName
|?ModGroup
|link=none
|format=plainlist
|template=CRPatchModOrderedList
|sort=OrderID
|limit=1000
}}
</pre>
 
I created the template [[:Template:CoreModOrderedList]] for this example (only shows mods that are core)
 
{| class="wikitable" style="width:100%;"
! style="width:25%;" | Mod Name
! style="width:10%;" | Section
! style="width:10%;" | SourceID
! style="width:55%;" | SourceURL
{{#ask:[[Concept:ModsInSTEP]]
|mainlabel=-
|mainlabel=-
|named args=yes
|?ModName
|?ModGroup
|link=none
|link=none
|?ModName -
|format=plainlist
|?Section -
|template=CRPatchModOrderedList
|format=template
|template=ModOrderedList
|sort=OrderID
|sort=OrderID
|results=1000
|limit=1000
}}
}}
|}
|}


Then close the table after the query.
Then close the table after the query.
<pre>
|}
</pre>

Latest revision as of 03:51, April 19, 2023

First, I'll create the beginnings of a table that I can format, and do this before the query. Just contains the headers for now. I will use the template to perform another query in order to pull in information from the Mod Pages, and create each row within the table.

{| class="wikitable" style="width:100%;"
! style="width:25%;" | Mod Name
! style="width:10%;" | Section
! style="width:10%;" | NexusID
! style="width:55%;" | NexusURL

Then I perform the base query which will use a template format. Every row of data returned from the query is a separate call to the template. So 5 query results equates to 5 template calls. The limit is assigned a high value so that the "find more results" link isn't displayed.

{{#ask:[[Concept:ModsInSTEP]]
|mainlabel=-
|?ModName
|?ModGroup
|link=none
|format=plainlist
|template=CRPatchModOrderedList
|sort=OrderID
|limit=1000
}}

I created the template Template:CoreModOrderedList for this example (only shows mods that are core)

Mod Name Section SourceID SourceURL

Then close the table after the query.

 |}