साँचा:Demo inline
दिखावट
| This template uses Lua: |
An inline version of {{demo}}.
Usage
[संपादित करें]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.
Example
[संपादित करें]The code
{{demo inline|<nowiki>{{cite Merriam-Webster|obsequious}}</nowiki>}}
{{cite Merriam-Webster|obsequious}} → "obsequious". मेरियम-वेब्स्टर शब्दकोष.
Reverse order
[संपादित करें]{{demo inline|reverse=1|<nowiki>{{cite Merriam-Webster|obsequious}}</nowiki>}}
{{cite Merriam-Webster|obsequious}}
TemplateData
[संपादित करें]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}}.
| पैरामीटर | विवरण | प्रकार | स्थिति | |
|---|---|---|---|---|
| Content | 1 | must be wrapped in <nowiki> | सामग्री | आवश्यक |
| Reverse order | reverse | Show the code snippet and the result in reverse order.
| बूलियन | वैकल्पिक |
| Separator | sep | Text between the code and output. Defaults to "→", or "←" in reverse order.
| स्ट्रिंग | वैकल्पिक |
See also
[संपादित करें]- {{Nowiki template demo}}, which uses Module:Template test case
- {{Automarkup}}, which uses Module:Automarkup
| ऊपर दिए गए निर्देश साँचा:Demo inline/doc से लिए गए है।(संपादन | इतिहास) संपादक इस साँचे के प्रयोगस्थल व प्रयोग पन्नों में प्रयोग कर सकते है। sandbox (create) and testcases (create) pages. कृपया /doc उपपृष्ठ पर श्रेणियाँ व विकियों के बिच की कड़ियाँ जोड़े। इस साँचे के उपपृष्ठ। |