Template:Portal-link/doc

From Old School Near-Reality Wiki
< Template:Portal-link
Revision as of 18:53, 4 October 2022 by Jacmob (talk | contribs) (Created page with "{{Documentation}} This template creates a clickable "tile". It is used in conjunction with Template:Portal-links. ==Usage== <pre> {{Portal-link|text to be displayed|optional page link|class=optional class|file=optional file to display before link|filesize=override to file size}} </pre> Available classes are listed below: * Coloring: ** none (default) ** <code>article</code> ** <code>file</code> ** <code>template</code> * Width: ** none (default) ** <code>wide</co...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Information icon-grey.png
This is a documentation subpage for Template:Portal-link.
It contains usage information, categories, and other content that is not part of the original template page.

This template creates a clickable "tile". It is used in conjunction with Template:Portal-links.

Usage

{{Portal-link|text to be displayed|optional page link|class=optional class|file=optional file to display before link|filesize=override to file size}}

Available classes are listed below:

  • Coloring:
    • none (default)
    • article
    • file
    • template
  • Width:
    • none (default)
    • wide
    • compact

Example

{{Portal-link|RuneScape|bucket}}

Produces plain styling:


{{Portal-link|Catacombs of Kourend|osrsw:Catacombs of Kourend|class=article wide}}

Produces wide styling:

Catacombs of Kourend


{{Portal-link|Orb of oculus|class=compact file}}

Produces styling with colors that match file messageboxes, as specified in RS:THEME:


{{Portal-link|Abyssal whip|file=Abyssal whip.png|class=article}}

Add an image before the text:

Abyssal whip.pngAbyssal whip

By default filesize is 35x35px, but that can be changed if necessary. The file is automatically set to frameless, so it will not be increased in size.