Predefinição:Portais relacionados
Aspeto
Descrição[editar código-fonte]
Esta predefinição simplifica a criação e manutenção da caixa de "portais relacionados" com as páginas de portais. Ela cria uma linha de 1 a 10 com links clicáveis para portais relacionados.
Consider using the template {{Portais relacionados2}}
instead; this is easier to use, and creates a "Related portals" section that scales itself neatly to the available screen space, even on mobile devices.
Uso[editar código-fonte]
- portalcount - Required; the number of portal links in the line. The template supports up to 10, but this will be too many for users with a narrow monitor.
- size - Optional; the size of each portal image. This defaults to 60x60px which seems about right
- These must be followed by pairs of unnamed parameters:
- An image name, with no "File:" or "Image:" prefix. Optional; if blank then a default image will be used
- The name of the portal to be linked to, with no "Portal:" prefix
If the portal name is too long to display neatly, then consider creating a redirect from a shorter name to the portal page, and using that shorter name in the list passed to this template.
Exemplo[editar código-fonte]
{{Portais relacionados|portalcount=5 | Apple Campus One Infinite Loop Sign.jpg | Apple Inc. | Circle of spam.svg | Computer security | <!-- Let's pretend this was deleted --> | Computer science | Computer-aj aj ashton 01.svg | Tecnologias de informação | Wave.svg | Java }}
Ver também[editar código-fonte]
- Predefinição:Portais relacionados item
- Predefinição:Portais relacionados2
- Predefinição:Portal Imagem
A documentação acima é transcluída de Predefinição:Portais relacionados/doc. (editar | histórico) Editores podem experimentar nas páginas de teste (criar | espelhar) e de exemplos para testes (criar) desta predefinição. Por favor adicione categorias à subpágina /doc. Subpáginas desta predefinição. |