Template:Link and Image

From Sunrust Wiki
Jump to navigation Jump to search
50px Template documentation[view] [edit] [history] [purge]

This template is used for adding an image with a text, if the image exists, then the image will be shown.

Note: This template might be limited up to 500 per page.

Usage

This template has four unnamed parameters.

The first parameter is the link and text, it will be the link to redirect.

  • if "!", then no link will be used, not implemented for text.
  • It will be used as text if third parameter isn't defined.

The second parameter is the image, e.g.: "File:weapon_zs_bustersword.png"

  • If the image do not exist, then it will not be rendered.

The third parameter is optional, it is text to be shown.

The fourth parameter is optional, it is the extra parameter for image, it can be used to set the width or some others parameters

  • Use {{!}} instead of |.
  • You don't need to add {{!}} at the beginning.

Examples

Wikitext What is rendered
{{Template:Link_and_Image|Buster Sword|File:weapon_zs_bustersword.png}}
Weapon zs bustersword.pngBuster Sword
{{Template:Link_and_Image|Buster Sword|File:weapon_zs_bustersword.png|Breaker Blade}}
Weapon zs bustersword.pngBreaker Blade
{{Template:Link_and_Image|!|File:weapon_zs_bustersword.png|Breaker Blade}}
Weapon zs bustersword.pngBreaker Blade
{{Template:Link_and_Image|Buster Sword|False:brokenImage.jpg}}
Buster Sword
{{Template:Link_and_Image|Buster Sword|False:brokenImage.jpg|Breaker Blade}}
Breaker Blade
{{Template:Link_and_Image|Buster Sword|File:weapon_zs_bustersword.png||75px}}
Weapon zs bustersword.pngBuster Sword