Template:Cmd: Difference between revisions
Dubiousjim (talk | contribs) (Update style) |
Dubiousjim (talk | contribs) (Show that internal markup is honored) |
||
Line 3: | Line 3: | ||
This template should be used for commands<br /> | This template should be used for commands<br /> | ||
Example: | Example: | ||
<nowiki>{{Cmd|apk add | <nowiki>{{Cmd|apk add <var>package</var>}}</nowiki> | ||
Will produce: | Will produce: | ||
{{Cmd|apk add | {{Cmd|apk add <var>package</var>}} | ||
<!-- background-color:#eeeeee; color:#111111; padding:.05em .5em; margin:.5em; border:1px solid #dddddd; border-left:2px solid #dddddd; white-space:pre; font-family:monospace; font-size:10pt; --> | <!-- background-color:#eeeeee; color:#111111; padding:.05em .5em; margin:.5em; border:1px solid #dddddd; border-left:2px solid #dddddd; white-space:pre; font-family:monospace; font-size:10pt; --> | ||
</noinclude><onlyinclude><p style="background-color:#f9f9f9; border:1px dashed #bbbbbb; line-height:1.1em; padding:1em; font-family:monospace; white-space:pre; overflow:auto;">{{{1}}}</p></onlyinclude> | </noinclude><onlyinclude><p style="background-color:#f9f9f9; border:1px dashed #bbbbbb; line-height:1.1em; padding:1em; font-family:monospace; white-space:pre; overflow:auto;">{{{1}}}</p></onlyinclude> |
Revision as of 06:41, 8 March 2012
Template Documentation for Cmd
This page is a template and should only be used as part of other articles. For more information, read Help:Template.
Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.
Feel free to voice your opinion regarding this template.Template Documentation
This template should be used for commands
Example:
{{Cmd|apk add <var>package</var>}}
Will produce:
apk add package
{{{1}}}