Template:Manufacturer
The {{manufacturer}} template is a metatemplate that uses the information stored in manufacturer templates. It can use different styles to
- display a manufacturer or brand name inline,
- display a category header for the manufacturer or brand,
- display a whole infobox for the manufacturer or brand.
{{brand}} redirects here and can be used equally for mere brands that are owned by other manufacturers.
Inline[edit source]
- Usage
To mention a manufacturer or brand in an article's text, use {{manufacturer}} without the style parameter. You can set logo to display the logo before the text. There are no restrictions to the use of the inline style. The template can be placed anywhere within the text of an article. Please note that the logo height of 22px is higher than the usual article text characters and can create unwanted layout effects.
- Examples
{{manufacturer|Freya}}
gives Freya.{{manufacturer|Freya|logo=1}}
gives Freya Freya.
Non-existing manufacturer:
{{manufacturer|Non-existing manufacturer|logo=1}}
gives Non-existing manufacturer.
If a template for "Non-existing manufacturer" is created some day, the full data will be displayed like in the above examples.
Header (style = header)[edit source]
- Usage
To display an header for a manufacturer, set the style parameter to header. If used as a header, the template should only be added at the top of category pages.
You will never have to edit the header in the category you use it. As soon as the data in the manufacturer's template is changed, you category header will display the new data.
- Example
{{manufacturer|Freya|style=header}}
gives
File:Logo Freya.gif Freya (brand by Eveden) Desborough, Northamptonshire, United Kingdom | |||||||||||||
Clothing | Arabella Arabella (bra) · Eva Eva (bra) · Rio Rio (bra) · Zeta Zeta (bra) |
---|
[edit source]
- Usage
To display a navigation box for a manufacturer, set the style parameter to navbox. If used as a navigation box, the template should only be added at the bottom of articles on manufacturers, brands or pieces of clothing.
- Example
{{manufacturer|Freya|style=navbox}}
gives
Freya clothing | |||||||
---|---|---|---|---|---|---|---|
Arabella Arabella (bra) · Eva Eva (bra) · Rio Rio (bra) · Zeta Zeta (bra) |
Infobox (style = infobox)[edit source]
- Usage
To display an infobox for a manufacturer or brand, set the style parameter to infobox. If used with the infobox style, the template should only be placed at the very top of an article - just where you would normally write the code for the infobox.
You will never have to edit the infobox on your article page. As soon as the data in the manufacturers's template is changed, you article will display the new data in the infobox.
- Example
{{manufacturer|Freya|style=infobox}}
creates an infobox for Freya on your page.
Changing manufacturer data[edit source]
Please note that {{manufacturer}} does not store any information about a single manufacturer itself. It is only a metatemplate that uses the specific container templates to display the desired data.
If you want to change the data of a manufacturer (for example if you want to change the logo), go to the manufacturer's own data container template and change it.
- Example
To change data of Freya,
- go to Category:Manufacturer templates;
- choose Template:Freya and click on the edit tab;
- follow the instructions given in the section If you want to change manufacturer data:.
If you want to add a piece of clothing to the clothing list at the bottom of the header, go to the manufacturer's own clothing template and add it there.
- Example
To change change the clothing list of Freya,
- go to Category:Clothing templates;
- choose Template:Freya clothing and click on the edit tab;
- add the piece of clothing following the style of the already listed articles.