Template:Unicode/doc: Difference between revisions

Content deleted Content added
m -
No edit summary
Line 16:
 
==Subject==
The template also takes a ''subject'' parameter, to use alternate fonts for specific sets of characters, organized thematically, where the usual fonts don't provide glyphs. The currently supported subjects are animal, astro, chem, communication, dentistry, education, emoticon, enclosed, event, food, game, map, medicine, money, music, person, picto, plant, politicsreligion, region, sport, technology, time, ui, warning, weather. <!-- EDITORS, completethe COMPLETE list of which symbols are included in which subjects, and support for the subjects by various fonts, is in the TALK page for the doco. The displayed doco may be outdated, or have only an abbreviated list for illustrative purposes. --> Examples:Depending on your browser's built-in font substitution capabilities, and fonts you have installed, you may or may not see any difference.
 
Depending on your browser's built-in font substitution capabilities, and fonts you have installed, you may or may not see any difference.
 
{| class="wikitable"
! width="28%" | plain
! plain !! <code><nowiki>{{unicode|}}</nowiki></code> !! {{para|subject|}} !! <code><nowiki>{{unicode||subject=}}</nowiki></code> !! note
! width="28%" | <code><nowiki>{{unicode|}}</nowiki></code>
! {{para|subject|}}
! width="28%" | <code><nowiki>{{unicode||subject=}}</nowiki></code>
! note
|-
{{unicode/example||subject=animal}}
{{unicode/example|☀ ☄★☆ ☉☊☋☌☍ ☼☽☾☿ ♀♁♂♃♄♅♆♇♈♉♊♋♌♍♎♏ ♐♑♒♓ ⚳⚴⚵⚶⚷⚸⚹⚺⚻⚼ ⛎ ⛢ ⭐⭑⭒ 🌃 🌌🌍🌎🌏 🌐🌑🌒🌓🌔🌕🌖🌗🌘🌙🌚🌛🌜🌝🌞🌟🌠 🔭|subject=astro}}
{{unicode/example||subject=astro}}
{{unicode/example|⌬ ⏣ ⚗ 🜀🜁🜂🜃🜄🜅🜆🜇🜈🜉🜊🜋🜌🜍🜎🜏 🜐🜑🜒🜓🜔🜕🜖🜗🜘🜙🜚🜛🜜🜝🜞🜟 🜠🜡🜢🜣🜤🜥🜦🜧🜨🜩🜪🜫🜬🜭🜮🜯 🜰🜱🜲🜳🜴🜵🜶🜷🜸🜹🜺🜻🜼🜽🜾🜿 🝀🝁🝂🝃🝄🝅🝆🝇🝈🝉🝊🝋🝌🝍🝎🝏 🝐🝑🝒🝓🝔🝕🝖🝗🝘🝙🝚🝛🝜🝝🝞🝟 🝠🝡🝢🝣🝤🝥🝦🝧🝨🝩🝪🝫🝬🝭🝮🝯 🝰🝱🝲🝳|subject=chem}}
{{unicode/example||subject=chem}}
{{unicode/example|☎☏ ✆ ✉ ✍✎✏✐✑✒ 💌 💬💭 📕📖📗📘📙 📝📞📟 📠📡📢📣📤📥📦📧📨📩📪📫📬📭📮📯 📰📱📲📳📴📵📶 📺📻|subject=communication}}
{{unicode/example||subject=communication}}
{{unicode/example|⎾⎿⏀⏁⏂⏃⏄⏅⏆⏇⏈⏉⏊⏋⏌|subject=dentistry}}
{{unicode/example||subject=education}}
{{unicode/example|☹☺☻ ♡ ♥ ❤ 💋 💏💐💑💒💓💔💕💖💗💘💙💚💛💜💝💞💟 😀😁😂😃😄😅😆😇😈😉😊😋😌😍😎😏 😐😑😒😓😔😕😖😗😘😙😚😛😜😝😞😟 😠😡😢😣😤😥😦😧😨😩😪😫😬😭😮😯 😰😱😲😳😴😵😶😷😸😹😺😻😼😽😾😿🙀 🙅🙆🙇🙈🙉🙊🙋🙌🙍🙎🙏|subject=emoticon}}
{{unicode/example||subject=emoticon}}
{{unicode/example|①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯ ⑰⑱⑲⑳⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿ ⒀⒁⒂⒃⒄⒅⒆⒇⒈⒉⒊⒋⒌⒍⒎⒏ ⒐⒑⒒⒓⒔⒕⒖⒗⒘⒙⒚⒛⒜⒝⒞⒟ ⒠⒡⒢⒣⒤⒥⒦⒧⒨⒩⒪⒫⒬⒭⒮⒯ ⒰⒱⒲⒳⒴⒵ⒶⒷⒸⒹⒺⒻⒼⒽⒾⒿ ⓀⓁⓂⓃⓄⓅⓆⓇⓈⓉⓊⓋⓌⓍⓎⓏ ⓐⓑⓒⓓⓔⓕⓖⓗⓘⓙⓚⓛⓜⓝⓞⓟ ⓠⓡⓢⓣⓤⓥⓦⓧⓨⓩ⓪⓫⓬⓭⓮⓯ ⓰⓱⓲⓳⓴⓵⓶⓷⓸⓹⓺⓻⓼⓽⓾⓿ 🄀🄁🄂🄃🄄🄅🄆🄇🄈🄉🄊 🄐🄑🄒🄓🄔🄕🄖🄗🄘🄙🄚🄛🄜🄝🄞🄟 🄠🄡🄢🄣🄤🄥🄦🄧🄨🄩🄪🄫🄬🄭🄮 🄰🄱🄲🄳🄴🄵🄶🄷🄸🄹🄺🄻🄼🄽🄾🄿 🅀🅁🅂🅃🅄🅅🅆🅇🅈🅉🅊🅋🅌🅍🅎🅏 🅐🅑🅒🅓🅔🅕🅖🅗🅘🅙🅚🅛🅜🅝🅞🅟 🅠🅡🅢🅣🅤🅥🅦🅧🅨🅩🅪🅫 🅰🅱🅲🅳🅴🅵🅶🅷🅸🅹🅺🅻🅼🅽🅾🅿 🆀🆁🆂🆃🆄🆅🆆🆇🆈🆉🆊🆋🆌🆍🆎🆏 🆐🆑🆒🆓🆔🆕🆖🆗🆘🆙🆚|subject=enclosed}}
{{unicode/example||subject=enclosed}}
{{unicode/example||subject=event}}
{{unicode/example|☕ 🌽🌾🌿 🍄🍅🍆🍇🍈🍉🍊🍋🍌🍍🍎🍏 🍐🍑🍒🍓🍔🍕🍖🍗🍘🍙🍚🍛🍜🍝🍞🍟 🍠🍡🍢🍣🍤🍥🍦🍧🍨🍩🍪🍫🍬🍭🍮🍯 🍰🍱🍲🍳🍴🍵🍶🍷🍸🍹🍺🍻🍼|subject=food}}
{{unicode/example||subject=food}}
{{unicode/example|☖☗ ♔♕♖♗♘♙♚♛♜♝♞♟ ♠♡♢♣♤♥♦♧ ⚀⚁⚂⚃⚄⚅⚆⚇⚈⚉ ⛀⛁⛂⛃ ⛉⛊⛋ ✊✋✌ ❌ ⭕ 🀀🀁🀂🀃🀄🀅🀆🀇🀈🀉🀊🀋🀌🀍🀎🀏 🀐🀑🀒🀓🀔🀕🀖🀗🀘🀙🀚🀛🀜🀝🀞🀟 🀠🀡🀢🀣🀤🀥🀦🀧🀨🀩🀪🀫 🀰🀱🀲🀳🀴🀵🀶🀷🀸🀹🀺🀻🀼🀽🀾🀿 🁀🁁🁂🁃🁄🁅🁆🁇🁈🁉🁊🁋🁌🁍🁎🁏 🁐🁑🁒🁓🁔🁕🁖🁗🁘🁙🁚🁛🁜🁝🁞🁟 🁠🁡🁢🁣🁤🁥🁦🁧🁨🁩🁪🁫🁬🁭🁮🁯 🁰🁱🁲🁳🁴🁵🁶🁷🁸🁹🁺🁻🁼🁽🁾🁿 🂀🂁🂂🂃🂄🂅🂆🂇🂈🂉🂊🂋🂌🂍🂎🂏 🂐🂑🂒🂓 🂠🂡🂢🂣🂤🂥🂦🂧🂨🂩🂪🂫🂬🂭🂮 🂱🂲🂳🂴🂵🂶🂷🂸🂹🂺🂻🂼🂽🂾 🃁🃂🃃🃄🃅🃆🃇🃈🃉🃊🃋🃌🃍🃎🃏 🃑🃒🃓🃔🃕🃖🃗🃘🃙🃚🃛🃜🃝🃞🃟 🎮🎯🎰🎱🎲🎳🎴|subject=game}}
{{unicode/example||subject=game}}
{{unicode/example|⌘ ♨ ♿ ⚐⚑⚒⚓⚔ ⚛ ⛌⛍ ⛏ ⛐⛑⛒⛓⛔⛕⛖⛗⛘⛙⛚⛛⛜⛝⛞⛟ ⛠⛡ ⛣ ⛨⛩⛪⛫⛬⛭⛮⛯ ⛰⛱⛲⛳⛴⛵⛶⛷⛸⛹⛺⛻⛼⛽⛾⛿ ✈ 🌋 🌍🌎🌏🌐 🍴 🏠🏡🏢🏣🏤🏥🏦🏧🏨🏩🏪🏫🏬🏭🏮🏯🏰 🗻🗼🗽🗾🗿 🚀🚁🚂🚃🚄🚅🚆🚇🚈🚉🚊🚋🚌🚍🚎🚏 🚐🚑🚒🚓🚔🚕🚖🚗🚘🚙🚚🚛🚜🚝🚞🚟 🚠🚡🚢🚣🚤🚥🚦🚧🚨🚩🚪🚫🚬🚭🚮🚯 🚰🚱🚲🚳🚴🚵🚶🚷🚸🚹🚺🚻🚼🚽🚾🚿 🛀🛁🛂🛃🛄🛅
{{unicode/example||subject=map}}
time: 231a-231b, 23f0-23f3, 1f550-1f567|subject=map}}
{{unicode/example||subject=medicine}}
{{unicode/example|℞ ☠ ☤ ⚕ ⛨ ✚ 🅰🅱 🅾 🆎 🏥 💉💊|subject=moneymedicine}}
{{unicode/example|$ ¢£¤¥ ƒ ؋ ৲৳ ૱ ௹ ฿ ៛ ₠₡₢₣₤₥₦₧₨₩₪₫€₭₮₯ ₰₱₲₳₴₵₶₷₸₹₺ ℳ 元 円 圆 圓 ﷼ ﹩ $ 🏦🏧 💰💱💲💳💴💵💶💷💸💹 📈📉📊|subject=money}}
{{unicode/example||subject=music}}
{{unicode/example||subject=person}}
{{unicode/example|☓ ☚☛☜☝☞☟ ☤ ♲♳♴♵♶♷♸♹♺♻♼♽♾♿ ⚐⚑⚒⚓⚔⚕⚖⚗⚘⚙⚚⚛⚜⚝⚞⚟ ⚢⚣⚤⚥⚦⚧⚨⚩⚪⚫⚬⚭⚮⚯ ⚰⚱⚲ ⚿ ✁✂✃✄✅ ✊✋✌✍✎✏ ✐✑✒✓✔✕✖ ✛✜ ✢✣✤✥✦✧✨✩✪✫✬✭✮✯ ✰✱✲✳✴✵✶✷✸✹✺✻✼✽✾✿ ❀❁❂❃❄❅❆❇❈❉❊❋ 🌂🌃🌄🌅🌆🌇🌈🌉🌊🌋🌌 👀 👂👃👄👅👆👇👈👉👊👋👌👍👎👏 👐👑👒👓👔👕👖👗👘👙👚👛👜👝👞👟 👠👡👢👣 💄💅💆💇💈💉💊💋💌💍💎💏 💐 💠💡💢💣💤💥💦💧💨💩💪💫💬💭 💺 💼 📁📂📃📄📅📆📇📈📉📊📋📌📍📎📏 📐📑📒📓📔 📛📜 🔅🔆🔇🔈🔉🔊🔋🔌🔍🔎🔏 🔐🔑🔒🔓🔔🔕🔖🔗🔘 🔥🔦🔧🔨🔩🔪🔫🔬🔭🔮🔯 🔰🔱|subject=picto}}
{{unicode/example||subject=picto}}
{{unicode/example|☘ 🌰🌱🌲🌳🌴🌵 🌷🌸🌹🌺🌻🌼🌽🌾🌿 🍀🍁🍂🍃🍄🍅🍆🍇🍈🍉🍊🍋🍌🍍🍎🍏 🍐🍑🍒🍓|subject=plant}}
{{unicode/example||subject=plant}}
{{unicode/example||subject=politics|note=projected}}<!-- future -->
{{unicode/example||subject=region}}
{{unicode/example||subject=religion|note=projected}}<!-- future -->
{{unicode/example|⚽⚾ ⛳ ⛷⛸⛹ 🎯 🎳 🎽🎾🎿🏀🏁🏂🏃🏄 🏆🏇🏈🏉🏊|subject=sport}}
{{unicode/example|⌁ ⌐⌑ ⌕ ⌘⌙⌚⌛ ⌤⌥⌦⌧⌨ ⌫ ⍻ ⍽⍾⍿ ⎀⎁⎂⎃⎄⎅⎆⎇⎈⎉⎊⎋⎌⎍⎎⎏ ⎐⎑⎒⎓⎔ ⎖⎗⎘⎙⎚ ⏎⏏ ⏚⏛ ⏦⏧⏨⏩⏪⏫⏬⏭⏮⏯ ⏰⏱⏲⏳ ␀␁␂␃␄␅␆␇␈␉␊␋␌␍␎␏ ␐␑␒␓␔␕␖␗␘␙␚␛␜␝␞␟ ␠␡␢␣␤␥␦ ☎☏ ✇ 💻 💽💾💿📀 📞📟📠📡 📧 📱📲📳📴📵📶📷 📹📺📻📼|subject=technology}}
{{unicode/example||subject=technology}}
{{unicode/example|⌚⌛ ⏰⏱⏲⏳ 🕐🕑🕒🕓🕔🕕🕖🕗🕘🕙🕚🕛🕜🕝🕞🕟🕠🕡🕢🕣🕤🕥🕦🕧|subject=time}}
{{unicode/example|⌘ ⌚⌛ ⌤⌥⌦⌧⌨ ⌫ ⎀⎁⎂⎃⎄⎅⎆⎇⎈⎉⎊⎋⎌ ⎖⎗⎘⎙⎚ ⏎⏏ ⏩⏪⏫⏬⏭⏮⏯⏰⏱⏲⏳ 🔀🔁🔂🔃🔄🔅🔆🔇🔈🔉🔊🔋🔌🔍🔎🔏 🔐🔑🔒🔓🔔🔕🔖🔗🔘🔙🔚🔛🔜🔝 🔠🔡🔢🔣🔤|subject=ui}}
{{unicode/example||subject=ui}}
{{unicode/example|! ? ‼‽ ⁇⁈⁉ ☠☡☢☣ ⚛ ⚠⚡ ⛐ ⛔ ⛚ 💣 💥 🚧 🚫 🚭 🚯 🚱 🚳 🚷|subject=warning}}
{{unicode/example|☀☁☂☃ ☇☈ ☔ ☼ ⛄⛅⛆⛇⛈ ❄❅❆ 🌀🌁🌂|subject=weather}}
|}
 
Line 70 ⟶ 73:
<span class="Unicode{{#if:{{{subject|}}}|{{ucfirst:{{lc:{{{subject}}}}}}}}}">{{{1}}}</span>
</source>
and <ttcode>''class="Unicode"''</ttcode> is defined in [[MediaWiki:Common.js]] as follows:
<source lang="CSS">
.Unicode {
Line 78 ⟶ 81:
Note it defines this ''only'' for Windows XP.
 
You can override this with your own <ttcode>Unicode</ttcode> class definition in your [[Help:User_style|personal stylesheet]] (e.g. <tt>User:''username''/common.css</tt>).
 
The <ttcode>Unicode''UnicodeSubjectSubject''</ttcode> classes are defined in [[MediaWiki:Common.css]] for all browsers.
 
== See also ==