Template:Selected business

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

{{{text}}}

More selected businesses... [[{{{link}}}|Read more...]]
Template documentation[view] [edit] [history] [purge]

This template is used to configure the articles found in the Selected business section found on some Wikipedia Portal main pages. Used it on the article pages that are linked to the Selected business sub-page, e.g. Portal:Foo/Selected business/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 business
| image   = 
| size    = 
| caption = 
| page    = <!--- Required --->
| type    = <!--- Required if using custom name. --->
| 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.
  • caption - Creates a caption for the image.
  • page - is used to set the page that the business list resides on, e.g. |name=winery would set More selected foo link to look for the sub-pages at Portal:Wine/Selected winery and appear as More selected wineries.
  • type - sets the type of business in the More selected foo link, in the example above the value of wineries makes it read More selected wineries. This value should always be stated in a plural form. It will default to More selected businesses 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]

{{Selected business
| image   = Johannisberg Rheingau.jpg
| size    = 
| caption = Schloss Johannisberg within its vineyards
| page    = winery
| type    = wineries
| text    = '''Schloss Johannisberg''' is a winery in the [[Rheingau (wine region)|Rheingau wine-growing region]] in Germany...
| link    = Schloss Johannisberg
}}

Will produce this

Schloss Johannisberg within its vineyards
Schloss Johannisberg is a winery in the Rheingau wine-growing region in Germany, that has been making wine for over 900 years. A mountain on the north bank of the River Rhine near Mainz has been associated with the Church and with winemaking since the Dark Ages, when Ludwig der Fromme ("Louis the Pious") made 6000 litres of wine during the reign of Charlemagne. In 1100, Benedictine monks completed a monastery on the Bischofsberg ("Bishop's") mountain, having identified the site as one of the best places to grow vines. 30 years later they built a Romanesque basilica in honour of John the Baptist, and the hill became known as Johannisberg (John's mountain). It was constructed according to similar floor plans as its mother house, St. Alban's Abbey, Mainz. As such the monastery was a prime target for the Anabaptists in the German Peasants' War of 1525, and it was destroyed.
More selected wineries... Read more...

See also[edit]

Main portal creation templates

  • {{Box portal skeleton}}—Used to create portal main pages.
  • {{Random portal component}}—Used on the portal main page to randomly display articles from the portal sub-pages.
  • {{Random portal component with nominate}}—Used on the portal main page to randomly display articles from the portal sub-pages, adding the option to nominate other Featured foo articles.
  • {{Random subpage}}—Used on the portal main page to randomly display articles from the portal sub-pages. This template is best used for creating randomly populated Did you know... sections on the portal main page that are intended to include multiple Did you know... facts.
  • {{Subpage}}—Used to output a box containing a link to subpage.
  • {{Numbered subpages}}—Used to create article links on portal sub-pages with 50 links.
    • {{Numbered subpages|max=25}}—As hereinbefore, but with 25 links.
    • {{Numbered subpages|max=75}}—As hereinbefore, but with 75 links.
    • {{Numbered subpages|max=100}}—As hereinbefore, but with 100 links.
  • {{Random box-header subpage}}—Used to transclude a numbered subpage.

Main portal page formatting templates

Templates that configure links

These templates are used to format the articles on the sub-pages

{{Selected X}}—Generic template for situations not listed hereafter.

Related templates

Purge server cache