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

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
(enabling substitution)
imported>Equazcion
(Undid revision 581319151 by Vanisaac (talk))
Line 1: Line 1:
{{{{{|safesubst:}}}#iferror:{{{dot-id|}}}{{{lang|}}}<!--
+
{{#iferror:{{{dot-id|}}}{{{lang|}}}<!--
-->| {{{{{|safesubst:}}}#iferror:{{{lang|}}}|{{{lang|}}}|{{{dot-id|}}}}}{{{{{|safesubst:}}}main other|[[Category:Unsupported braille input{{!}}{{{input|}}}, {{FULLPAGENAME}}]]}}<!--
+
-->| {{#iferror:{{{lang|}}}|{{{lang|}}}|{{{dot-id|}}}}}{{main other|[[Category:Unsupported braille input{{!}}{{{input|}}}, {{FULLPAGENAME}}]]}}<!--
  -->| {{{{{|safesubst:}}}#iferror:{{{{{|safesubst:}}}#expr:{{{dot-id|0}}}}}<!--
+
  -->| {{#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-->|{{{{{|safesubst:}}}braille cell/main2singlecell
+
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-->{{{{{|safesubst:}}}braille cell/main2singlecell
+
cell2-->{{braille cell/main2singlecell
|dot-id={{{{{|safesubst:}}}remove first word|{{{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?-->{{{{{|safesubst:}}}#if:{{{dot-id3&4|}}}<!--
+
cell3&4?-->{{#if:{{{dot-id3&4|}}}<!--
cell3-->|{{{{{|safesubst:}}}braille cell/main2singlecell
+
cell3-->|{{braille cell/main2singlecell
|dot-id={{{{{|safesubst:}}}str number/trim|{{{dot-id3&4|}}}}}
+
|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-->{{{{{|safesubst:}}}#iferror:{{{{{|safesubst:}}}#expr:{{{dot-id3&4|}}}}}|{{{{{|safesubst:}}}braille cell/main2singlecell
+
cell4-->{{#iferror:{{#expr:{{{dot-id3&4|}}}}}|{{braille cell/main2singlecell
|dot-id={{{{{|safesubst:}}}remove first word|{{{dot-id3&4|}}}}}
+
|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-->|{{{{{|safesubst:}}}braille cell/core
+
SINGLE CELL-->|{{braille cell/core
 
  | dot-id = {{{dot-id|}}}
 
  | dot-id = {{{dot-id|}}}
 
  | type = {{{type|}}}
 
  | type = {{{type|}}}
 
  | size = {{{size|}}}
 
  | size = {{{size|}}}
  | character = {{{{{|safesubst:}}}braille cell/dot-id2character|dot-id={{{dot-id|}}}}}
+
  | character = {{braille cell/dot-id2character|dot-id={{{dot-id|}}}}}
  | character name = braille pattern {{{{{|safesubst:}}}#switch:{{{dot-id|1}}}
+
  | 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 = {{{{{|safesubst:}}}#ifeq:{{{dot-id|0}}}|900|no-caption
+
  | caption = {{#ifeq:{{{dot-id|0}}}|900|no-caption
     |{{{{{|safesubst:}}}#switch:{{{caption|}}}
+
     |{{#switch:{{{caption|}}}
 
     | = no-caption
 
     | = no-caption
 
     | no-caption | alt-for-caption = {{{caption|}}}
 
     | no-caption | alt-for-caption = {{{caption|}}}
 
     | #default = |{{{caption|}}}&#x20;=&#x20;}}}}
 
     | #default = |{{{caption|}}}&#x20;=&#x20;}}}}
 
  | bg = {{{bg|}}}
 
  | bg = {{{bg|}}}
  | unicode-id = {{{{{|safesubst:}}}#switch:{{{caption|}}}
+
  | unicode-id = {{#switch:{{{caption|}}}
 
     || no-caption | alt-for-caption =  
 
     || no-caption | alt-for-caption =  
     | #default = {{{{{|safesubst:}}}braille cell/dot-id2unicode-id|dot-id={{{dot-id|}}} }}}}
+
     | #default = {{braille cell/dot-id2unicode-id|dot-id={{{dot-id|}}} }}}}
 
}}
 
}}
 
}}}}
 
}}}}

Revision as of 05:25, 22 November 2013