Template:Category portal: Difference between revisions

From Bhikitia Pro, An open encyclopedia
Blossom (talk | contribs)
Created page with "<div class="category-portal" style="border: 1px solid #aaa; padding: 5px; background: #f9f9f9; text-align: center; margin: 10px 0; font-size: smaller;"> {{#if: {{{1|}}} | [[Portal:{{{1}}}|{{#if: {{{icon|yes}}}|[[File:Portal-puzzle.svg|20px|link=Portal:{{{1}}}]] }} Portal:{{{1}}}]] | No category specified. Please provide the portal name as the first parameter. }} </div> <noinclude> == Usage == This template creates a small link to a specific portal associated with a categ..."
 
Blossom (talk | contribs)
No edit summary
 
Line 1: Line 1:
<div class="category-portal" style="border: 1px solid #aaa; padding: 5px; background: #f9f9f9; text-align: center; margin: 10px 0; font-size: smaller;">
<div class="category-portal" style="border: 1px solid #aaa; padding: 5px; background: #f9f9f9; text-align: center; margin: 10px 0; font-size: smaller;">
{{#if: {{{1|}}}
{{#if: {{{1|}}}
| [[Portal:{{{1}}}|{{#if: {{{icon|yes}}}|[[File:Portal-puzzle.svg|20px|link=Portal:{{{1}}}]] }} Portal:{{{1}}}]]
| [[Portal:{{{1}}}|Portal:{{{1}}}]]
| No category specified. Please provide the portal name as the first parameter.
| No category specified. Please provide the portal name as the first parameter.
}}
}}
Line 11: Line 11:
=== Parameters ===
=== Parameters ===
* '''1''': The name of the portal (and associated category).
* '''1''': The name of the portal (and associated category).
* '''icon''': Optional. If set to "yes," displays a small portal icon (default: yes).


=== Example ===
=== Example ===
<pre>
<pre>
{{Category portal|Bangladesh|icon=yes}}
{{Category portal|Bangladesh}}
</pre>
</pre>


=== Output ===
=== Output ===
A link to:
{{Category portal|Bangladesh}}
[[Portal:Bangladesh]] with an optional icon.
 


== Notes ==
== Notes ==

Latest revision as of 09:42, 11 December 2024

No category specified. Please provide the portal name as the first parameter.

Usage

This template creates a small link to a specific portal associated with a category.

Parameters

  • 1: The name of the portal (and associated category).

Example

{{Category portal|Bangladesh}}

Output


Notes

- Ensure the portal name matches an existing portal in your wiki. - Use this template to add category-related portal links to category pages.

See Also

- Template:Portal - Template:Portal bar