Difference between revisions of "Template:DocExample"
From SpiralKnights
m |
m |
||
Line 7: | Line 7: | ||
| style="padding: 6px; border:" | <noinclude>Code Goes Here<br />(You will need to wrap it in 'pre' tags yourself, as there is no workaround for halfway-rendering, at least to my knowledge.)</noinclude><includeonly><code>{{{code}}}</code></includeonly> | | style="padding: 6px; border:" | <noinclude>Code Goes Here<br />(You will need to wrap it in 'pre' tags yourself, as there is no workaround for halfway-rendering, at least to my knowledge.)</noinclude><includeonly><code>{{{code}}}</code></includeonly> | ||
|} | |} | ||
+ | <noinclude>{{documentation}}</noinclude> |
Revision as of 15:49, 10 April 2012
Quick Description Goes Here | Rendered by: |
---|---|
Rendition Goes Here | Code Goes Here (You will need to wrap it in 'pre' tags yourself, as there is no workaround for halfway-rendering, at least to my knowledge.) |
[edit] [ ] Template documentation
Contents
Usage
Useful for quickly adding examples to doc pages. The markup limitations make this much less useful, though.
Parameters
- desc
- Required. The text to go in the description column - should be short.
- descWidth
- Required. Width of the first column for the description.
- render
- Required. The code to be rendered, not surrounded by pre tags. We need a whole new variable because of wiki markup limitations.
- code
- Required. The code to be exemplified. Note that because of the aforementioned limitations, you must manually wrap the pre tags.
Examples
(None)
Copy & Paste
{{DocExample | desc = | descWidth = | render = | code = }}
The above documentation is transcluded from Template:DocExample/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |