Module:Utilities/doc: Difference between revisionsGive feedback
cleanup, relink |
|||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 15: | Line 15: | ||
===Examples=== | ===Examples=== | ||
See examples at [[Template:Color]] | See examples at [[Template:Color]] | ||
==remove_trailing_colon== | |||
Remove's the ":" character from the end of a string | |||
===Examples=== | |||
<pre>{{#invoke:Utilities|remove_trailing_colon|A Fate's Tale:}}</pre> | |||
{{#invoke:Utilities|remove_trailing_colon|A Fate's Tale:}} | |||
==process_variables== | |||
Processes a localized string by replacing variable patterns with their corresponding values. | |||
===Parameters=== | |||
* string_key - The localization key used to retrieve the base string (via Module:Lang) | |||
* item_name - The name of the item used to look up variable values (via Module:ItemData) | |||
===Examples=== | |||
Active Item descriptions in [[Template:Active Items]] | |||
<pre>{{#invoke:Utilities|process_variables|upgrade_thermal_detonator_desc|Alchemical Fire}}</pre> | |||
{{#invoke:Utilities|process_variables|upgrade_thermal_detonator_desc|Alchemical Fire}} | |||