Difference between revisions of "Template:Demo-inline"
Jump to navigation
Jump to search
test>Swpb |
test>Swpb |
||
| Line 1: | Line 1: | ||
| − | + | {{#invoke:Sandbox/Swpb/demo-inline|main}}<noinclude>{{documentation}}</noinclude> | |
| − | |||
| − | |||
| − | </noinclude> | ||
Revision as of 17:37, 14 May 2018
Script error: No such module "Sandbox/Swpb/demo-inline".
| This template uses Lua: |
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:
Script error: No such module "Sandbox/Swpb/demo-inline".
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 (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |