Template:Selected DYK/doc
Jump to navigation
Jump to search
File:Edit-copy green.svg | This is a documentation subpage for Template:Selected DYK. It may contain usage information, categories and other content that is not part of the original template page. |
If you are using the {{Random subpage}} template, do not use this template as the resulting Did you know... section will not be formatted correctly. |
This template is designed to be used with the {{Random portal component}} and {{Random portal component with nominate}} templates.
Template layout
{{Selected DYK | image = | size = | caption = | text = <!--- Required ---> | link = }}
Usage
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 250px.
- caption - Creates a caption for the image.
- text - is the "Did you know" verbiage. No quotation marks needed.
- link - is the link to the article the subject is referring.
Examples
{{Selected DYK | image = Modern Charcuterie display.jpg | size = | caption = | text = that '''charcuterie''' is derived ... ? | link = charcuterie }}
Will produce:
See also
- 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
3
- Templates that configure links
3
- These templates are used to format the articles on the sub-pages
{{Selected X}}—Generic template for situations not listed hereafter.
3
- Related templates