Lompat ke isi

Templat:Phagspa/doc: Perbedaan antara revisi

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Konten dihapus Konten ditambahkan
M. Adiputra (bicara | kontrib)
baru. dari EN
 
k Robot: Perubahan kosmetika
 
(Satu revisi perantara oleh satu pengguna lainnya tidak ditampilkan)
Baris 6: Baris 6:
<nowiki>{{Phagspa|<h/v>|<text>|<tooltip>|<size=12px>}}</nowiki>
<nowiki>{{Phagspa|<h/v>|<text>|<tooltip>|<size=12px>}}</nowiki>


This applies a [[Unicode]] [['Phags-pa script|'Phags-pa]] [[font]] to the given 'Phags-pa text if such font is available on the user's system. The fonts applied are, in the following order:
This applies a [[Unicode]] [['Phags-pa script|'Phags-pa]] [[font]] to the given 'Phags-pa text if such font is available on the user's system. The fonts applied are, in the following order:
* '''Microsoft PhagsPa''' — font that is shipped with [[Windows 7]] and has correct joining and shaping behaviour in Windows 7 or later;
* '''Microsoft PhagsPa''' — font that is shipped with [[Windows 7]] and has correct joining and shaping behaviour in Windows 7 or later;
* '''BabelStone Phags-pa Book''' — freeware font that has joining and shaping behaviour, but only renders correctly under some operating systems and browsers;
* '''BabelStone Phags-pa Book''' — freeware font that has joining and shaping behaviour, but only renders correctly under some operating systems and browsers;
Baris 13: Baris 13:
To break a long vertical line of 'Phags-pa text into left-to-right segments so it displays better within ordinary horizontal text, use the <nowiki><br/></nowiki> tag instead of a space.
To break a long vertical line of 'Phags-pa text into left-to-right segments so it displays better within ordinary horizontal text, use the <nowiki><br/></nowiki> tag instead of a space.


===Parameter===
=== Parameter ===
The first parameter should be ''h'' or ''v''. If ''h'' the text will be laid out horizontally, but if ''v'' the text may be displayed in vertical top-to-bottom layout (results vary depending upon the user's browser, but it should work with Internet Explorer 8 in [[Windows Vista]] or later, and in Chrome version 17 or later).
The first parameter should be ''h'' or ''v''. If ''h'' the text will be laid out horizontally, but if ''v'' the text may be displayed in vertical top-to-bottom layout (results vary depending upon the user's browser, but it should work with Internet Explorer 8 in [[Windows Vista]] or later, and in Chrome version 17 or later).


The second parameter is the Unicode 'Phags-pa text to be displayed.
The second parameter is the Unicode 'Phags-pa text to be displayed.


The third parameter is the transliteration or translation of the 'Phags-pa text, which will be displayed as the mouseover tooltip. This is optional, and if omitted the tooltip will be "'Phags-pa text".
The third parameter is the transliteration or translation of the 'Phags-pa text, which will be displayed as the mouseover tooltip. This is optional, and if omitted the tooltip will be "'Phags-pa text".


The fourth parameter is the font size to be used in px units. This is optional, and if omitted the font size will be 12px.
The fourth parameter is the font size to be used in px units. This is optional, and if omitted the font size will be 12px.


===Contoh===
=== Contoh ===
#<code><nowiki>{{Phagspa|h|ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ}}</nowiki></code> menghasilkan {{Phagspa|h|ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ}}
#<code><nowiki>{{Phagspa|h|ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ}}</nowiki></code> menghasilkan {{Phagspa|h|ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ}}
#<code><nowiki>{{Phagspa|h|ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ|'mongxol tshi}}</nowiki></code> menghasilkan {{Phagspa|h|ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ|'mongxol tshi}}
#<code><nowiki>{{Phagspa|h|ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ|'mongxol tshi}}</nowiki></code> menghasilkan {{Phagspa|h|ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ|'mongxol tshi}}
Baris 32: Baris 32:
<includeonly>
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Kategori:Templat Unicode]]
[[Category:Unicode templates]]
[[Category:Writing system templates]]
<!--[[Category:Writing system templates]]-->
</includeonly>
</includeonly>

Revisi terkini sejak 20 Mei 2016 06.09

Penggunaan

[sunting sumber]
{{Phagspa|<h/v>|<text>}}
{{Phagspa|<h/v>|<text>|<tooltip>}}
{{Phagspa|<h/v>|<text>|<tooltip>|<size=12px>}}

This applies a Unicode 'Phags-pa font to the given 'Phags-pa text if such font is available on the user's system. The fonts applied are, in the following order:

  • Microsoft PhagsPa — font that is shipped with Windows 7 and has correct joining and shaping behaviour in Windows 7 or later;
  • BabelStone Phags-pa Book — freeware font that has joining and shaping behaviour, but only renders correctly under some operating systems and browsers;
  • Code2000 — freeware font that includes 'Phags-pa glyphs but does not have any joining or shaping behaviour.

If the first parameter is h the text will be laid out horizontally, but if it is v the text will try to be laid out from top to bottom in vertical lines running left to right (this may only work in Internet Explorer 8 or later). To break a long vertical line of 'Phags-pa text into left-to-right segments so it displays better within ordinary horizontal text, use the <br/> tag instead of a space.

Parameter

[sunting sumber]

The first parameter should be h or v. If h the text will be laid out horizontally, but if v the text may be displayed in vertical top-to-bottom layout (results vary depending upon the user's browser, but it should work with Internet Explorer 8 in Windows Vista or later, and in Chrome version 17 or later).

The second parameter is the Unicode 'Phags-pa text to be displayed.

The third parameter is the transliteration or translation of the 'Phags-pa text, which will be displayed as the mouseover tooltip. This is optional, and if omitted the tooltip will be "'Phags-pa text".

The fourth parameter is the font size to be used in px units. This is optional, and if omitted the font size will be 12px.

  1. {{Phagspa|h|ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ}} menghasilkan ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ
  2. {{Phagspa|h|ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ|'mongxol tshi}} menghasilkan ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ
  3. {{Phagspa|h|ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ|'mongxol tshi|size=20}} menghasilkan ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ
  4. {{Phagspa|v|ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ}} menghasilkan ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ
  5. {{Phagspa|v|ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ|'mongxol tshi}} menghasilkan ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ
  6. {{Phagspa|v|ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ|'mongxol tshi|size=20}} menghasilkan ꡏꡡꡃ ꡣꡡꡙ ꡐꡜꡞ
  7. {{Phagspa|v|ꡏꡡꡃ<br/>ꡣꡡꡙ<br/>ꡐꡜꡞ|'mongxol tshi|size=16}} menghasilkan ꡏꡡꡃ
    ꡣꡡꡙ
    ꡐꡜꡞ