Difference between revisions of "Template:Braille cell/main2"
Jump to navigation
Jump to search
imported>Vanisaac (enabling substitution) |
imported>Equazcion |
||
| Line 1: | Line 1: | ||
| − | {{ | + | {{#iferror:{{{dot-id|}}}{{{lang|}}}<!-- |
| − | -->| {{ | + | -->| {{#iferror:{{{lang|}}}|{{{lang|}}}|{{{dot-id|}}}}}{{main other|[[Category:Unsupported braille input{{!}}{{{input|}}}, {{FULLPAGENAME}}]]}}<!-- |
| − | -->| {{ | + | -->| {{#iferror:{{#expr:{{{dot-id|0}}}}}<!-- |
MULTICELL (4x via extra template, b/c we don't know dot-id yet & calculating is too expensive) | MULTICELL (4x via extra template, b/c we don't know dot-id yet & calculating is too expensive) | ||
| − | cell1-->|{{ | + | cell1-->|{{braille cell/main2singlecell |
|dot-id={{first word|{{{dot-id|}}}}} | |dot-id={{first word|{{{dot-id|}}}}} | ||
|type={{{type|}}} | |type={{{type|}}} | ||
| Line 10: | Line 10: | ||
|bg = {{{bg|}}} | |bg = {{{bg|}}} | ||
}}<!-- | }}<!-- | ||
| − | cell2-->{{ | + | cell2-->{{braille cell/main2singlecell |
| − | |dot-id={{ | + | |dot-id={{remove first word|{{{dot-id|}}}}} |
|type={{{type|}}} | |type={{{type|}}} | ||
|size={{{size|}}} | |size={{{size|}}} | ||
| Line 17: | Line 17: | ||
|bg = {{{bg|}}} | |bg = {{{bg|}}} | ||
}}<!-- | }}<!-- | ||
| − | cell3&4?-->{{ | + | cell3&4?-->{{#if:{{{dot-id3&4|}}}<!-- |
| − | cell3-->|{{ | + | cell3-->|{{braille cell/main2singlecell |
| − | |dot-id={{ | + | |dot-id={{str number/trim|{{{dot-id3&4|}}}}} |
|type={{{type|}}} | |type={{{type|}}} | ||
|size={{{size|}}} | |size={{{size|}}} | ||
| Line 26: | Line 26: | ||
|is dot-id3&4=yes | |is dot-id3&4=yes | ||
}}<!-- | }}<!-- | ||
| − | cell4-->{{ | + | cell4-->{{#iferror:{{#expr:{{{dot-id3&4|}}}}}|{{braille cell/main2singlecell |
| − | |dot-id={{ | + | |dot-id={{remove first word|{{{dot-id3&4|}}}}} |
|type={{{type|}}} | |type={{{type|}}} | ||
|size={{{size|}}} | |size={{{size|}}} | ||
| Line 36: | Line 36: | ||
|}}<!-- | |}}<!-- | ||
end 3&4-->}}<!-- | end 3&4-->}}<!-- | ||
| − | SINGLE CELL-->|{{ | + | SINGLE CELL-->|{{braille cell/core |
| dot-id = {{{dot-id|}}} | | dot-id = {{{dot-id|}}} | ||
| type = {{{type|}}} | | type = {{{type|}}} | ||
| size = {{{size|}}} | | size = {{{size|}}} | ||
| − | | character = {{ | + | | character = {{braille cell/dot-id2character|dot-id={{{dot-id|}}}}} |
| − | | character name = braille pattern {{ | + | | character name = braille pattern {{#switch:{{{dot-id|1}}} |
|0=blank | |0=blank | ||
|900=(whitespace) | |900=(whitespace) | ||
|901=dot numbers | |901=dot numbers | ||
|#default=dots-{{{dot-id|}}}}} | |#default=dots-{{{dot-id|}}}}} | ||
| − | | caption = {{ | + | | caption = {{#ifeq:{{{dot-id|0}}}|900|no-caption |
| − | |{{ | + | |{{#switch:{{{caption|}}} |
| = no-caption | | = no-caption | ||
| no-caption | alt-for-caption = {{{caption|}}} | | no-caption | alt-for-caption = {{{caption|}}} | ||
| #default = |{{{caption|}}} = }}}} | | #default = |{{{caption|}}} = }}}} | ||
| bg = {{{bg|}}} | | bg = {{{bg|}}} | ||
| − | | unicode-id = {{ | + | | unicode-id = {{#switch:{{{caption|}}} |
|| no-caption | alt-for-caption = | || no-caption | alt-for-caption = | ||
| − | | #default = {{ | + | | #default = {{braille cell/dot-id2unicode-id|dot-id={{{dot-id|}}} }}}} |
}} | }} | ||
}}}} | }}}} | ||