User:Stoppingby4now/Sandbox: Difference between revisions
From Step Mods | Change The Game
No edit summary |
No edit summary |
||
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, 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. | ||
< | <code> | ||
{| class="wikitable" style="width:100%;" | {| class="wikitable" style="width:100%;" | ||
! style="width:25%;" | Mod Name | ! style="width:25%;" | Mod Name | ||
Line 7: | Line 7: | ||
! style="width:10%;" | NexusID | ! style="width:10%;" | NexusID | ||
! style="width:55%;" | NexusURL | ! style="width:55%;" | NexusURL | ||
</ | </code> | ||
Then perform the base query which will use a template. 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 we don't get the "find more results" link. | Then perform the base query which will use a template. 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 we don't get the "find more results" link. | ||
< | <code> | ||
{{#ask:[[Version::{{#show:STEP:Main|?CurrentRelease#}}]] | {{#ask:[[Version::{{#show:STEP:Main|?CurrentRelease#}}]] | ||
|mainlabel=- | |mainlabel=- | ||
Line 22: | Line 22: | ||
|limit=1000 | |limit=1000 | ||
}} | }} | ||
</ | </code> | ||
{| class="wikitable" style="width:100%;" | {| class="wikitable" style="width:100%;" | ||
! style="width:25%;" | Mod Name | ! style="width:25%;" | Mod Name | ||
Line 42: | Line 42: | ||
Then close the table after the query. | Then close the table after the query. | ||
< | <code> | ||
|} | |} | ||
</ | </code> |
Revision as of 21:36, December 21, 2013
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.
Mod Name
Section
NexusID
NexusURL
Then perform the base query which will use a template. 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 we don't get the "find more results" link.
Some use of "" in your query was not closed by a matching "".
Mod Name
Section
NexusID
NexusURL
Some use of "" in your query was not closed by a matching "".
Then close the table after the query.