ಟೆಂಪ್ಲೇಟು:Script/Runic/doc
This is a documentation subpage for ಟೆಂಪ್ಲೇಟು:Script/Runic It may contain usage information, categories and other content that is not part of the original ಟೆಂಪ್ಲೇಟು page. |
Usage
ಬದಲಾಯಿಸಿThis template marks a string as Runic script. It is transcluded by {{Script}}
or, alternatively, by {{Runic}}
. Do not include this template directly, but instead use: {{script|Runr|‹Runic script string›}}
.
Under the hood
ಬದಲಾಯಿಸಿThis template fixes font size at 125 %. It contains:
<span title="runes" lang="gem" class="script-runic">{{{1}}}</span>
The class="script-runic"
has two goals. It allows fixing broken display of Runic characters in Internet Explorer, and it allows users to specify their own style for Runic script.
The broken display of Runic characters in Internet Explorer is fixed by explicit font declarations in MediaWiki:Common.css/WinFixes.css, which is invoked by MediaWiki:Common.js. The following fonts are declared for Internet Explorer:
.script-runic { font-family: Junicode, FreeMono, Code2000, Hnias; }
Registered Wikipedia users can specify their own style for Runic script text by including a custom font declaration for .script-runic
in their user CSS, see Help:User style.
Example
ಬದಲಾಯಿಸಿPlacing a Runic string in {{Script}}
:
{{script|Runr|ᚠᚢᚦᚨᚱᚲ}}
The result will be a span with a class attribute, like this:
<span title="runes" lang="gem" class="script-runic">ᚠᚢᚦᚨᚱᚲ</span>
Which appears in your browser as:
- ᚠᚢᚦᚨᚱᚲ
Without {{Script}}
:
- ᚠᚢᚦᚨᚱᚲ
The last two should only look different if you are using Internet Explorer 6 or lower on Windows, or if you have a custom style defined for class="script-runic"
.
Please mark all Runic text with {{script|Runr}}
. This will allow users to format all examples of Runic text consistently, with their choice of fonts, colours, etc.
See also
ಬದಲಾಯಿಸಿ