Template:Category portal: Difference between revisions
Template page
More actions
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..." |
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}}}| | | [[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). | ||
=== Example === | === Example === | ||
<pre> | <pre> | ||
{{Category portal|Bangladesh | {{Category portal|Bangladesh}} | ||
</pre> | </pre> | ||
=== Output === | === Output === | ||
{{Category portal|Bangladesh}} | |||
== 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.