Difference between revisions of "Template:Huge"
test>Wnt (Adding a parameter #2 which specifies the large text size. Defaults to the existing 180%. Note "%" (or alternative) must be included in parameter) |
test>Wnt (Changing to accept a third parameter for line spacing (and fix it by default) and to allow super or normal positioning. Still defaults to sub for historical reasons) |
||
| Line 1: | Line 1: | ||
| − | <span style="vertical-align:sub;"><span style="vertical-align:sub;"><span style="font-size:{{{2|180%}}}; vertical-align:sub;">{{{1}}}</span></span></span><noinclude> | + | {{#switch: {{{valign|sub}}} |
| + | | normal = <span style="line-height:{{{3|{{{2|180%}}}}}}"><span style="font-size:{{{2|180%}}};">{{{1}}}</span></span> | ||
| + | | super = <span style="vertical-align:super;"><span style="vertical-align:super;line-height:{{{3|{{{2|180%}}}}}}"><span style="font-size:{{{2|180%}}}; vertical-align:super;">{{{1}}}</span></span></span> | ||
| + | | sub = <span style="vertical-align:sub;"><span style="vertical-align:sub;line-height:{{{3|{{{2|180%}}}}}}"><span style="font-size:{{{2|180%}}}; vertical-align:sub;">{{{1}}}</span></span></span> | ||
| + | | <span style="vertical-align:sub;"><span style="vertical-align:sub;line-height:{{{3|{{{2|180%}}}}}}"><span style="font-size:{{{2|180%}}}; vertical-align:sub;">{{{1}}}</span></span></span> | ||
| + | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> | ||
</noinclude> | </noinclude> | ||
Revision as of 03:35, 6 February 2012
{{{1}}}
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 {{IPA}}, and similar templates.
- 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 for Huge
Enlarge the size of diacritic marks and compensate for line height.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Mark | 1 | The diacritic mark to make large. | String | required |
| Font size | 2 | Font size as a percentage. Default is 180%. | String | optional |
| Line height | 3 | Line height, defaults to font size or 180%. | String | optional |
| valign | valign | Vertical alignment. Either 'normal', 'super' or 'sub' (the default). | String | optional |
See also
| Code | Size | Semantics | Result |
|---|---|---|---|
{{small|text}} |
85% | <small> |
text |
{{smaller|text}} |
90% | none | text |
{{resize|text}} |
90% | none | text |
{{midsize|text}} |
92% | none | text |
| none | 100% | none | text |
{{larger|text}} |
110% | none | text |
{{big|text}} |
120% | none | text |
{{large|text}} |
large | none | text |
{{huge|text}} |
180% | none | text |
{{resize|x%}} |
custom | none | varies |
{{font|size=x%}} |
custom | none | varies |
| The above documentation is transcluded from Template:Huge/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |