Template:Specific article with intro: Difference between revisions

From Bhikitia Pro, An open encyclopedia
Blossom (talk | contribs)
Blossom (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="random-article" style="border: 1px solid #aaa; padding: 10px; background: #f9f9f9; margin: 10px;">
<div class="specific-article" style="border: 1px solid #aaa; padding: 10px; background: #f9f9f9; margin: 10px;">
<div style="font-weight: bold; font-size: 1.2em; text-align: center;">
<div style="font-weight: bold; font-size: 1.2em; text-align: center;">
{{#if: {{{intro|}}} | {{{intro}}} | Featured Article }}
{{#if: {{{intro|}}} | {{{intro}}} | Featured Article }}
</div>
</div>
<div style="margin-top: 10px; text-align: center;">
<div style="margin-top: 10px; text-align: center;">
{{Special:Random/{{{prefix|}}}}}
{{#if: {{{article|}}}
| [[{{{article}}}|Read more about "{{{article}}}" →]]
| No article specified. Please provide an article name using <code>article</code> parameter.
}}
</div>
</div>
</div>
</div>
<noinclude>
<noinclude>
== Usage ==
== Usage ==
This template is used to display a random article with a customizable introduction.
This template is used to display a specific article with a customizable introduction.


=== Parameters ===
=== Parameters ===
* '''intro''': The introductory text or message. Defaults to "Featured Article."
* '''intro''': The introductory text or message. Defaults to "Featured Article."
* '''prefix''': The namespace or topic prefix for selecting random articles (e.g., "Bangladesh").
* '''article''': The specific article name to display.


=== Example ===
=== Example ===
<pre>
<pre>
{{Random article with intro
{{Specific article with intro
| intro = Explore a featured article about Bangladesh:
| intro = Learn more about a key figure in Bangladesh:
| prefix = Bangladesh
| article = Sheikh Mujibur Rahman
}}
}}
</pre>
</pre>


== Notes ==
== Notes ==
* Ensure articles exist in the specified namespace or with the given prefix.
- Ensure the article name is correctly spelled and exists in the wiki.
* Works best for portals or topic-specific pages.
- Suitable for portals or topic-specific pages.
 
== See Also ==
- [[Template:Random article with intro]]
</noinclude>
</noinclude>

Latest revision as of 09:21, 11 December 2024

Featured Article

No article specified. Please provide an article name using article parameter.

Usage

This template is used to display a specific article with a customizable introduction.

Parameters

  • intro: The introductory text or message. Defaults to "Featured Article."
  • article: The specific article name to display.

Example

{{Specific article with intro
| intro = Learn more about a key figure in Bangladesh:
| article = Sheikh Mujibur Rahman
}}

Notes

- Ensure the article name is correctly spelled and exists in the wiki. - Suitable for portals or topic-specific pages.

See Also

- Template:Random article with intro