Template:Link and Image
Jump to navigation
Jump to search
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}} |
[[Buster Sword {{#if | |{{{3}}} }}]] |
{{Template:Link_and_Image|Buster Sword|File:weapon_zs_bustersword.png|Breaker Blade}} |
[[Buster Sword {{#if Breaker Blade | |Breaker Blade }}]] |
{{Template:Link_and_Image|!|File:weapon_zs_bustersword.png|Breaker Blade}} |
[[! {{#if Breaker Blade | |Breaker Blade }}]] |
{{Template:Link_and_Image|Buster Sword|False:brokenImage.jpg}} |
[[Buster Sword {{#if | |{{{3}}} }}]] |
{{Template:Link_and_Image|Buster Sword|False:brokenImage.jpg|Breaker Blade}} |
[[Buster Sword {{#if Breaker Blade | |Breaker Blade }}]] |
{{Template:Link_and_Image|Buster Sword|File:weapon_zs_bustersword.png||75px}} |
[[Buster Sword {{#if | | }}]] |
The above documentation is transcluded from Template:Link and Image/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |