Jump to content

Template:Infobox pen line: Difference between revisions

From Stationery Wiki
First version
 
Semantic
 
Line 9: Line 9:
| Pen Type: || {{{type}}}
| Pen Type: || {{{type}}}
|- bgcolor="#ffffff"
|- bgcolor="#ffffff"
| Released: || {{{released}}}
| First released: || [[First released::{{{released}}}]]
|- bgcolor="#ffffff"
|- bgcolor="#ffffff"
| Discontinued: || {{{discontinued}}}
| Discontinued: || {{#if: {{{discontinued}}} | [[Discontinued::{{{discontinued}}}]] | Still available}}
|- bgcolor="#ffffff"
|- bgcolor="#ffffff"
| Made in : || {{{made_in}}}
| Made in : || {{{made_in}}}
|}
|}
<noinclude>
<noinclude>
Line 22: Line 21:
To use it in an article, copy the template below and paste it into an article.
To use it in an article, copy the template below and paste it into an article.
Empty fields won't be displayed in the article.  
Empty fields won't be displayed in the article.  
====Semantic information====
Most semantic information has to be entered in the infobox and is not part of the template, so that there is more flexibility, e.g. when fields contain unexpected information.
This means that the semantic field [[...]] has to be left out if there is no value, but it also means that if there is more than one value it can be repeated.
First Released and Discontinued are automatically made semantic, similar to the [[Template:Infobox product]] template.
If the product is still in production leave the discontinued field empty.


===Template===
===Template===
Empty template
<pre><nowiki>
<pre><nowiki>
{{Infobox pen line
{{Infobox pen line
| name =  
| name =  
| aka =  
| aka =  
| manufacturer =  
| manufacturer = [[Made by::]]
| type =  
| type =  
| released  =  
| released  =  
| discontinued =  
| discontinued =  
| made_in =  
| made_in = [[Made in::]]
}}
</nowiki></pre>


Example
<pre><nowiki>
{{Infobox pen line
| name =
| aka =
| manufacturer = [[Made by::Lamy]]
| type =
| released  =
| discontinued =
| made_in = [[Made in::USA]]
}}
}}
</nowiki></pre>
</nowiki></pre>


</noinclude>
</noinclude>

Latest revision as of 17:48, 5 July 2017

{{{name}}}
Also called: {{{aka}}}
Manufacturer: {{{manufacturer}}}
Pen Type: {{{type}}}
First released: {{{released}}}
Discontinued: {{{discontinued}}}
Made in : {{{made_in}}}


Description[edit]

This template is used to create an infobox in an article about a pen line. To use it in an article, copy the template below and paste it into an article. Empty fields won't be displayed in the article.

Semantic information[edit]

Most semantic information has to be entered in the infobox and is not part of the template, so that there is more flexibility, e.g. when fields contain unexpected information. This means that the semantic field ... has to be left out if there is no value, but it also means that if there is more than one value it can be repeated.

First Released and Discontinued are automatically made semantic, similar to the Template:Infobox product template. If the product is still in production leave the discontinued field empty.

Template[edit]

Empty template

{{Infobox pen line
| name = 
| aka = 
| manufacturer = [[Made by::]]
| type = 
| released  = 
| discontinued = 
| made_in = [[Made in::]]
}}

Example

{{Infobox pen line
| name = 
| aka = 
| manufacturer = [[Made by::Lamy]]
| type = 
| released  = 
| discontinued = 
| made_in = [[Made in::USA]]
}}