Template:Assignment

From PCGamingWiki, the wiki about fixing PC games
Documentation for the above template (sometimes hidden from view).
Description

This template is automatically called from Template:Infobox game if an assignment is available (set through PCGamingWiki:Assignments).

The call is simplistic in nature, and basically only validates whether the currently visited page have an assignment available to it. If it does, it automatically calls this template. Returned values aren't of important, and so both the more results text ("More...") and default ("No results") parameters is set to null to prevent additional text from being printed.

Syntax

This is the code that is calling the template through Template:Infobox game:

{{#cargo_query:
tables=Assignments
|fields=Game
|where=Game = "{{PAGENAME}}" AND Status = "available"
|limit=1
|format=template
|template=Assignment
|more results text=
|default=
}}