Difference between revisions of "Template:Braille cell/main"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
(enabling substitution)
imported>Equazcion
(Undid revision 581318766 by Vanisaac (talk))
Line 1: Line 1:
{{{{{|safesubst:}}}braille cell/main2
+
{{braille cell/main2
| dot-id = {{{{{|safesubst:}}}#switch:{{{lang|}}}
+
| dot-id = {{#switch:{{{lang|}}}
  | japanese = {{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}uc:{{{1|}}}}}
+
  | japanese = {{#switch:{{uc:{{{1|}}}}}
 
  <!-- Only language-specific (Japanese braille) input is in this list.
 
  <!-- Only language-specific (Japanese braille) input is in this list.
 
  All other input is handled in #default (English & generic list).
 
  All other input is handled in #default (English & generic list).
Line 129: Line 129:
 
| りょ | リョ = 4 245
 
| りょ | リョ = 4 245
 
| ゔ = 5 14
 
| ゔ = 5 14
| #default = {{{{{|safesubst:}}}braille cell/english&cell2dot-id|input={{{1|}}}}}
+
| #default = {{braille cell/english&cell2dot-id|input={{{1|}}}}}
 
}}<!-- end switch list Japanese -->
 
}}<!-- end switch list Japanese -->
  | korean = {{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}uc:{{{1|}}}}}
+
  | korean = {{#switch:{{uc:{{{1|}}}}}
 
  <!-- See comment wrt Japanese, above -->
 
  <!-- See comment wrt Japanese, above -->
 
| = 0<!-- catch blank input before anything else -->
 
| = 0<!-- catch blank input before anything else -->
Line 177: Line 177:
 
| UI | ㅢ | ᅴ = 2456
 
| UI | ㅢ | ᅴ = 2456
 
| OE | ㅚ | ᅬ = 13456
 
| OE | ㅚ | ᅬ = 13456
| #default = {{{{{|safesubst:}}}braille cell/english&cell2dot-id|input={{{1|}}}}}
+
| #default = {{braille cell/english&cell2dot-id|input={{{1|}}}}}
 
}}<!-- end switch list Korean -->
 
}}<!-- end switch list Korean -->
  | french = {{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}uc:{{{1|}}}}}
+
  | french = {{#switch:{{uc:{{{1|}}}}}
 
  | = 0<!-- catch blank input before anything else -->
 
  | = 0<!-- catch blank input before anything else -->
 
  | QUESTION | ? = 26
 
  | QUESTION | ? = 26
Line 198: Line 198:
 
  | ™ = 345 2345
 
  | ™ = 345 2345
 
  | % | ‰ | ‱ = 345 346
 
  | % | ‰ | ‱ = 345 346
  | #default = {{{{{|safesubst:}}}braille cell/english&cell2dot-id|input={{{1|}}}}}
+
  | #default = {{braille cell/english&cell2dot-id|input={{{1|}}}}}
 
  }}<!-- end switch list French -->
 
  }}<!-- end switch list French -->
  | | #default = {{{{{|safesubst:}}}braille cell/english&cell2dot-id|input={{{1|}}}}}
+
  | | #default = {{braille cell/english&cell2dot-id|input={{{1|}}}}}
 
}}<!-- end #switch lang for exceptions, by language, from English -->
 
}}<!-- end #switch lang for exceptions, by language, from English -->
  
 
<!-- MULTICELL THIRD AND FOURTH CELL
 
<!-- MULTICELL THIRD AND FOURTH CELL
-->| dot-id3&4 = {{{{{|safesubst:}}}#switch:{{{lang|}}}
+
-->| dot-id3&4 = {{#switch:{{{lang|}}}
  | french = {{{{{|safesubst:}}}#switch:{{uc:{{{1|}}}}}
+
  | french = {{#switch:{{uc:{{{1|}}}}}
 
   | ‰ | ‱ = 346}}
 
   | ‰ | ‱ = 346}}
  | #default = {{{{{|safesubst:}}}#switch:{{uc:{{{1|}}}}}
+
  | #default = {{#switch:{{uc:{{{1|}}}}}
 
   | ELLIPSIS | ... = 3
 
   | ELLIPSIS | ... = 3
 
   | MDASH | — | &mdash; = 36 36
 
   | MDASH | — | &mdash; = 36 36
Line 214: Line 214:
  
 
| lang = {{{lang|}}}
 
| lang = {{{lang|}}}
| type = {{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}lc:{{{type|}}}}}<!-- type=jap or kor uses 6-dot colored cells -->
+
| type = {{#switch:{{lc:{{{type|}}}}}<!-- type=jap or kor uses 6-dot colored cells -->
 
   | t | text | unicode = text
 
   | t | text | unicode = text
 
   | jap | japanese | japanese braille | kana = 6dot japanese<!-- separate file set, colored -->
 
   | jap | japanese | japanese braille | kana = 6dot japanese<!-- separate file set, colored -->
Line 223: Line 223:
 
   }}
 
   }}
 
| input = {{{1|}}}
 
| input = {{{1|}}}
| size  = {{{{{|safesubst:}}}#if:{{{size|}}}|{{{{{|safesubst:}}}#iferror:{{{{{|safesubst:}}}#expr:{{{size|0}}}}}|{{{size|}}}|{{{size|}}}px}}|}}<!-- add "px" when number only; default value set in /core when size=blank -->
+
| size  = {{#if:{{{size|}}}|{{#iferror:{{#expr:{{{size|0}}}}}|{{{size|}}}|{{{size|}}}px}}|}}<!-- add "px" when number only; default value set in /core when size=blank -->
| caption = {{{{{|safesubst:}}}yesno|{{{caption|}}}<!--
+
| caption = {{yesno|{{{caption|}}}<!--
   -->|yes={{{{{|safesubst:}}}#if:{{{1|}}}|{{{1|}}}|blank}}<!--
+
   -->|yes={{#if:{{{1|}}}|{{{1|}}}|blank}}<!--
 
   -->|blank=alt-for-caption<!-- use the alt=value
 
   -->|blank=alt-for-caption<!-- use the alt=value
 
   -->|no=no-caption<!-- show nothing -->}}
 
   -->|no=no-caption<!-- show nothing -->}}
 
| bg = {{{bg|}}}
 
| bg = {{{bg|}}}
 
}}
 
}}

Revision as of 05:26, 22 November 2013