Difference between revisions of "Category:Function templates"

From NetHackWiki
Jump to navigation Jump to search
(added wikipedia's colour table)
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
These templates are designed to help colour NetHack symbols consistently. They use the standard CGA colour palette that NetHack uses, plus a black background for ease of viewing.
+
These templates are designed to help [[color]] NetHack symbols consistently. They use the standard CGA colour palette that NetHack uses, plus a black background for ease of viewing.
 +
 
 +
This is different from the [[Options#color|in-game color option]] and [[colors|your terminal's color configuration]].
  
 
===Examples===
 
===Examples===
Line 5: Line 7:
 
To display the symbol for a yellow light, type <nowiki>{{yellow|y}}</nowiki>. Result: {{yellow|y}}.
 
To display the symbol for a yellow light, type <nowiki>{{yellow|y}}</nowiki>. Result: {{yellow|y}}.
  
To represent a black dragon, use <nowiki>{{blue}}</nowiki>.
+
Or you could use the [[Template:Monsym]] instead: <nowiki>{{monsym|floating_eye}}</nowiki>, which gives {{monsym|floating_eye}}
 
 
To make a big symbol, wrap the template in a span tag: <nowiki><span style="font-size:300%">{{red|a}}</span></nowiki>. Result: <span style="font-size:300%">{{red|a}}</span>.
 
  
 
===Colour table===
 
===Colour table===
  
From wikipedia:
+
From [[Wikipedia:IBM Color Graphics Adapter]]:
  
 
{| style="border-style: none; clear: right; margin-left: 1.5em; text-align:center; hspace=10px" border="1" cellpadding="5"
 
{| style="border-style: none; clear: right; margin-left: 1.5em; text-align:center; hspace=10px" border="1" cellpadding="5"
Line 40: Line 40:
 
| style="color: black; background-color: #FFFFFF" | 15 — bright white<br /><nowiki>#FFFFFF</nowiki>
 
| style="color: black; background-color: #FFFFFF" | 15 — bright white<br /><nowiki>#FFFFFF</nowiki>
 
|}
 
|}
 +
 +
[[Category:Templates]]

Latest revision as of 20:42, 31 January 2012

These templates are designed to help color NetHack symbols consistently. They use the standard CGA colour palette that NetHack uses, plus a black background for ease of viewing.

This is different from the in-game color option and your terminal's color configuration.

Examples

To display the symbol for a yellow light, type {{yellow|y}}. Result: y.

Or you could use the Template:Monsym instead: {{monsym|floating_eye}}, which gives e

Colour table

From Wikipedia:IBM Color Graphics Adapter:

'''Full CGA 16-color palette'''
0 — black
#000000
8 — (dark) gray
#555555
1 — blue
#0000AA
9 — bright blue
#5555FF
2 — green
#00AA00
10 — bright green
#55FF55
3 — cyan
#00AAAA
11 — bright cyan
#55FFFF
4 — red
#AA0000
12 — bright red
#FF5555
5 — magenta
#AA00AA
13 — bright magenta
#FF55FF
6 — brown
#AA5500
14 — yellow
#FFFF55
7 — white (light gray)
#AAAAAA
15 — bright white
#FFFFFF

Subcategories

This category has only the following subcategory.

L