• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Demo inline/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Demo inline
(Redirected from Template:Demo-inline/sandbox)
This is the template sandbox page for Template:Demo inline (diff).
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:Demo (sandbox)

Usage

edit

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

edit

The code

{{demo-inline|<nowiki>{{USHRseats|California}}</nowiki>}}

produces the template example:

{{USHRseats|California}} → 52

See also

edit
  • {{Nowiki template demo}}, which uses Module:Template test case
  • {{Automarkup}}, which uses Module:Automarkup
The above documentation is transcluded from Template:Demo inline/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Demo_inline/sandbox&oldid=1240200448"
Last edited on 14 August 2024, at 02:36

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 14 August 2024, at 02:36 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop