Template:Selected DYK/doc
Appearance
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
[edit]{{Selected DYK
| image =
| size =
| caption =
| text = <!--- Required --->
| link =
}}
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 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
[edit]{{Selected DYK
| image = Modern Charcuterie display.jpg
| size =
| caption =
| text = that '''charcuterie''' is derived ... ?
| link = charcuterie
}}
Will produce:
See also
[edit]Portal content templates
- To display "selected content" on the portal main page
- {{Transclude list item excerpts as random slideshow}}—transcludes excerpts from recognized content lists, which are populated by a bot.
- {{Transclude random subpage}}—transcludes random portal subpage.
- {{Random portal component}}—transcludes random portal subpage.
- {{Random subpage}}—transcludes random portal subpages.
- {{Portal pictures}}—transcludes a slideshow of pictures, utilizing a single-page gallery.
- To organize "selected content" on subpages
- {{Numbered subpages}}—outputs an automatic index, transcluding numbered subpages.
- {{Portal subpage}}—outputs a box linking to and transcluding a single subpage.
- {{Portal subpage inline}}—outputs an unordered list item linking to and transcluding a single subpage.
Main portal page formatting templates
- {{Box-header}}
- {{Box-header-plain}}
- {{Box-header-round}}
- {{Box-header-square}}
- {{Box-header-watch}}
- {{Box-footer}}
Templates that configure links
- {{Portal}}
- {{Portal bar}}
- {{Portal-inline}}
- {{Pbox}}
- {{Portals}}
- {{Portals browsebar}}
- {{Related portals}}
- {{Wikimedia for portals}}
Selected page templates, used on subpages of older portals
- {{Selected article}}
- {{Selected biography}}
- {{Selected business}}
- {{Selected DYK}}
- {{Selected ingredient}}
- {{Selected location}}
- {{Selected picture}}
- {{Selected product}}
- {{Selected publication}}
- {{Selected quote}}
- {{Selected recipe}}
- {{Selected X}}
Related templates