More actions
Content deleted Content added
Alistair3149 (talk | contribs) Set Name and Manufacturer SMW property |
Alistair3149 (talk | contribs) Remove external data Tag: 2017 source edit |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- |
<includeonly><!-- |
||
API CALL |
|||
{{#if:{{{apiurl|}}}|{{#get_web_data:url={{{apiurl}}}|format=JSON|data=}}}} - No data avaliable for computers yet |
|||
INFOBOX TABLE |
INFOBOX TABLE |
||
Line 17: | Line 12: | ||
-->{{#if:{{{Manufacturer|}}}|<tr><!-- |
-->{{#if:{{{Manufacturer|}}}|<tr><!-- |
||
--><td width="45%" valign="top" colspan="2" style="padding:3px;">Manufacturer</td><!-- |
--><td width="45%" valign="top" colspan="2" style="padding:3px;">Manufacturer</td><!-- |
||
--><td width="55%" class="brand" style="padding:3px;">{{#ifeq:{{MFUNAME|{{{Manufacturer}}}}}|Unknown Manufacturer|{{{Manufacturer}}}|[[Manufacturer::{{{Manufacturer}}}}}]]{{nbsp}}({{{Manufacturer}}})}}</td><!-- |
--><td width="55%" class="brand" style="padding:3px;">{{#ifeq:{{MFUNAME|{{{Manufacturer}}}}}|Unknown Manufacturer|{{{Manufacturer}}}|[[Manufacturer::{{MFUNAME|{{{Manufacturer}}}}}]]{{nbsp}}({{{Manufacturer}}})}}</td><!-- |
||
--></tr>}}<!-- |
--></tr>}}<!-- |
||
-->{{#if:{{{Size|}}}|<tr |
-->{{#if:{{{Size|}}}|<tr><!-- |
||
--><td width="45%" valign="top" colspan="2" class="category" style="padding:3px;">{{TLT|i18n|Size}}</td><!-- |
--><td width="45%" valign="top" colspan="2" class="category" style="padding:3px;">{{TLT|i18n|Size}}</td><!-- |
||
--><td width="55%" style="padding:3px;">{{SIZECNV|{{{Size}}}}} |
--><td width="55%" style="padding:3px;">{{SIZECNV|{{{Size}}}}}{{#if:{{{SizeNum|}}}|{{nbsp}}({{{SizeNum}}})}}</td><!-- |
||
--></tr>}}<!-- |
--></tr>}}<!-- |
||
-->{{#if:{{{Grade|}}}{{{Class|}}}|<tr><td width="45%" valign="top" colspan="2" style="padding:3px;">{{TLT|i18n|Type}}</td><!-- |
-->{{#if:{{{Grade|}}}{{{Class|}}}|<tr><td width="45%" valign="top" colspan="2" style="padding:3px;">{{TLT|i18n|Type}}</td><!-- |
||
Line 37: | Line 32: | ||
-->[[Category:Computers]]<!-- |
-->[[Category:Computers]]<!-- |
||
-->{{#if:{{{Manufacturer|}}}|[[Category:{{DPLAndEscape|{{MFUNAME|{{{Manufacturer}}}}}}}]]|[[Category:Unknown manufacturer]]}}<!-- |
-->{{#if:{{{Manufacturer|}}}|[[Category:{{DPLAndEscape|{{MFUNAME|{{{Manufacturer}}}}}}}]]|[[Category:Unknown manufacturer]]}}<!-- |
||
--> |
-->{{#if:{{{SizeNum|}}}|[[Category:Size {{{SizeNum}}} computers]]|{{#if:{{{Size|}}}|[[Category:Size {{{Size}}} computers]]}}|[[Category:Unknown size]]}}<!-- |
||
-->{{#if:{{{Grade|}}}|[[Category:Grade {{{Grade}}} computers]]|[[Category:Unknown grade]]}}<!-- |
-->{{#if:{{{Grade|}}}|[[Category:Grade {{{Grade}}} computers]]|[[Category:Unknown grade]]}}<!-- |
||
-->{{#if:{{{Class|}}}|[[Category:{{Fixcaps|{{{Class}}}}} computers]]|[[Category:Unknown class]]}}<!-- |
-->{{#if:{{{Class|}}}|[[Category:{{Fixcaps|{{{Class}}}}} computers]]|[[Category:Unknown class]]}}<!-- |
Latest revision as of 23:30, 16 August 2023
This documentation is transcluded from Template:Infobox Computer/doc. Changes can be proposed in the talk page.
- Template Usage
The Computer Infobox template is used for cooler pages only. Copy and paste the following code into the top of an article, filling all known fields. Leave all the unknown fields empty and they will not appear on the infobox.
- Example
{{Infobox Computer | Name = <!-- Component name --> | Image = <!-- Component image --> | Manufacturer = <!-- Manufacturer code --> | Size = <!-- Alphabetic size of the component --> | SizeNum = <!-- Numeric size of the component --> | Grade = <!-- A / B / C / D --> | Class = <!-- Civilian / Competition / Industrial / Military / Stealth --> | apiurl = <!-- JSON file from SCDB --> }}
You can also see related pages for example input.