Template:File information/wizard/upload

From PinataIsland.info, the Viva Piñata wiki
Jump to: navigation, search

This template is a dependency for {{File information/wizard}}. It builds an external link for the wizard that, when clicked, will fill in the upload form's (summary) description box.

The following (positional) parameters are passed to this template:

1
The game that the image is from
2
The platform that the image is from
3
yes or no (boolean) to flag the image as a Pinata Vision card. If yes, a category (based on the type of card) is added to the description.
4
The type of image. Older images have 12 types. More recent PV images use about 27 types (which also correspond with a category name for the card). For example, if the type of image is "Egg," Category:Egg cards will also be added to the description.
5
Descriptive text for the external link
6 (optional, for backwards compatibility)
yes or no (boolean) to flag the (PV) image as unsupported. If yes, {{PV unsupported}} is added to the description.


Notes

  1. Older cards have gotten categorized by default in the Pinata Vision image category. Since new cards are subcategorized, we need to pass nocat to the template, to avoid categorizing the card at the PVI root (and in a sub-category).
  2. Conditional code is:
if flagged as an unsupported card, then add a category and {{PV unsupported}} to the description
else if flagged as a PV card, then add a category to the description
else nothing to add to the description