User:Stoppingby4now/Sandbox: Difference between revisions

From Step Mods | Change The Game
No edit summary
No edit summary
Line 14: Line 14:
  {{#ask:[[Concept:ModsInSTEP]]
  {{#ask:[[Concept:ModsInSTEP]]
  |mainlabel=-
  |mainlabel=-
|?ModName
|?ModName
|?Section
|?Section
|link=none
|link=none
|format=template
|format=template
|template=ModOrderedList
|template=ModOrderedList
|sort=OrderID
|sort=OrderID
|limit=1000
|limit=1000
}}
}}


</pre>
</pre>

Revision as of 18:32, December 27, 2013

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
|?Section
|link=none
|format=template
|template=ModOrderedList
|sort=OrderID
|limit=1000
}}

I created the template Template:ModOrderedList for this example

Mod Name Section SourceID SourceURL

Then close the table after the query.

 |}