Difference between revisions of "Template:Block"

From ComputerCraft Wiki
Jump to: navigation, search
(Apparently I can't count to three.)
m (Added automatic categorization to Category:Peripheral if {{is-peripheral}} is set in template-data.)
 
Line 11: Line 11:
 
<td style="border-top: solid #C9C9C9 1px; padding: .4em; padding-left: .4em;">{{{damage-value}}}</td></tr>
 
<td style="border-top: solid #C9C9C9 1px; padding: .4em; padding-left: .4em;">{{{damage-value}}}</td></tr>
 
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; border-right: solid #C9C9C9 1px; padding: .4em; font-weight: bold;">Peripheral?</td>
 
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; border-right: solid #C9C9C9 1px; padding: .4em; font-weight: bold;">Peripheral?</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em; padding-left: .4em;">{{#if:{{{is-peripheral|}}}|{{{is-peripheral}}}{{#if:{{{peripheral-api|}}}| - [[{{{peripheral-api}}}]]}}|No}}</td></tr>
+
<td style="border-top: solid #C9C9C9 1px; padding: .4em; padding-left: .4em;">{{#if:{{{is-peripheral|}}}|{{{is-peripheral}}}<includeonly>[[Category:Peripherals]]</includeonly>{{#if:{{{peripheral-api|}}}| - [[{{{peripheral-api}}}]]}}|No}}</td></tr>
 
</table>
 
</table>
 
</div>
 
</div>

Latest revision as of 11:47, 11 April 2013

Grid workbench.png   Template:Block
Iso Unknown.png
Item ID {{{id}}}
Damage Value {{{damage-value}}}
Peripheral? No