Changes

Jump to navigation Jump to search
→‎Tokens: update for build 24007 (added AchievementName + ItemName + MovieTitle + NumberWithCommas + SpecialOrderName + ToolName)
Line 36: Line 36:  
! token format
 
! token format
 
! output
 
! output
 +
|-
 +
| <samp>[AchievementName {{t|id}}]</samp>
 +
| The translated display name for an achievement from [[Modding:Achievement data|<samp>Data/Achievements</samp>]]. For example, <samp>[AchievementName 5]</samp> will output ''A Complete Collection'' in English.
 
|-
 
|-
 
| <samp>[ArticleFor {{t|word}}]</samp>
 
| <samp>[ArticleFor {{t|word}}]</samp>
Line 66: Line 69:  
| <samp>[GenderedText {{t|male text}} {{t|female text}}</samp>
 
| <samp>[GenderedText {{t|male text}} {{t|female text}}</samp>
 
| Depending on the target player's gender, show either the male text or female text. If the text contains spaces, you'll need to escape them using <samp>EscapedText</samp>.
 
| Depending on the target player's gender, show either the male text or female text. If the text contains spaces, you'll need to escape them using <samp>EscapedText</samp>.
 +
|-
 +
| <samp>[ItemName {{t|id}} {{o|fallback text}}]</samp>
 +
| The translated display name for an item based on its qualified or unqualified item ID. For example, <samp>[ItemName (O)128]</samp> will output ''Pufferfish'' in English.
 +
 +
If the item doesn't exist, it'll output {{o|fallback text}} if specified, else ''Error Item ({{t|id}})''.
 
|-
 
|-
 
| <samp>[LocalizedText {{t|string key}}]</samp><br /><samp>[LocalizedText {{t|string key}} {{t|token values}}+]</samp>
 
| <samp>[LocalizedText {{t|string key}}]</samp><br /><samp>[LocalizedText {{t|string key}} {{t|token values}}+]</samp>
Line 72: Line 80:  
| <samp>[LocationName {{t|location ID}}]</samp>
 
| <samp>[LocationName {{t|location ID}}]</samp>
 
| The translated display name for a location given its ID [[Modding:location data|in <samp>Data/Locations</samp>]].
 
| The translated display name for a location given its ID [[Modding:location data|in <samp>Data/Locations</samp>]].
 +
|-
 +
| <samp>[MovieTitle {{t|id}}]</samp>
 +
| The translated display name for a movie from [[Modding:Movie theater data|<samp>Data/Movies</samp>]]. For example, <samp>[MovieTitle spring_movie_0]</samp> will output ''The Brave Little Sapling'' in English.
 +
|-
 +
| <samp>[NumberWithCommas {{t|number}}]</samp>
 +
| Format a number with thousands separators based on the current language. For example, <samp>[NumberWithCommas 5000000]</samp> will output ''5,000,000'' in English.
 
|-
 
|-
 
| <samp>[PositiveAdjective]</samp>
 
| <samp>[PositiveAdjective]</samp>
Line 78: Line 92:  
| <samp>[Season]</samp>
 
| <samp>[Season]</samp>
 
| The current season name, like ''spring''.
 
| The current season name, like ''spring''.
 +
|-
 +
| <samp>[SpecialOrderName {{t|id}}]</samp>
 +
| The translated display name for a special order from [[Modding:Special orders|<samp>Data/SpecialOrders</samp>]]. If the special order is currently active, it'll show the same name shown in the quest log. For example, <samp>[SpecialOrder Caroline]</samp> will output ''Island Ingredients'' in English.
 
|-
 
|-
 
| <samp>[SpouseFarmerText {{t|spouse is farmer text}} {{t|spouse is NPC text}}</samp>
 
| <samp>[SpouseFarmerText {{t|spouse is farmer text}} {{t|spouse is NPC text}}</samp>
Line 89: Line 106:     
The result will be identical for all queries with the same {{o|sync key}} during the given {{o|interval}} (one of <samp>tick</samp>, <samp>day</samp>, <samp>season</samp>, <samp>year</samp>), including between players in multiplayer mode. If omitted, they default to <samp>day</samp> and the shop ID respectively.
 
The result will be identical for all queries with the same {{o|sync key}} during the given {{o|interval}} (one of <samp>tick</samp>, <samp>day</samp>, <samp>season</samp>, <samp>year</samp>), including between players in multiplayer mode. If omitted, they default to <samp>day</samp> and the shop ID respectively.
 +
|-
 +
| <samp>[ToolName {{t|id}} {{o|upgrade level}}]</samp>
 +
| The translated display name for a tool, including its upgrade level if specified. For example, <samp>[ToolName (T)IridiumAxe]</samp> will output ''Iridium Axe'' in English.
 
|}
 
|}
  
translators
8,445

edits

Navigation menu