Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Main Page/Sandbox/Component of the day: Difference between revisions

Template page
Xeravax (talk | contribs)
No edit summary
Xeravax (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>Uses DPL4 to show one random page from the Component namespace. The blurb is taken from each page’s '''Summary''' section (level 2 heading: <code>== Summary ==</code>). If a Component page has no Summary section, only the link and “—” are shown.</noinclude><includeonly>{{#dpl:
<noinclude>Uses DPL4 to show five random pages from the Component namespace. Same five for the whole day (randomseed=date).</noinclude><includeonly>{{#dpl:
|namespace = Component
|namespace = Component
|randomcount = 1
|randomcount = 3
|count = 500
|count = 500
|randomseed = {{#time:Ymd}}
|randomseed = {{#time:Ymd}}
|allowcachedresults = true
|cacheperiod = 86400
|redirects = exclude
|redirects = exclude
|shownamespace = false
|shownamespace = false
|include = #Summary
|resultsheader = <ul>
|format = ,'''[[%PAGE%|%TITLE%]]''' — ,\n,
|resultsfooter = </ul>
|format = ,<li>'''[[%PAGE%|%TITLE%]]'''</li>\n,
|noresultsheader = '''[[Component]]''' — <translate>Component of the day (no components in namespace yet).</translate>
|noresultsheader = '''[[Component]]''' — <translate>Component of the day (no components in namespace yet).</translate>
}}</includeonly>
}}</includeonly>

Latest revision as of 12:35, 4 February 2026

Uses DPL4 to show five random pages from the Component namespace. Same five for the whole day (randomseed=date).