Difference between revisions of "Template:Huge"
(Created page with "{{#switch: {{{valign|sub}}} | normal = <span style="line-height:{{{3|{{{2|180%}}}}}}"><span style="font-size:{{{2|180%}}};">{{{1}}}</span></span> | super = <span style="vert...") |
(No difference)
|
Latest revision as of 21:27, 15 July 2015
{{{1}}}
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Usage
This template is used to enlarge the size (but compensate for line height while doing so) in order to make diacritic marks in linguistic articles easier to discern in detail and distinguish from each other.
-
{{Huge|diacritic mark to make large}}
If the value passed to the template is or contains a "=" (equals sign) character it must be done like so:
-
{{Huge|1==}}
or
-
{{Huge|=}}
This template is compatible with the {{Unicode}}, {{IPA}}, and similar templates:
-
{{Huge|{{Unicode|῾}}}}
- Example of typical usage
-
Blah blah blah {{Huge|῾}} versus {{Huge|᾽}} blah blah.
This looks like:
- Blah blah blah ῾ versus ᾽ blah blah.
The size may also be specified, setting equivalent line spacing by default:
{{Huge|&=|500%}}
&=
Or, you may choose to specify line spacing:
{{Huge|&<br />=|300%}}
{{Huge|&<br />=|300%|0%}}
&
=
&
=
Alignment can also be altered:
valign can be set to "sub" (the default), "super", or "normal".
{{Huge|sub}}
{{Huge|super|valign=super}}
{{Huge|normal|valign=normal}}
subsupernormal
Finally, here's an example of putting it all together:
{{Huge|Wiki<br />Wiki|300%|200%|valign=super}}
<br />Wiki Wiki.
Wiki
Wiki
Wiki Wiki.
TemplateData
<templatedata> {
"description": "Enlarge the size of diacritic marks and compensate for line height.", "params": { "1": { "label": "Mark", "description": "The diacritic mark to make large.", "type": "string", "required": true }, "2": { "label": "Font size", "description": "Font size as a percentage. Default is 180%.", "type": "string", "required": false }, "3": { "label": "Line height", "description": "Line height, defaults to font size or 180%.", "type": "string", "required": false }, "valign": { "label": "valign", "description": "Vertical alignment. Either 'normal', 'super' or 'sub' (the default).", "type": "string", "required": false } }
} </templatedata>
See also
Template | Size | Semantics | Sample |
---|---|---|---|
{{small}} |
85% | <small> |
HHHHH |
{{smaller}} |
90% | none | HHHHH |
{{midsize}} |
92% | none | HHHHH |
none | 100% | none | HHHHH |
{{larger}} |
110% | none | HHHHH |
{{big}} |
120% | none | HHHHH |
{{large}} |
large | none | HHHHH |
{{huge}} |
180% | none | HHHHH |
{{resize}} |
90% default | none | HHHHH |
{{font|size}} |