Skip to main content

string.format() (MT4)


Replaces placeholders with values in a string.
 

Parameters

Name Type Description
text str string with placeholders
values any (optional) values to insert into string

Usage

The following table shows argument combinations and their outcome.

text values Result
nil   nil
""   ""
"Hi $0!" [ "Bob", "Charles" ] "Hi Bob!"
"Hi $first!" { first: "Bob", second: "Charles" } "Hi Bob!"

Related

Topics
Support plans
Review the type of support your MindTouch support plan covers and what to expect from our support agents.
Terminology
This document reviews terminology that is used within MindTouch that is unique to it.
What version of MindTouch am I using?
MindTouch has had five major releases over the years. Not sure which you are using? The table below and subsequent sections are your go-to source to ensure you are taking advantage of the right support and documentation. Note that early versions of MindTouch are deprecated and are no longer supported. This article identifies some key differences among the MindTouch major releases.
MindTouch 4 (legacy)
Launching and maintaining your MindTouch site requires numerous stakeholders from your organization. Each stakeholder has various responsibilities such as Content, Branding, Integration, Security and more. The MindTouch documentation is organized by responsibilities. Each responsibility contains documentation and tasks to help educate and drive completion.
Integrate your tools.
Take your knowledge experience to the next level, use MindTouch to distribute your knowledge across your organization. This guide is most valuable for Developers and System Integrators.
Integrate chat (MT4)
Integrating chat with your MindTouch site will allow you to engage with your visitors to provide a better customer experience. These articles are most valuable Support Agents and Site Owners.
Integrate web analytics (MT4)
MindTouch provides integration with web analytics applications to provide additonal insight about your users and their interaction with your documentation. These articles are most useful for Subject Matter Experts, Content Managers and Site Owners.
Google Analytics (MT4)
Integrate Google Analytics with your MindTouch TCS site to get web analytics around your documentation.
Omniture (MT4)
Integrate Omniture with your MindTouch Help center to get web analytics around your documentation.
Webtrends (MT4)
Integrate Webtrends with your MindTouch TCS site to get web analytics around your documentation.
Integrate with your CRM (MT4)
Take advantage of all that MindTouch has to offer by integrating with your CRM.
CRM integration points (MT4)
Give the power of MindTouch to your sales, support and marketing teams.  GeniusLink provides easy-to-use instructions to add MindTouch to your CRM and ticketing system.
Integrate with SAP (MT4)
SAP provides an intuitive interface for your agents to interact with your customers through multiple channels including social media. Integrating SAP Knowledge Central by MindTouch with your SAP CRM will allow your agents to access automatic help recommendations in the SAP interface.
MindTouch integration points (MT4)
Give your customers, prospects and partners an interface to file tickets and suggest articles from MindTouch.
Integrate your marketing tools (MT4)
If you have a Marketing Automation solution, you can integrate it with your site to increase visibility into your prospect's and customer's interaction with your documentation. These articles are most useful for Administrators.
Develop with scripts.
Successfully leverage the power of MindTouch and your content by enhancing your site with scripts such as our built-in programming language DekiScript and the MindTouch API. This guide is most valuable to Technical Writers and Developers.
Scripting: Best Practices (MT4)
Find guidance on achieving superior results with MindTouch Best Practices. Our Best Practices are your authoritative source on successfully leveraging the power of your content.
Enhance with APIs (MT4)
Enhance your site with the MindTouch API documentation.
workflow (MT4)
This page contains a list of all the API methods in the "Workflow" category.
Enhance with DekiScript (MT4)
MindTouch has a built-in programming language called DekiScript that allows you to access system information and add business logic to your MindTouch articles. This guide is most valuable for Technical Writers and Developers.
DekiScript functions (MT4)
Use these DekiScript functions to optimize your content.
Date functions (MT4)
These date functions are part the DekiScript and MindTouch runtime environment.
JSON functions (MT4)
These JSON functions are part the DekiScript and MindTouch runtime environment.
List functions (MT4)
These list functions are part the DekiScript and MindTouch runtime environment.
Map functions (MT4)
These map functions are part the DekiScript and MindTouch runtime environment.
Media extension (MT4)
This extension contains functions for embedding various media types.
Meta functions (MT4)
These meta functions are part the DekiScript and MindTouch runtime environment
Num functions (MT4)
These num functions are part the DekiScript and MindTouch runtime environment.
String functions (MT4)
These string functions are part the DekiScript and MindTouch runtime environment.
URI functions (MT4)
These URI functions are part the DekiScript and MindTouch runtime environment.
Web functions (MT4)
These web functions are part the DekiScript and MindTouch runtime environment
DekiScript objects (MT4)
Use these DekiScript objects to optimize your content.
Get started with DekiScript (MT4)
Learn about our built-in scripting language DekiScript and get started on further enhancing your content.
Use DekiScript (MT4)
Take advantage of power features to bring your content to the next level. Use DekiScript to add variables, dynamic lists and more.
Enhance with global variables (MT4)
Enhance your site with global variables.
Scripting: FAQs (MT4)
Have a MindTouch question? Likely you are not alone. Peruse our FAQs to find answers to the most commonly asked questions.
Getting Started
Whether you're responsible for launching your MindTouch project, adding knowledge to your MindTouch site, or supporting and administering your MindTouch users, it important that you have the right information for the job. Our getting started guides are built to get you up to speed with the basics and they're specifically targeted for typical use roles.
References
Other
  • Was this article helpful?