Jump to content

Template:Selected product/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
See also: Add more links to related templates
m syntaxhighlight lang="wikitext"
 
(14 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template is used to configure the articles found in the '''''Selected product''''' section found on some Wikipedia Portal main pages. Use it on the article pages that are linked to the Selected product sub-page, e.g. '''Portal:''Foo''/Selected product/1'''.
This template is used to configure the articles found in the '''''Selected product''''' section found on some Wikipedia Portal main pages. Use it on the article pages that are linked to the Selected product sub-page, e.g. '''Portal:''Foo''/Selected product/1'''. For the quickest and easiest way to create the '''Portal:''Foo''/Selected ''bar''''' sub-page and related article links, use one of the {{tl|Numbered subpages}} templates.


== Template layout ==
== Template layout ==
<pre width="75%">
<syntaxhighlight lang="wikitext" width="75%">
{{Selected product
{{Selected product
| image =
| image =
Line 16: Line 16:
| link = <!--- Required --->
| link = <!--- Required --->
}}
}}
</syntaxhighlight>
</pre>


== Usage ==
== Usage ==
Line 32: Line 32:


== Example ==
== Example ==

=== Long form ===
=== Long form ===
The long form of this template places the products name immediately to the left of the portrait and gives you the option of adding the manufacturer of the product. If the '''''|name=''''' field is not included, the template will not include the '''''|mfr=''''' parameter.
The long form of this template places the products name immediately to the left of the portrait and gives you the option of adding the manufacturer of the product. If the '''''|name=''''' field is not included, the template will not include the '''''|mfr=''''' parameter.


<syntaxhighlight lang="wikitext">
<pre>
{{Selected product
{{Selected product
| image = Redstripe2.jpg
| image = Red Stripe.JPG
| size =
| size =
| caption = A bottle of Red Stripe
| caption = A bottle of Red Stripe
Line 48: Line 47:
| link = Red Stripe
| link = Red Stripe
}}
}}
</syntaxhighlight>
</pre>


Will produce this
Will produce this


{{Selected product
{{Selected product
| image = Redstripe2.jpg
| image = Red Stripe.JPG
| size =
| size =
| caption = A bottle of Red Stripe
| caption = A bottle of Red Stripe
Line 60: Line 59:
| page = beer
| page = beer
| type = beers
| type = beers
| text = Red Stripe is a [[Jamaica]]n [[lager]]-style [[beer]] brewed by Desnoes & Geddes Limited. The first Red Stripe was brewed in the Surry Brewery in [[1928]], an [[ale]] style beer that was too heavy to suit local preferences. The current lager formulation was first produced in [[1938]] from a recipe developed by Paul H. Geddes and Bill Martindale. The modern brewery was opened at Hunt's Bay in [[1958]]. In [[1993]], 51 percent ownership in Desnoes & Geddes Limited was purchased by [[Guinness]] Brewing Worldwide, now [[Diageo]], an acquisition that has significantly increased the international distribution of Red Stripe. A new Red Stripe Light has also been added which is brewed in Jamaica and bottled in the Guinness facilities in [[Stamford, Connecticut]].
| text = Red Stripe is a [[Jamaica]]n [[lager]]-style [[beer]] brewed by Desnoes & Geddes Limited. The first Red Stripe was brewed in the Surry Brewery in 1928, an [[ale]] style beer that was too heavy to suit local preferences. The current lager formulation was first produced in 1938 from a recipe developed by Paul H. Geddes and Bill Martindale. The modern brewery was opened at Hunt's Bay in 1958. In 1993, 51 percent ownership in Desnoes & Geddes Limited was purchased by [[Guinness]] Brewing Worldwide, now [[Diageo]], an acquisition that has significantly increased the international distribution of Red Stripe. A new Red Stripe Light has also been added which is brewed in Jamaica and bottled in the Guinness facilities in [[Stamford, Connecticut]].
| link = Red Stripe
| link = Red Stripe
}}
}}
Line 67: Line 66:


=== Short form ===
=== Short form ===
<syntaxhighlight lang="wikitext">
<pre>
{{Selected product
{{Selected product
| image = Redstripe2.jpg
| image = Red Stripe.JPG
| size =
| size =
| caption = A bottle of Red Stripe
| caption = A bottle of Red Stripe
Line 77: Line 76:
| link = Red Stripe
| link = Red Stripe
}}
}}
</syntaxhighlight>
</pre>


Will produce this
Will produce this


{{Selected product
{{Selected product
| image = Redstripe2.jpg
| image = Red Stripe.JPG
| size =
| size =
| caption = A bottle of Red Stripe
| caption = A bottle of Red Stripe
| page = beer
| page = beer
| type = beers
| type = beers
| text = '''Red Stripe''' is a [[Jamaica]]n [[lager]]-style [[beer]] brewed by Desnoes & Geddes Limited. The first Red Stripe was brewed in the Surry Brewery in [[1928]], an [[ale]] style beer that was too heavy to suit local preferences. The current lager formulation was first produced in [[1938]] from a recipe developed by Paul H. Geddes and Bill Martindale. The modern brewery was opened at Hunt's Bay in [[1958]]. In [[1993]], 51 percent ownership in Desnoes & Geddes Limited was purchased by [[Guinness]] Brewing Worldwide, now [[Diageo]], an acquisition that has significantly increased the international distribution of Red Stripe. A new Red Stripe Light has also been added which is brewed in Jamaica and bottled in the Guinness facilities in [[Stamford, Connecticut]].
| text = '''Red Stripe''' is a [[Jamaica]]n [[lager]]-style [[beer]] brewed by Desnoes & Geddes Limited. The first Red Stripe was brewed in the Surry Brewery in 1928, an [[ale]] style beer that was too heavy to suit local preferences. The current lager formulation was first produced in 1938 from a recipe developed by Paul H. Geddes and Bill Martindale. The modern brewery was opened at Hunt's Bay in 1958. In 1993, 51 percent ownership in Desnoes & Geddes Limited was purchased by [[Guinness]] Brewing Worldwide, now [[Diageo]], an acquisition that has significantly increased the international distribution of Red Stripe. A new Red Stripe Light has also been added which is brewed in Jamaica and bottled in the Guinness facilities in [[Stamford, Connecticut]].
| link = Red Stripe
| link = Red Stripe
}}
}}


== See also ==
== See also ==
{{Portal template list}}
* {{tl|Box portal skeleton}} - used to create portal main pages
* {{tl|Random portal component}} - used on the portal main page to randomly displaye articles on portal sub-pages
* {{tl|Numbered subpages}} - used to create article links on portal sub-pages


<includeonly>{{Sandbox other||
These templates are used to create the articles on the subpages:
<!-- ADD CATEGORIES BELOW THIS LINE -->
* {{tl|Selected article}}
[[Category:Wikipedia Portal templates|{{PAGENAME}}]]
* {{tl|Selected biography}}
* {{tl|Selected business}}
* {{tl|Selected DYK}}
* {{tl|Selected ingredient}}
* {{tl|Selected quote}}
* {{tl|Selected picture}}


<includeonly>
}}</includeonly>
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
[[Category:Wikipedia Portal templates|S]]
</includeonly>

Latest revision as of 20:55, 2 June 2023

This template is used to configure the articles found in the Selected product section found on some Wikipedia Portal main pages. Use it on the article pages that are linked to the Selected product sub-page, e.g. Portal:Foo/Selected product/1. For the quickest and easiest way to create the Portal:Foo/Selected bar sub-page and related article links, use one of the {{Numbered subpages}} templates.

Template layout

[edit]
{{Selected product
| image   = 
| size    = 
| caption = 
| name    =
| mfr     =
| page    = <!--- Required --->
| type    = <!--- Required if using custom name, e.g beers. It should be plural and will default to products. --->
| text    = <!--- Required --->
| link    = <!--- Required --->
}}

Usage

[edit]

It is unnecessary to include braces, quotation marks or other wiki-markup in the template. The |text= field does allow the use of wiki-markup at the contributor's discretion.

  • image - Places an image relating to the subject of the article on the left side of the section.
  • size - Sets the image size, if left out or left blank it will default to 150px. Values must be entered xxxpx.
  • caption - Creates a caption for the image.
  • name - The name of the product.
  • mfr - Manufacturer of the product.
  • page - is used to set the page that the product list resides on, e.g. |name=beer would set More selected foo link to look for the sub-pages at Portal:Beer/Selected beer.
  • type - sets the type of business in the More selected foo link, in the example above the value of beers makes it read More selected beers. This value should always be stated in a plural form. It will default to More selected products if left blank or left out.
  • text - A brief summary of the subject.
  • link - sets the link in the Read more... that points to the full article.

Example

[edit]

Long form

[edit]

The long form of this template places the products name immediately to the left of the portrait and gives you the option of adding the manufacturer of the product. If the |name= field is not included, the template will not include the |mfr= parameter.

{{Selected product
| image   = Red Stripe.JPG
| size    = 
| caption = A bottle of Red Stripe
| name    = Red Stripe lager
| mfr     = Desnoes & Geddes Limited
| page    = beer
| type    = beers
| text    = Red Stripe is a [[Jamaica]]n [[lager]]-style [[beer]] brewed by Desnoes & Geddes Limited...
| link    = Red Stripe
}}

Will produce this

A bottle of Red Stripe
A bottle of Red Stripe

Red Stripe lager
Produced by Desnoes & Geddes Limited

Red Stripe is a Jamaican lager-style beer brewed by Desnoes & Geddes Limited. The first Red Stripe was brewed in the Surry Brewery in 1928, an ale style beer that was too heavy to suit local preferences. The current lager formulation was first produced in 1938 from a recipe developed by Paul H. Geddes and Bill Martindale. The modern brewery was opened at Hunt's Bay in 1958. In 1993, 51 percent ownership in Desnoes & Geddes Limited was purchased by Guinness Brewing Worldwide, now Diageo, an acquisition that has significantly increased the international distribution of Red Stripe. A new Red Stripe Light has also been added which is brewed in Jamaica and bottled in the Guinness facilities in Stamford, Connecticut. (Full article...)

Because the |name= field formats the subject's name so that it is in bold text, it is suggested that you do not put the subjects name in bold in the text of the article.

Short form

[edit]
{{Selected product
| image   = Red Stripe.JPG
| size    = 
| caption = A bottle of Red Stripe
| page    = beer
| type    = beers
| text    = '''Red Stripe''' is a [[Jamaica]]n [[lager]]-style [[beer]] brewed by Desnoes & Geddes Limited...
| link    = Red Stripe
}}

Will produce this

A bottle of Red Stripe
A bottle of Red Stripe

Red Stripe is a Jamaican lager-style beer brewed by Desnoes & Geddes Limited. The first Red Stripe was brewed in the Surry Brewery in 1928, an ale style beer that was too heavy to suit local preferences. The current lager formulation was first produced in 1938 from a recipe developed by Paul H. Geddes and Bill Martindale. The modern brewery was opened at Hunt's Bay in 1958. In 1993, 51 percent ownership in Desnoes & Geddes Limited was purchased by Guinness Brewing Worldwide, now Diageo, an acquisition that has significantly increased the international distribution of Red Stripe. A new Red Stripe Light has also been added which is brewed in Jamaica and bottled in the Guinness facilities in Stamford, Connecticut. (Full article...)

See also

[edit]

Portal content templates

Main portal page formatting templates

Templates that configure links

Selected page templates, used on subpages of older portals

Related templates