თარგი:Hex2
იერსახე
[ხილვა] [რედაქტირება] [ისტორია] [განახლება]
![დოკუმენტაცია](https://upload.wikimedia.org/wikipedia/commons/thumb/3/30/Applications-system.svg/langka-20px-Applications-system.svg.png)
- Description of use
- Converts a 8-bit number to hexadecimal using two digits, useful for formating RGB color components.
- This template can be substituted.
- Input
-
- one parameter, numeric in the range 0..255 (larger numbers will wrap around)
- Output
-
- a two-digit hex number
- Examples
-
- {{Hex2|0}}gives 00
- {{subst:Hex2|0}} gives 00
- {{Hex2|123}} gives 7B
- {{subst:Hex2|123}}gives 7B
- {{Hex2|255}} gives FF
- {{subst:Hex2|255}} gives FF
- See also
-
- {{Hex3}} for formating 3 RGB components at once.
en:Template:Hex2 id:Templat:Hex2 ja:Template:Hex2 pt:Predefinição:Hex2 xmf:თარგი:Hex2