Template:PortalDYK/doc
Jump to navigation
Jump to search
| This is a documentation subpage for Template:PortalDYK. It contains usage information, categories, and other content that is not part of the original template page. |
| This template uses Lua: |
For portal pages, used in Portal DYK blurbs. The earlier system for displaying DYKs on portal pages lead to numerous duplicate entries, which this template avoids.
Usage
{{PortalDYK|Pagename|3<!-- number of random bulleted items retrieved -->}}
The {{{1}}} parameter specifies a pagename. The {{{2}}} parameter determines the number of bulleted items randomly taken from the pagename.
Formatting of pagename
The specified page must be formatted as a list of bulleted items. Nested bullets are not supported (i.e. "**foo"). Here is an example.
*... Example1 *... Example2 *... Example3
An arbitrary amount of bulleted items can be supported.