Jump to content

Template:Portal list item

From Wikitech
Template documentation

Usage

For creating lists that point to portals (e.g. on Main Page). If no image is needed use Template:Portal list item noimage. The two templates can be used interchangeably.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Portal list item

[[Category:Templates using TemplateData{{#translation:}}]]

Portal description for a list of portals

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
namename

Name of portal

Example
Toolforge
Stringrequired
imageimage

Portal logo image

Example
File:Toolforge logo.svg
Filerequired
altalt

Alt text for portal logo

Example
Wikimedia Toolforge logo
Stringoptional
linklink

Portal page link

Example
Portal:Toolforge
Page namerequired
descriptiondescription

Description of portal

Example
'''Toolforge''' (or '''Tools''') is a hosting environment for ...
Contentrequired

Example

<div class="mw-tpl-portal-list"><div class="mw-tpl-portal-list-caption">Portals</div>
{{Portal list item
|name=Toolforge
|image=File:Toolforge logo.svg
|alt=Wikimedia Toolforge logo
|link=Portal:Toolforge
|description='''Toolforge''' (or '''Tools''') is a hosting environment for community developers working on tools and bots that help users ...
}}
{{Portal list item
...
}}
{{Portal list item
...
}}
</div>

Suggested CSS

See Template:Portal_list_item/styles.css