सामग्री पर जाएँ

साँचा:Demo inline

मुक्त ज्ञानकोश विकिपीडिया से
परिचय का प्रतीक साँचा परिचय[देखें] [संपादन] [इतिहास] [पर्ज]

An inline version of {{demo}}.

Used to include examples of template use in documentation pages.

Like {{demo}}, this template takes an unnamed argument in <nowiki> tags, and displays it unprocessed (as code), then as processed wikitext.

Unlike {{demo}}, this template presents the processed output on the same line as the unprocessed input, separated by an arrow. This is useful for compactly demonstrating a series of different behaviors of the same template.

The code

{{demo inline|<nowiki>{{cite Merriam-Webster|obsequious}}</nowiki>}}
produces the template example:
{{cite Merriam-Webster|obsequious}} → "obsequious". मेरियम-वेब्स्टर शब्दकोष.
{{demo inline|reverse=1|<nowiki>{{cite Merriam-Webster|obsequious}}</nowiki>}}
produces the template example:
"obsequious". मेरियम-वेब्स्टर शब्दकोष. ← {{cite Merriam-Webster|obsequious}}
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Demo inline

An inline version of {{demo}}.

साँचे के पैरामीटर्स[साँचा डेटा सम्पादित करें]

पैरामीटरविवरणप्रकारस्थिति
Content1

must be wrapped in <nowiki>

सामग्रीआवश्यक
Reverse orderreverse

Show the code snippet and the result in reverse order.

डिफ़ॉल्ट
0
स्वचालित वैल्यू
1
बूलियनवैकल्पिक
Separatorsep

Text between the code and output. Defaults to "→", or "←" in reverse order.

उदाहरण
produces:
स्ट्रिंगवैकल्पिक