Skip to main content

string.format() (SAP KC)


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
SAP Knowledge Central by MindTouch
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.
Administer your site.
Learn how to use the MindTouch Control Panel to properly administer your site. The Control Panel allows you to manage users, manage groups, restore deleted content and more. These guides are most valuable for Administrators and Site Owners.
Configure your site (SAP KC)
Learn more about updating and manage your site's configuration settings. This guide is most useful for Administrators and Site Owners.
Manage users (SAP KC)
Learn how to manage your site's users with the MindTouch control panel, including creating, deactivating and editing users. You may also want to review our documentation on understanding user types in MindTouch. This guide is most useful for Administrators and Site Owners.
Upgrade SAP Knowledge Central by MindTouch (SAP KC)
Thinking of upgrading? Learn what to do when upgrading from SAP Knowledge Central by MindTouch to MindTouch Responsive and how to plan for content restructuring. This guide is most useful for administrators and site owners.
Analyze your site.
Discover the best ways to analyze your content and community feedback in MindTouch. This guide is most useful for Content Managers and Site Owners.
Analyze user behavior (SAP KC)
Get to know your users and use that knowledge to transform your content to provide the best possible user search experience. This guide is most valuable for Content Managers and Site Owners.
Analytics: Best Practices (SAP KC)
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.
Build your architecture.
Employ a content structure that is navigable and intuitive to your user personas. Leverage the MindTouch content structure framework to create a structure that is built for search, navigation and discovery. This guide is most valuable for Technical Writers, Content Managers and Site Owners.
Architecture: Best Practices (SAP KC)
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.
Authenticate your users.
Provide your users with a seamless authentication experience. MindTouch offers support for many authentication providers including LDAP, Active Directory, ADFS and SAML 2.0. This guide is most useful to Administrators and Site Owners.
Authenticate via default settings (SAP KC)
Provide your users with a seamless MindTouch authentication experience via our default authentication settings.
Authenticate via SSO (SAP KC)
Provide your users with a seamless MindTouch authentication experience via single sign-on (SSO).
Implement SSO with the API (SAP KC)
This article describes the methods of enabling single sign-on between MindTouch and another authentication system.
Brand your site.
Impress your users and internal stakeholders with a beautifully branded MindTouch site. Successful branding drives adoption, increases brand equity and builds credibility. This guide is most valuable for graphic designers and web developers.
Branding: Best Practices (SAP KC)
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.
Brand via self-service (SAP KC)
MindTouch has the ability to be completely white-labeled to match your brand identity. Keep in mind that branding your MindTouch site requires some experience with HTML, CSS and possibly JavaScript. This guide is most valuable for Designers and Developers.
Brand SAP Knowledge Central by MindTouch (SAP KC)
This guide provides an overview of all available functionality needed to brand your site, including custom regions, media queries, iconography, custom CSS, HTML techniques, proper hierarchy structuring, a product UI walk-through, and much more.
Branding: FAQs (SAP KC)
Have a MindTouch question? Likely you are not alone. Peruse our FAQs to find answers to the most commonly asked questions.
Manage your content.
Knowledge is the key to a successful MindTouch deployment, and whether you're involved with importing, creating, securing or managing, it's crucial to be proficient with the tools that are available to you. This guide is most valuable for Consumers, Technical Writers, Support Agents, Subject Matter Experts and Site Owners.
Add and edit content (SAP KC)
​Create high quality content that is engaging and educational. Being an expert author ensures that your content is thorough, accessible and consistent.
Content Management: Best Practices (SAP KC)
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.
Classify and tag content (SAP KC)
Classify and tag your content, and you perform one of the most important tasks to maximize your SEO. In only a few steps, tag your content to optimize your search structure.
Content Management: FAQs (SAP KC)
Have a MindTouch question? Likely you are not alone. Peruse our FAQs to find answers to the most commonly asked questions.
Integrate with SAP.
SAP Knowledge Central by MindTouch 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 system allows your agents to access automatic help recommendations in the SAP interface.
Google Analytics (SAP KC)
Integrate Google Analytics with your MindTouch TCS site to get web analytics around your documentation.
SAP CRM system integration points (SAP KC)
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 systems.
Optimize your content.
Take your content to the next level by enriching it with media, related articles, conditional content, syntax highlighting and more. Enriching your content will drive adoption and SEO while creating expert users and deflecting support inquiries. This guide is most valuable for Technical Writers, Subject Matter Experts and Content Managers.
Enhance the user experience (SAP KC)
Enhancing the user experience is at the heart of MindTouch.
Enhance with media (SAP KC)
Whether your readers are requesting more visual content or you are ready to push your content to the next level, MindTouch provides a great platform for embedding videos.
Implement F1 contextual help (SAP KC)
MindTouch F1 Contextual Help allows you to add contextual help, served directly from your MindTouch site, within your application, site, and anywhere that you need to serve help content to your users.
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.
Enhance with APIs (SAP KC)
Enhance your site with the MindTouch API documentation.
API calls (SAP KC)
Whether you're just getting started or building an advanced KaaS integration, you'll find a variety of API examples to serve your needs.
Enhance with DekiScript (SAP KC)
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 (SAP KC)
Use these DekiScript functions to optimize your content.
Date functions (SAP KC)
These date functions are part the DekiScript and MindTouch runtime environment.
DekiScript objects (SAP KC)
Use these DekiScript objects to optimize your content.
Get started with DekiScript (SAP KC)
Learn about our built-in scripting language DekiScript and get started on further enhancing your content.
Enhance with global variables (SAP KC)
Enhance your site with global variables.
Secure your site.
Enrich your site by understanding MindTouch security standards including page restrictions, IP restrictions, login, session timeouts and more. This guide is most valuable for Content Managers and Site Owners.
Control access (SAP KC)
Secure your site by learning about MindTouch privacy and restricting site permissions.
Security: Best Practices (SAP KC)
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.
Start here.
Now that you have your MindTouch site, you can't wait to dive in and get started leveraging your content. No problem. Find everything you need in our Quick Start Guide to help you along the way to building your site.
Quick start guide (SAP KC)
This guide gets you started with using MindTouch.
References
Other
  • Was this article helpful?