Template:Works with: Difference between revisions

add box around documentation
(specify use only when needed)
(add box around documentation)
Line 1:
'''Works with''': {{#if: {{{3|}}} | [[{{{1}}}|{{{2}}}]] version {{{3}}} | {{#if: {{{2|}}} | [[{{{1}}}]] version {{{2}}} | [[{{{1}}}]] }} }}<noinclude>
 
<div class="template-documentation" style="
'''Usage''':
/* Copied from Wikipedia Template:Documentation. Perhaps we should have a stylesheet rule for this (.template-documentation) like WP does */
clear: both;
margin: 1em 0 0 0;
border: 1px solid #aaa;
background-color: #ecfcf4;
padding: 5px;">'''Usage''':
 
<nowiki>{{works with|wikiname}} or {{works with|wikiname|version info}} or {{works with|wikiname|display name|version info}}</nowiki>
Line 11 ⟶ 17:
(This template replaces '''Compiler''', '''Interpreter''', '''Standard''', and the like (except for Library which is covered by <nowiki>{{libheader}}</nowiki>.)
 
{{template}}</div></noinclude>