Template:Specific article with intro: Difference between revisions
Created page with "<div class="random-article" style="border: 1px solid #aaa; padding: 10px; background: #f9f9f9; margin: 10px;"> <div style="font-weight: bold; font-size: 1.2em; text-align: center;"> {{#if: {{{intro|}}} | {{{intro}}} | Featured Article }} </div> <div style="margin-top: 10px; text-align: center;"> {{Special:Random/{{{prefix|}}}}} </div> </div> <noinclude> == Usage == This template is used to display a random article with a customizable introduction. === Parameters === * '..." |
|||
| Line 24: | Line 24: | ||
== Notes == | == Notes == | ||
* Ensure articles exist in the specified namespace or with the given prefix. | |||
* Works best for portals or topic-specific pages. | |||
</noinclude> | </noinclude> | ||
Revision as of 09:17, 11 December 2024
Featured Article
Usage
This template is used to display a random article with a customizable introduction.
Parameters
- intro: The introductory text or message. Defaults to "Featured Article."
- prefix: The namespace or topic prefix for selecting random articles (e.g., "Bangladesh").
Example
{{Random article with intro
| intro = Explore a featured article about Bangladesh:
| prefix = Bangladesh
}}
Notes
- Ensure articles exist in the specified namespace or with the given prefix.
- Works best for portals or topic-specific pages.