Template:Main Page/Sandbox/Component of the day: Difference between revisions
Template page
More actions
Created page with "<includeonly>{{#dpl: |namespace = Component |randomcount = 1 |count = 500 |randomseed = {{#time:Ymd}} |redirects = exclude |shownamespace = false |format = ,'''%TITLE%''' — <translate>Learn more in the Component reference.</translate>\n, |noresultsheader = '''Component''' — <translate>Component of the day (no components in namespace yet).</translate> }}</includeonly>" |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#dpl: | <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: | ||
|namespace = Component | |namespace = Component | ||
|randomcount = 1 | |randomcount = 1 | ||
| Line 6: | Line 6: | ||
|redirects = exclude | |redirects = exclude | ||
|shownamespace = false | |shownamespace = false | ||
|format = ,'''[[%PAGE%|%TITLE%]]''' — | |include = #Summary | ||
|format = ,'''[[%PAGE%|%TITLE%]]''' — ,\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> | ||
Revision as of 12:26, 4 February 2026
Uses DPL4 to show one random page from the Component namespace. The blurb is taken from each page’s Summary section (level 2 heading: == Summary ==). If a Component page has no Summary section, only the link and “—” are shown.