Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Template:Assignment/row/Documentation

From PCGamingWiki, the wiki about fixing PC games
< Template:Assignment‎ | row
Revision as of 09:33, 20 July 2020 by Aemony (talk | contribs) (updated docs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Template used to define and store data in the cargo table Assignments. A call to this template with the appropriate parameters set will automatically store a new row in the table. Beyond that, it also displays the data in a table row with the relevant data separated in columns.

Because of {{PAGENAME}} does not necessarily output the same final text as just copy/pasting the page name manually, the template actually retrieves the exact {{PAGENAME}} value of a page before encoding it and storing it in the Cargo table in the EncodedName column. The exact call is as follows: {{urlencode:{{PAGENAME:{{{1|}}}}}|PATH}}. This approach was necessary to circumvent situations where e.g. ; would cause the call from {{Assignment/checkAvailable}} to fail because of a mismatch between the stored game name and the actual page name as returned by {{PAGENAME}}. It also makes the check compatible with quotation marks and various special characters. See Aemony's userpage for more information.

Notes

This row-based table tries to cheat and re-use as much stuff from Template:Availability/DRM as possible.
For displaying rows as a part of {{#cargo_query}}, use Template:Assignment/row/displayonly instead to prevent duplicate rows from being created.

Syntax

{{Assignment/row| title | state | platform | release_date | applied | completion_date | assigned | notes }}
  • title should match the name of the PCGW article of the game.
  • state can be various states, but the common ones are available, assigned, complete, and not available. Visit Template:Assignment/tickcross to see all possible states.
  • platform works the same as the DRM column of the Availability table.
  • release_date expects the typical MMMM DD, YYYY format (e.g. January 1, 1970). Might or might not work with other date formats.
  • applied is a list of users (comma-delimited) whom have applied for the assignment so far.
  • completion_date is the date when the assignment was completed by the assigned user(s).
  • assigned is a list of users (comma-delimited) whom have been assigned to perform the assignment.
  • notes is for notes that might apply.