Template {{achv}} creates a link to one or more (up to 9) particular achievements on an achievement's main page. It also can display the text "(required)", "(required, as set)", "(optional)", "(optional, as set)" or "XXXX Achievements" for use in infoboxes of items used for the relevant achievement(s).

Syntax

{{achv}} accepts:

  • three required unnamed parameters
  • eight optional unnamed parameters
  • four optional named parameters

{{achv|<achievement type name>|<achievement name>|<achievement number #1>|<achievement number #2>|<achievement number #3>|<...>|<achievement number #9>}}

Simple link

A simple link uses two required pieces of data, as unnamed parameters.

  • achievement name (required) - The name of the achievement's main page.
  • achievement number #1 (required) - The number of the (first or only) relevant achievement.

Linking multiple related achievements

To display multiple related achievements, the template allows eight optional pieces of data, as unnamed parameters.
Simply add the achievement numbers needed, one at a time, each separated by a pipe (|) character. DO NOT add extra pipes (|) for unneeded parameters.
The template will accept 0-8 additional achievement numbers, for a possible total of 9 achievements linked. Each achievement number added will generate a new, separate link.

Required, optional or set page?

When adding {{achv}} to an infobox of an item to be built or sent to complete an achievement objectively, the template uses three optional pieces of data, both as named parameters, each with two possible values. In these cases, editors are required to use one of these parameters.

  • Optional parameter req, if present, will display the text (required) after the final link.
    • req=s will display (required, as Logo Set.png) after the final link.
      • This applied if there is one set for that item.
    • req=o|set=Set Name will display (required) using [[<Set Name>|<Set Name>]] Logo Set.png) after the final link.
      • This applied if there is more than one set for that item. Also, easier for the reader to identify which achievement objective it applied for.
  • Optional parameter opt, if present, will display the text (optional) after the final link.
    • opt=s will display (optional, as Logo Set.png) after the final link.
      • This applied if there is one set for that item.
    • opt=o|set=Set Name will display (required) using [[<Set Name>|<Set Name>]] Logo Set.png) after the final link.
      • This applied if there is more than one set for that item. Also, easier for the reader to identify which achievement objective it applied for.
  • Optional parameter setp, if present, will display the text XXXX Achiecements after the final link.
    • setp=s will display [[XXXX Achievements]] after the final link.
    • This applied to Item Set Page only, so on Champion of the Race Logo Set.png, for example. Allowing the reader to see via the achievement page for more information, how this set is formed. Also, this parameter only applied to item set from non-sub section achievements.
    • setp=p will display [[XXXX Achievements]] after the final link.
    • This applied to Item Set Page only, so on Royal Train Logo Set.png, for example. Allowing the reader to see via the achievement page for more information, how this set is formed. Also, this parameter only applied to item set from sub section achievements.
  • Optional parameter cat, if present, will display the no text No text given after the final link.
    • cat=h will display Reference provided after the final link.
      • This applied within the award parameter from {{infobox items}} only. This parameter tells the reader this item was the previous reward, trigger reward icon change (grey reward icon) via the item category DPL reward page.

Examples

{{achv|Material Transport|Diamond Blade}}
gives: DPL-Reward-On.png from Diamond Blade


{{Achv|Tour de France|Green Jersey VI}}
gives: DPL-Reward-On.png from Green Jersey VI


{{Achv|Tour de France|Green Jersey|IV|V}}
gives: DPL-Reward-On.png from Green Jersey IV, V


{{Achv|Trans Pixel Express|TPE Architect|I|II|III|IV|opt=y}}
gives: DPL-Reward-On.png from TPE Architect I, II, III, IV (optional)


{{Achv|Tour de France|Yellow Jersey|I|II|III|IV|req=s}}
gives: DPL-Reward-On.png from Yellow Jersey I, II, III, IV (required, as Logo Set.png)


{{achv|Christmas|Holiday Trip|I|II|III|VI|req=o|set=Redlock Cargo I}}
gives: DPL-Reward-On.png from Holiday Trip I, II, III, VI (required) using Redlock Cargo I Logo Set.png


{{Achv|Royal|setp=p}}
gives: DPL-Reward-On.png from Royal Achievements
  • This is only to be used via {{infobox set}} notes section.
{{achv|Tour de France|Green Jersey|setp=s}}
gives: DPL-Reward-On.png from Green Jersey Achievements
  • This is only to be used via {{infobox set}} notes section.


{{Achv|Trains on rails|Train Set Dispatcher|cat=h}}
gives: DPL-Reward-Off.png from Train Set Dispatcher


{{Achv|Special|b=y|Balloon Popper I}}
gives: DPL-Reward-On.png from Balloon Popper I


{{Achv|Station Development|Berlin Architect|2nd=y}}
gives: DPL-Reward-On.png from Berlin Architect
  • This gives correct achievement link target. Only applied this when subheader achievement section and header achievement secion name share same name.


{{achv|Record_Breakers|ICE V|1-=II|2-=III|3-=IV}}
gives: DPL-Reward-On.png from ICE V-II, -III, -IV
  • This gives correct achievement link target. Only applied to achievements name header have - input.
Community content is available under CC-BY-SA unless otherwise noted.