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 === * '..." |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<div class=" | <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;"> | ||
{{ | {{#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 | 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." | ||
* ''' | * '''article''': The specific article name to display. | ||
=== Example === | === Example === | ||
<pre> | <pre> | ||
{{ | {{Specific article with intro | ||
| intro = | | intro = Learn more about a key figure in Bangladesh: | ||
| | | article = Sheikh Mujibur Rahman | ||
}} | }} | ||
</pre> | </pre> | ||
== Notes == | == Notes == | ||
- Ensure | - 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]] | |||
</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.