Fyrimynd:Selected X/doc
Hetta er ein dokumentatión undirsíða til Fyrimynd:Selected X. Hon inniheldur kunning um nýtsluna, bólkar og um annað innihald, ið ikki er við í uppruna fyrimynd síðuni. |
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here. |
This template is used to configure the articles found in non-standard sections on Wikipedia Portal main pages; for example, Selected battle. It is used on the article pages that are linked to the Selected (whatever) sub-page, e.g. Portal:Foo/Selected whatever/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
rætta{{Selected X | image = | size = | side = | caption = | text = <!--- Required ---> | link = <!--- Required ---> | page = <!--- Required ---> | pageplural = | archive = }}
Usage
rættaIt 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 - Image relating to the subject of the article.
- size - Set the size of the image here, it will default to 250px if no size is specified.
- side - Set the location of the image here, it will default to left if no side is specified. Use right or center as the variable.
- caption- Image caption, if any.
- text - A brief summary of the subject.
- link - Wikilink to the main article about the subject.
- archive - Using this field with a value of no will remove the More selected articles link in the lower left corner. Use this field if you are using the |footer= parameter in the {{random box-header subpage}} template on the main portal page.
- page - What this is a list of selected things of. For example, if you want to link to Portal:Foo/Selected battle, page = battle.
- pageplural - Used to override simply adding an "s" to the end of "page" to pluralise it. For instance, for Portal:Foo/Selected company', pageplural = companies
Example
rætta{{Selected X | image = Coq au vin.jpg | size = | caption = Coq au vin | text = '''''Coq au vin''''' is a [[France|French]] [[braise]] of [[Chicken (food)|chicken]] cooked with [[wine]], [[lardon]]s, [[Edible mushrooms|mushroom]]s, and optionally [[garlic]]... | link = Coq au vin | page = food | pageplural = food }}
Will produce this:
Coq au vin is a French braise of chicken cooked with wine, lardons, mushrooms, and optionally garlic...
While the wine is typically Burgundy, many regions of France have variants of coq au vin using the local wine, such as coq au vin jaune (Jura), coq au Riesling (Alsace), coq au pourpre or coq au violet (Beaujolais nouveau), coq au Champagne, and so on. |
See also
rætta- 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.
- {{25 numbered subpages}}—As hereinbefore, but with 25 links.
- {{75 numbered subpages}}—As hereinbefore, but with 75 links.
- {{100 numbered subpages}}—As hereinbefore, but with 100 links.
- {{Random box-header subpage}}—Used to transclude a numbered subpage.
- Main portal page formatting templates
- {{Boxheader}}
- {{Box-header}}
- {{Box-header1}}
- {{Box-header2}}
- {{Box-Header II}}
- {{Box-header-blank}}
- {{Box-header-groovy}}
- {{Box-header-health}}
- {{Box-header-plain}}
- {{Box-header-round}}
- {{Box-header-square}}
- {{Box-header-watch}}
- {{Boxfooter}}
- {{Box-footer}}
- {{Box-footer2}}
- Templates that configure links
- {{Portal}}
- {{Portal bar}}
- {{Portal-inline}}
- {{Portals}}
- {{Portals browsebar}}
- {{Related portals}}
- {{Related portals2}}
- {{Wikimedia for portals}}
- These templates are used to format the articles on the sub-pages
{{Selected X}}—Generic template for situations not listed hereafter.
- {{Selected article}}
- {{Selected biography}}
- {{Selected business}}
- {{Selected DYK}}
- {{Selected ingredient}}
- {{Selected location}}
- {{Selected picture}}
- {{Selected product}}
- {{Selected publication}}
- {{Selected quote}}
- {{Selected recipe}}
- Related templates