Skip to main content

string.format()

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
MindTouch Responsive
Launching and maintaining your MindTouch site requires collaboration from numerous roles ranging from content creation, integration, security management, branding to optimizing SEO. The MindTouch documentation guides you through the various steps of building and optimizing your MindTouch instance.
Administer your site.
Learn how to use the MindTouch control panel to properly administer your site.  The MindTouch control panel allows you to manage users, manage groups, review archived material and more.  This guide is most valuable for Administrators and Site Owners.
Administration: FAQs
Have a MindTouch question? Likely you are not alone. Peruse our FAQs to find answers to the most commonly asked questions.
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
Integrating chat into your MindTouch site allows you to engage with your users real-time and to provide a truly supportive customer experience.
Integrate LivePerson
Integrating LivePerson into your MindTouch site adds a layer of interactivity that allows you to connect with your customers at a new level.
Integrate SnapEngage
Integrate SnapEngage into your MindTouch site so that you can engage and interact with your customers and prospects.
Integrate web analytics
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
Integrate Google Analytics with your MindTouch site to get web analytics around your documentation.
Omniture
Integrate Omniture with your MindTouch site to get web analytics around your documentation.
Webtrends
Integrate Webtrends with your MindTouch site to get web analytics around your documentation.
Integrate with your CRM system
Take advantage of all that MindTouch has to offer by integrating with your CRM system.
Integrate with SAP Knowledge Central
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
Give your customers, prospects and partners an interface to file tickets and suggest articles from MindTouch.
Integrate your marketing tools
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.
Integrate with Eloqua
Eloqua can be integrated with MindTouch to extend your marketing team's visibility into your customers and prospects interaction with your documentation.
Integrate with Marketo
Marketo can be integrated with MindTouch to extend your sales and marketing team's visibility into your customers and prospects interaction with your documentation.
Integrate with Pardot
Pardot can be integrated with MindTouch to extend your sales and marketing team's visibility into your customers and prospects interaction with your documentation.
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
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 DekiScript
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
Use these DekiScript functions to optimize your content.
Date functions
These date functions are part the DekiScript and MindTouch runtime environment.
JSON functions
These JSON functions are part the DekiScript and MindTouch runtime environment.
List functions
These list functions are part the DekiScript and MindTouch runtime environment.
Map functions
These map functions are part the DekiScript and MindTouch runtime environment.
Media extension
This extension contains functions for embedding various media types.
Meta functions
These meta functions are part the DekiScript and MindTouch runtime environment
Num functions
These num functions are part the DekiScript and MindTouch runtime environment.
String functions
These string functions are part the DekiScript and MindTouch runtime environment.
URI functions
These URI functions are part the DekiScript and MindTouch runtime environment.
Web functions
These web functions are part the DekiScript and MindTouch runtime environment
XML functions
These XML functions are part the DekiScript and MindTouch runtime environment.
DekiScript objects
Use these DekiScript objects to optimize your content.
Get started with DekiScript
Learn about our built-in scripting language DekiScript and get started on further enhancing your content.
Use DekiScript
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
Enhance your site with global variables.
Scripting: FAQs
Have a MindTouch question? Likely you are not alone. Peruse our FAQs to find answers to the most commonly asked questions.
Leverage the API
Enhance your site with the MindTouch API documentation.
workflow
This page contains a list of all the API methods in the "Workflow" category.
References
Other
  • Was this article helpful?