Template:BTC: Difference between revisions
TheRealSteve (talk | contribs) No edit summary |
TheRealSteve (talk | contribs) mNo edit summary |
||
Line 4: | Line 4: | ||
This template uses a custom font<ref>https://en.bitcoin.it/BTC.ttf</ref>, specified in the wiki's custom style sheet<ref>[[MediaWiki:Common.css]]</ref>. | This template uses a custom font<ref>https://en.bitcoin.it/BTC.ttf</ref>, specified in the wiki's custom style sheet<ref>[[MediaWiki:Common.css]]</ref>. | ||
BTC.ttf was authored by [[User:theymos|theymos]] for the [[BitcoinTalk Forum]] | BTC.ttf was authored by [[User:theymos|theymos]] for the [[BitcoinTalk Forum]]<ref>https://bitcointalk.org/index.php?topic=88647.msg976404#msg976404</ref> | ||
The font contains a special glyph for the letter '''B'''. The glyphs for the letters '''T''' and '''C''' have zero width, allowing the text '''BTC''' to be typed, while only {{BTC}} appears. This allows applications that do not support custom font rendering to still display an identifying text. When copying text containing the symbol to the clipboard, the full text '''BTC''' is also copied. | The font contains a special glyph for the letter '''B'''. The glyphs for the letters '''T''' and '''C''' have zero width, allowing the text '''BTC''' to be typed, while only {{BTC}} appears. This allows applications that do not support custom font rendering to still display an identifying text. When copying text containing the symbol to the clipboard, the full text '''BTC''' is also copied. |
Revision as of 11:38, 3 April 2015
BTC
This template uses a custom font[1], specified in the wiki's custom style sheet[2].
BTC.ttf was authored by theymos for the BitcoinTalk Forum[3]
The font contains a special glyph for the letter B. The glyphs for the letters T and C have zero width, allowing the text BTC to be typed, while only BTC appears. This allows applications that do not support custom font rendering to still display an identifying text. When copying text containing the symbol to the clipboard, the full text BTC is also copied.
Usage
To insert the BTC symbol:
{{BTC}}
When denoting values in Bitcoin, common practice is to use the symbol as a prefix: BTC0.5
{{BTC}}0.5
To prevent updates to this template from potentially affecting many pages, you may also choose to use template substitution[4]:
{{subst:BTC}}
Image
The symbol can also be inserted as an image. The main disadvantage of this method is that the symbol does not adjust with wiki formatting such as font size and style. Input:
[[{{ns:File}}:Btc-sans.png|x16px|alt="BTC"]]
Output:
References
This template uses a custom font[5], specified in the wiki's custom style sheet[6].
BTC.ttf was authored by theymos for the BitcoinTalk Forum[7]
The font contains a special glyph for the letter B. The glyphs for the letters T and C have zero width, allowing the text BTC to be typed, while only BTC appears. This allows applications that do not support custom font rendering to still display an identifying text. When copying text containing the symbol to the clipboard, the full text BTC is also copied.
Usage
To insert the BTC symbol:
{{BTC}}
When denoting values in Bitcoin, common practice is to use the symbol as a prefix: BTC0.5
{{BTC}}0.5
Image
The symbol can also be inserted as an image. The main disadvantage of this method is that the symbol does not adjust with wiki formatting such as font size and style. Input:
[[{{ns:File}}:Btc-sans.png|x16px|alt="BTC"]]
Output: