Template:Works with: Difference between revisions
Content added Content deleted
m (Messed up my own directions) |
(Div blocks around content. Adding 'examplemeta' and 'workswith' CSS classes.) |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
'''Works with''': {{#if: {{{3|}}} | [[{{{1}}}|{{{2}}}]] version {{{3}}} | {{#if: {{{2|}}} | [[{{{1}}}]] version {{{2}}} | [[{{{1}}}]] }} }} |
<div class="examplemeta workswith">'''Works with''': [[SMW::off]]{{#if: {{{3|}}} | [[{{{1}}}|{{{2}}}]] version {{{3}}} | {{#if: {{{2|}}} | [[{{{1}}}]] version {{{2}}} | [[{{{1}}}]] }} }}[[SMW::on]]</div><noinclude> |
||
<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> |
<nowiki>{{works with|wikiname}} or {{works with|wikiname|version info}} or {{works with|wikiname|display name|version info}}</nowiki> |
||
The version info can be numbers or mixed text. Preview to make sure it looks the way you want. |
The version info can be numbers or mixed text. Preview to make sure it looks the way you want. |
||
Do not use this template to merely indicate what language implementation you used, but only if the example ''relies on features only a particular implementation/variant has''. |
|||
⚫ | |||
{{template}}</noinclude> |
{{template}}</noinclude> |
Latest revision as of 16:19, 3 November 2010
Usage:
{{works with|wikiname}} or {{works with|wikiname|version info}} or {{works with|wikiname|display name|version info}}
The version info can be numbers or mixed text. Preview to make sure it looks the way you want.
Do not use this template to merely indicate what language implementation you used, but only if the example relies on features only a particular implementation/variant has.
(This template replaces Compiler, Interpreter, Standard, and the like (except for Library which is covered by {{libheader}}.)