Template:Manufacturer/doc: Difference between revisions
(New page: {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> The {{tl|film}} template is a metatemplate that uses the information stored in [[:Catego...) |
No edit summary |
||
| Line 2: | Line 2: | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
The {{tl| | The {{tl|manufacturer}} template is a metatemplate that uses the information stored in [[:Category:Manufacturer templates|manufacturer templates]]. It can use different styles to | ||
* display a | * display a manufacturer or brand name [[:Category:Inline templates|inline]], | ||
* display | * display a [[:Category:Category header templates|category header]] for the manufacturer or brand, | ||
* display a whole [[infobox]] for the | * display a whole [[infobox]] for the manufacturer or brand. | ||
For a guide how to create a | {{tl|brand}} redirects here and can be used equally for mere brands that are owned by other manufacturers. | ||
<!--For a guide how to create a manufacturer template so that you can use it together with {{tl|manufacturer}}, see [[Boobpedia:New manufacturer]].--> | |||
== Inline == | == Inline == | ||
; Usage | ; Usage | ||
To mention a | To mention a manufacturer or brand in an article's text, use {{tl|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 | ; Examples | ||
* <code><nowiki>{{ | * <code><nowiki>{{manufacturer|Freya}}</nowiki></code> gives {{manufacturer|Freya}}. | ||
* <code><nowiki>{{ | * <code><nowiki>{{manufacturer|Freya|logo=1}}</nowiki></code> gives {{manufacturer|Freya|logo=1}}. | ||
Non-existing manufacturer: | |||
Non-existing | * <code><nowiki>{{manufacturer|Non-existing manufacturer|logo=1}}</nowiki></code> gives {{manufacturer|Non-existing manufacturer|logo=1}}. | ||
* <code><nowiki>{{ | |||
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) == | |||
;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 | |||
<code><nowiki>{{manufacturer|Freya|style=header}}</nowiki></code> gives | |||
{{manufacturer|Freya|style=header}}. | |||
== Infobox (style = infobox) == | |||
;Usage | ;Usage | ||
To display an infobox for a | 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 | 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 | ;Example | ||
<code><nowiki>{{ | <code><nowiki>{{manufacturer|Freya|style=infobox}}</nowiki></code> | ||
creates an infobox for [[ | creates an infobox for [[Freya]] on your page. | ||
== Changing | == Changing manufacturer data == | ||
Please note that {{tl| | Please note that {{tl|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 | 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: | ;Example: | ||
To change data of {{ | To change data of {{manufacturer|Freya}}, | ||
* go to {{cl| | * go to {{cl|Manufacturer templates}}; | ||
* choose Template: | * choose Template:Freya and click on the '''edit''' tab; | ||
* follow the instructions given in the section '''If you want to change | * follow the instructions given in the section '''If you want to change manufacturer data:'''. | ||
<!-- | |||
== See also == | == See also == | ||
* [[Boobpedia:New film]] - if you want to create a new film template | * [[Boobpedia:New film]] - if you want to create a new film template--> | ||
<includeonly> | <includeonly> | ||
Revision as of 19:40, 27 August 2008
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
- 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.
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)
- 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
| Freya |
.
Infobox (style = infobox)
- 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
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:.