Template:ItemIcowon

From Cats are Liquid Wiki
Jump to navigation Jump to search

adds a c'''owo'''nvenient way to add icons next to redirects

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Link1

The page that the user will go when the text is clicked

Example
User:Furr63
URLrequired
Link Label2

The text that will appear instead of the URL

Example
Super cool user 63
Page namesuggested
Image Name3

The name of the image

Default
"Link Label (Item).png" if Link Label is not specified, "Link (item).png" is used instead
Example
Lumi face.png
Fileoptional
Image Height4

The height of the image

Suggested values
20
Default
20
Example
20
Numberoptional
Light mode reverse5

if the icon colors should be reversed on light mode, you type whatever you want,generally you would want to activate this if the icon is completely white

Default
false
Booleansuggested

{{ItemIcowon|Link|Link Label|Image Name|Image Height}}



Prophet (Item).pngProphet

EXAMPLE USAGE

Basic

writing only {{ItemIcowon|Prophet}} the template will make some assumptions

  1. An PNG named "Prophet (Item).png" exists
  2. The link label is not needed


and it will result in Prophet (Item).pngProphet

Link Labels

however, writing {{ItemIcowon|Prophet|Spinner}} will make the template assume the image you want is "Spinner (Item).png", and will result in Spinner (Item).pngSpinner

Complete usage

writing {{ItemIcowon|Furr63|Cool Template Creator|Lumi face.png|24}} will result in Lumi face.pngCool Template Creator

Image name needed, link label not

a very common thing is when a link label is not needed but a image name is, in that case, we will use {{ItemIcowon|Prophet|3=Lighter.png}}. By placing 3=imagename on where the link label should be, the template will understand that the second parameter is actually the third parameter (caused by the 3=), so you can use whatever image we want without an link label oh yeah and writing {{ItemIcowon|Prophet|3=Lighter.png}} it will result in Light (Item).pngProphet

No outline (Light Mode)

To remove the outline that appears in the icons if the user is using light mode, you will want the 5th parameter empty, or type "5=" {{ItemIcowon|Prophet|5=}} it will result in Prophet (Item).pngProphet (Turn on light mode to see the effect)