Difference between revisions of "Template:Infobox Computer"

From blackwiki
Jump to navigation Jump to search
imported>Samsara
(→‎Usage: note of disabled parameter)
imported>Ligulem
(Converted to use m:ParserFunctions instead of bad Wikipedia:hiddenStructure)
Line 1: Line 1:
<includeonly>
 
 
{| class="infobox" cellspacing="2" style="width: 21em; font-size: 90%; text-align: left;"
 
{| class="infobox" cellspacing="2" style="width: 21em; font-size: 90%; text-align: left;"
 
! colspan="2" style="font-size: larger; text-align: center" | {{{name}}}
 
! colspan="2" style="font-size: larger; text-align: center" | {{{name}}}
|- class="hiddenStructure{{{photo|}}}{{{caption|}}}"
+
|-
| colspan="2" style="text-align: center;" | {{{photo|}}}<br>{{{caption}}}
+
{{#if: {{{photo<includeonly>|</includeonly>}}} |
|- class="hiddenStructure{{{first_release_date|}}}"
+
{{!}} colspan="2" style="text-align: center;"{{!}} {{{photo<includeonly>|</includeonly>}}}{{
 +
  #if: {{{caption<includeonly>|</includeonly>}}} | <br>{{{caption}}} }} }}
 +
|-
 +
{{#if: {{{type<includeonly>|</includeonly>}}} |
 
! Type:
 
! Type:
| {{{type}}}
+
{{!}} {{{type}}} }}
|-  
+
|-
 +
{{#if: {{{developer<includeonly>|</includeonly>}}} |
 
! Developer:
 
! Developer:
| {{{developer}}}
+
{{!}} {{{developer}}} }}
|- class="hiddenStructure{{{first_release_date|}}}"
+
|-
 +
{{#if: {{{first_release_date<includeonly>|</includeonly>}}} |
 
! Released:
 
! Released:
| {{{first_release_date}}}
+
{{!}} {{{first_release_date}}} }}
<!-- please rewrite as conditional statement, causing problems at [[MacBook]]|- class="hiddenStructure{{{discontinuation_date|}}}"
+
|-
 +
{{#if: {{{discontinuation_date<includeonly>|</includeonly>}}} |
 
! Discontinued:
 
! Discontinued:
| {{{discontinuation_date}}}-->
+
{{!}} {{{discontinuation_date}}} }}
|- class="hiddenStructure{{{processor|}}}"
+
|-
 +
{{#if: {{{processor<includeonly>|</includeonly>}}} |
 
! [[Central processing unit|Processor(s)]]:
 
! [[Central processing unit|Processor(s)]]:
| {{{processor}}}
+
{{!}} {{{processor}}} }}
|- class="hiddenStructure{{{baseprice|}}}"
+
|-
 +
{{#if: {{{baseprice<includeonly>|</includeonly>}}} |
 
! Base Price:
 
! Base Price:
| {{{baseprice}}}
+
{{!}} {{{baseprice}}} }}
|- class="hiddenStructure{{{website|}}}"
+
|-
 +
{{#if: {{{website<includeonly>|</includeonly>}}} |
 
! Website:
 
! Website:
| {{{website}}}
+
{{!}} {{{website}}} }}
|}</includeonly><noinclude>
+
|}<noinclude>
  
 
== Usage ==
 
== Usage ==
 
<pre>
 
<pre>
 
{{Infobox Computer
 
{{Infobox Computer
|name =  
+
| name =  
|developer =  
+
| developer =  
|type =  
+
| type =  
|photo =
+
| photo =
|caption =
+
| caption =
|first_release_date =
+
| first_release_date =
|discontinuation_date = (currently disabled, fixme)
+
| discontinuation_date =
|processor =
+
| processor =
|baseprice =
+
| baseprice =
|website =
+
| website =
 
}}
 
}}
 
</pre>
 
</pre>
 +
 
[[Category:Computing templates|Infobox Computer]]
 
[[Category:Computing templates|Infobox Computer]]
 +
 
[[he:תבנית:מחשב]]
 
[[he:תבנית:מחשב]]
 
[[nn:mal:Infoboks datamaskin]]
 
[[nn:mal:Infoboks datamaskin]]
 
[[ja:Template:Infobox Computer]]
 
[[ja:Template:Infobox Computer]]
 
</noinclude>
 
</noinclude>

Revision as of 18:10, 8 October 2006

{{{name}}}
{{{photo}}}
{{{caption}}}
Type: {{{type}}}
Developer: {{{developer}}}
Released: {{{first_release_date}}}
Discontinued: {{{discontinuation_date}}}
Processor(s): {{{processor}}}
Base Price: {{{baseprice}}}
Website: {{{website}}}

Usage

{{Infobox Computer
| name = 
| developer = 
| type = 
| photo =
| caption =
| first_release_date =
| discontinuation_date =
| processor =
| baseprice =
| website =
}}

he:תבנית:מחשב nn:mal:Infoboks datamaskin ja:Template:Infobox Computer