Template:Manufacturer/doc: Difference between revisions

Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
(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|film}} template is a metatemplate that uses the information stored in [[:Category:Film templates|film templates]]. It can use different styles to
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 film name and additional information [[:Category:Inline templates|inline]],
* display a manufacturer or brand name [[:Category:Inline templates|inline]],
* display an entry in a filmography,
* display a [[:Category:Category header templates|category header]] for the manufacturer or brand,
* display a whole [[infobox]] for the film.
* display a whole [[infobox]] for the manufacturer or brand.


For a guide how to create a film template so that you can use it together with {{tl|film}}, see [[Boobpedia:New film]].
{{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 film in an article's text, use {{tl|film}} without the '''style''' parameter. You can set '''year''' and/or '''director''' to display additional data. There are no restrictions to the use of the inline style. The template can be placed anywhere within the text of an article.
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>{{film|Supervixens}}</nowiki></code> gives {{film|Supervixens}}.
* <code><nowiki>{{manufacturer|Freya}}</nowiki></code> gives {{manufacturer|Freya}}.
* <code><nowiki>{{film|Supervixens|year=1}}</nowiki></code> gives {{film|Supervixens|year=1}}.
* <code><nowiki>{{manufacturer|Freya|logo=1}}</nowiki></code> gives {{manufacturer|Freya|logo=1}}.
* <code><nowiki>{{film|Supervixens|director=1}}</nowiki></code> gives {{film|Supervixens|director=1}}.
 
* <code><nowiki>{{film|Supervixens|year=1|director=1}}</nowiki></code> gives {{film|Supervixens|year=1|director=1}}.
Non-existing manufacturer:
Non-existing film:
* <code><nowiki>{{manufacturer|Non-existing manufacturer|logo=1}}</nowiki></code> gives {{manufacturer|Non-existing manufacturer|logo=1}}.
* <code><nowiki>{{film|Non-existing film|year=1|director=1}}</nowiki></code> gives {{film|Non-existing film|year=1|director=1}}.
 
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.


If a template for "Non-existing film" is created some day, the full data will be displayed like in the above examples.{{Filmography start/doc}}== Infobox (style = infobox) ==
;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 film, 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.
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 film's template is changed, you article will display the new data in 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
;Example
<code><nowiki>{{film|Supervixens|style=infobox}}</nowiki></code>
<code><nowiki>{{manufacturer|Freya|style=infobox}}</nowiki></code>


creates an infobox for [[Supervixens]] on your page.
creates an infobox for [[Freya]] on your page.


== Changing film data ==
== Changing manufacturer data ==
Please note that {{tl|film}} does '''not''' store any information about a single film itself. It is only a metatemplate that uses the specific container templates to display the desired data.
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 film (for example if you want to add a person to the cast), go to the film's own data container template and change it.
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 {{film|Supervixens}},
To change data of {{manufacturer|Freya}},
* go to {{cl|Film templates}};
* go to {{cl|Manufacturer templates}};
* choose Template:Supervixens and click on the '''edit''' tab;
* choose Template:Freya and click on the '''edit''' tab;
* follow the instructions given in the section '''If you want to change film data:'''.
* 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

This is a documentation subpage for Template:Manufacturer (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

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


.

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:.