• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Demo inline

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module: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>{{USHRseats|California}}</nowiki>}}

produces the template example:

{{USHRseats|California}} → 52

See also

  • {{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 (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Demo_inline&oldid=14279"
Categories:
  • Lua-based templates
  • Documentation assistance templates
  • Programming typing-aid templates
  • Template test cases
  • Wikipedia utility templates
  • Wikitext processing templates
Last edited on 24 April 2021, at 12:42

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 24 April 2021, at 12:42.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop