Difference between revisions of "Template:Astral glyph"
(Similar to Template:BAM-Icon) |
Dinoguy1000 (talk | contribs) (fix alt value for () |
||
(16 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | [[File:Symbol-Astral-{{ | + | [[File:Symbol-Astral-{{Astral glyph/switch|{{{1}}}}}{{ #if: {{{color<includeonly>|</includeonly>}}} | -{{ ucfirst: {{{color}}} }} }}.svg<!-- |
− | + | -->|link={{{link|File:Symbol-Astral-{{Astral glyph/switch|{{{1}}}}}.svg}}}<!-- | |
− | + | -->|{{{hover|{{ #ifeq: {{{1}}} | ( | ( | {{ #explode: {{{1}}} | ( }} }} }}}<!-- | |
− | + | -->|alt={{{alt|{{ #ifeq: {{{1}}} | ( | ( | {{ #explode: {{{1}}} | ( }} }} }}}<!-- | |
− | + | -->|{{#if:{{{2|}}}|{{{2}}}|x25}}px<!-- | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}.svg<!-- | ||
− | -->|link={{{link|File:Symbol-Astral-{{{1}}}.svg}}}<!-- | ||
− | -->|{{{hover|{{ #explode: {{{1}}} | ( | ||
− | |||
− | -->|{{#if:{{{2|}}}|{{{2}}}| | ||
-->]]<noinclude> | -->]]<noinclude> | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> |
Latest revision as of 20:05, 6 November 2023
[[File:Symbol-Astral-{{{1}}}-{{{color}}}.svg|link=File:Symbol-Astral-{{{1}}}.svg|{{{1}}} |alt={{{1}}} |x25px]]
{{Astral glyph}}
is used for converting text to a single Astral glyph.
Usage[edit]
The first unnamed parameter is the name of the glyph. This can be a Japanese kana or its Hepburn romanization, a number, a symbol, an Attribute, the word "Number" or "Number C". For straight single and double quotation marks, it is necessary to add the text "(open)" or "(close)" to the end to specify whether it is an opening or closing quotation mark. This is the only mandatory parameter.
The second unnamed parameter is the size of the glyph in pixels. To set a height, rather than a width place an "x" before the number. By default, this is 25.
The color parameter sets the color of the glyph. By default this is black. The only other option is silver.
The alt parameter sets the alt text. By default, this is the first unnamed parameter without its bracketed text. This can be set to blank for no alt text.
The hover parameter sets the hover text. By default, this is the first unnamed parameter without its bracketed text. This can be set to blank for no hover text.
The link parameter specifies what page the glyph is to link to. By default, this links to the image's file page. This can be set to blank to remove the link.
Examples[edit]
Kana
{{Astral glyph|ka}}
={{Astral glyph|か}}
={{Astral glyph|カ}}
={{Astral glyph|zu}}
={{Astral glyph|du}}
={{Astral glyph|zu (du)}}
=
Words
{{Astral glyph|Number}}
={{Astral glyph|Number C}}
={{Astral glyph|Light}}
=
Numbers
{{Astral glyph|3}}
={{Astral glyph|3}}
=
Symbols
{{Astral glyph|・}}
={{Astral glyph|·}}
={{Astral glyph|space}}
={{Astral glyph|" (open)}}
={{Astral glyph|“}}
=
Size, color, link, alt text and hover text
{{Astral glyph|ka|x30px|color=silver|alt=alt|hover=hover|link=Main Page}}
={{Astral glyph|ka|30px|color=|alt=|hover=|link=}}
=