Template:Infobox Ferret/mugshot/doc: Difference between revisions
m Nelas moved page Template:Infobox Ferret mugshot/doc to Template:Infobox Ferret/mugshot/doc without leaving a redirect: Author request |
update linked category |
||
Line 11: | Line 11: | ||
==How it works== | ==How it works== | ||
Filename <code>Ferretname_Mugshot.png</code> for the Image will be created automatically using <code>ferret-name</code> parameter and adding <code>_Mugshot.png</code> to it. If the File doesn't exist, [[:File:Unknown_Mugshot.png]] will be used as a placeholder, the Infobox will display the missing file below the placeholder and the page will be added to [[:Category: | Filename <code>Ferretname_Mugshot.png</code> for the Image will be created automatically using <code>ferret-name</code> parameter and adding <code>_Mugshot.png</code> to it. If the File doesn't exist, [[:File:Unknown_Mugshot.png]] will be used as a placeholder, the Infobox will display the missing file below the placeholder and the page will be added to [[:Category:Ferrets lacking infobox image]]. | ||
Image size should be approx. 190x230 px | Image size should be approx. 190x230 px |
Latest revision as of 11:50, 3 April 2025
Displays a centered image with colspan 2 in an Infobox Ferret.
Usage
{{Infobox mugshot ferret|ferret-name = }}
Parameter
Parameter | Data Type | Default Value | Description |
---|---|---|---|
ferret-name | String | Name of the Ferret |
How it works
Filename Ferretname_Mugshot.png
for the Image will be created automatically using ferret-name
parameter and adding _Mugshot.png
to it. If the File doesn't exist, File:Unknown_Mugshot.png will be used as a placeholder, the Infobox will display the missing file below the placeholder and the page will be added to Category:Ferrets lacking infobox image.
Image size should be approx. 190x230 px
Example
{{Infobox mugshot ferret|ferret-name = Badger}}
Displays the Image File:Badger_Mugshot.png of Badger.
If the Ferret has a Mugshot, the Infobox will look like this: Infobox Ferret - Ferret with Mugshot
If the Ferret has no Mugshot, the Infobox will look like this: Infobox Ferret - Ferret without Mugshot