UWAGA: Każdy użytkownik jest proszony o dokończenie tłumaczenia stron w kategorii „Tłumaczenia do ukończenia” przed rozpoczęciem tworzenia nowych stron

Join The Fan Lab, a private Fandom research community for users in the US and UK where you will be asked to share your opinions on all things gaming and entertainment! Click here to see if you qualify

Szablon:Dv Comparison

Z ARK: Survival Evolved Wiki
Skocz do: nawigacja, szukaj

For use with templates that both (1) pull user-submitted data from a creature's page, and (2) pull data from our database generated from the game files.

This template compares the page-sourced values with the game-sourced values and outputs a variable with {{#vardefine}} and optionally flags mismatched data.

Usage[edytuj kod]

{{ Dv Comparison | Page Data | Dv Path | Output Variable | flag = Yes/No (Optional) | creature = Dino Name (Optional) }}
  • "Page Data" is the page-sourced data, usually defined within a template such as the Infobox.
  • "Dv Path" is the Lua path within Module:Dv/data.
  • "Output Variable" is the name of the output variable your template can call by using {{#var}}
  • "Flag" is optional. "Yes" will compare the data and flag for a mismatch. "No" will just pull the value from whichever source it may exist.
  • "Creature" is optional. By default, the values will be compared for the creature currently on the page via {{PAGENAME}}. If "creature" is defined, it will instead compare the value with the specified creature.

Example[edytuj kod]

In this example, we're comparing Rex's values for "Kibble" from within the Infobox and Module:Dv/data.

{{ Dv Comparison | {{{kibble|}}} | tamingFood/kibble | favoritekibble | flag = Yes | creature = Rex }}

{{{kibble|}}} and {{Dv|Rex|tamingFood/kibble}} are compared, and if different, will be flagged with a maintenance category. Then the output can be later called with {{#var:favoritekibble}}.