Skip to main content

string.format() (TCS)

Overview

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 TCS (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 (TCS)
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 (TCS)
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 (TCS)
Integrate Google Analytics with your MindTouch TCS site to get web analytics around your documentation.
Omniture (TCS)
Integrate Omniture with your MindTouch Help center to get web analytics around your documentation.
Webtrends (TCS)
Integrate Webtrends with your MindTouch TCS site to get web analytics around your documentation.
Integrate with your CRM (TCS)
Take advantage of all that MindTouch has to offer by integrating with your CRM.
CRM integration points (TCS)
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 (TCS)
SAP provides an intuitive interface for your agents to interact with your customers through multiple channels including social media. Integrating MindTouch with SAP will allow your agents to have automatic recommendation of solutions from the MindTouch Help center in the SAP interface.
MindTouch integration points (TCS)
Give your customers, prospects and partners an interface to file tickets and suggest articles from MindTouch.
Integrate your marketing tools (TCS)
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.
Integration: Best Practices (TCS)
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 scripting.
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 (TCS)
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 (TCS)
Enhance your site with the MindTouch API documentation.
Enhance with DekiScript (TCS)
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 (TCS)
Use these DekiScript functions to optimize your content.
Date functions (TCS)
These date functions are part the DekiScript and MindTouch runtime environment.
JSON functions (TCS)
These JSON functions are part the DekiScript and MindTouch runtime environment.
List functions (TCS)
These list functions are part the DekiScript and MindTouch runtime environment.
Map functions (TCS)
These map functions are part the DekiScript and MindTouch runtime environment.
Media extension (TCS)
This extension contains functions for embedding various media types.
Meta functions (TCS)
These meta functions are part the DekiScript and MindTouch runtime environment
Num functions (TCS)
These num functions are part the DekiScript and MindTouch runtime environment.
String functions (TCS)
These string functions are part the DekiScript and MindTouch runtime environment.
URI functions (TCS)
These URI functions are part the DekiScript and MindTouch runtime environment.
DekiScript objects (TCS)
Use these DekiScript objects to optimize your content.
Get started with DekiScript (TCS)
Learn about our built-in scripting language DekiScript and get started on further enhancing your content.
Use DekiScript (TCS)
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 (TCS)
Enhance your site with global variables.
Scripting: FAQs (TCS)
Have a MindTouch question? Likely you are not alone. Peruse our FAQs to find answers to the most commonly asked questions.
Configuring Search Recommendations
Learn how to configure Search Recommendations within the MindTouch Control Panel to enhance your search experience. This video is 3:55 in length, was created on 7/12/2014, and is most useful for site owners.
Control Panel Part I: Users & Groups
Understand how to utilize the Control Panel Dashboard, as well as manage users and groups throughout your MindTouch site. This video is 7:05 in length and most useful for Site Owners.
Control Panel Part II: Branding & Data Management
Understand how to apply basic branding within the Control Panel, as well as manage deleted pages and files. This video is 4:47 in length and most useful for Site Owners.
Control Panel Part III: System Settings
Understand the various site-wide configurations including site privacy, adding custom styles to the editor, configuring Google Analytics, and other basic branding within the Control Panel, as well as manage deleted pages and files. This video is 7:51 in length and most useful forSite Owners.
Using Templates
Understand how to utilize templates within MindTouch. This video is 10:16 in length, was created on 7/8/2014, and is most useful for technical writers, subject matter experts, and site owners.
Utilizing Reports
Understand how to utilize reports within MindTouch to track the progress of your documentation community. This video is 5:58 in length, was published on 7/9/2014, and is most useful for Site Owners.
Understanding Site Privacy
Understand the first level of privacy and security settings within MindTouch by establishing your overall site privacy. This video is 2:26 in length and is most useful for site owners.
References
Other
  • Was this article helpful?