Template:Script/Pahawh Hmong/doc

Revision as of 15:20, 17 November 2025 by Wikipedia>Gonnym
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

__EXPECTED_UNCONNECTED_PAGE__

Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.

Usage

This template is used to mark text written in Pahawh Hmong alphabet, using a set of specific fonts and a specific font size. It is transcluded by {{Script}}.

This template only marks a string as Pahawh Hmong script, not as Hmong language. Therefore, it is not appropriate for Hmong text, which should be marked instead like this: {{Langx|hmn|‹Hmong language string›}}. For entire paragraphs in Hmong, please use {{Rtl-para|hmn|Hmong language string}}.

Known Fonts

  • Noto Sans Pahawh Hmong

Under the hood

This defines font-families, font-size and a CSS class:

<templatestyles src="Script/styles_Pahawh Hmong.css" /><span class="script-Pahawh Hmong" style="font-size: {{{size|115%}}}; {{{style|}}}" {{{attributes|}}} {{#ifeq: {{{no_rtl_mark|+}}} | {{{no_rtl_mark|-}}}||dir="rtl"}}>{{{1}}}</span>{{#ifeq: {{{no_rtl_mark|+}}} | {{{no_rtl_mark|-}}}||&lrm;}}

This template has goal(s):

  1. The font-family definitions provided by Template:Script/styles pahawh hmong.css, which will bring an appropriate font to render Pahawh Hmong texts for better rendering.
  2. The CSS class allows Wikipedia users to specify their own style for Pahawh Hmong script text by including a custom font declaration for .script-Pahawh Hmong in their user CSS, see Help:User style.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Script/Pahawh Hmong in articles based on its TemplateData.

TemplateData for Script/Pahawh Hmong