Misplaced Pages

Template:Braille cell/core: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Template:Braille cell Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 21:18, 9 December 2024 view sourceMatrix (talk | contribs)Extended confirmed users, Rollbackers, Template editors5,452 edits Undid revision 1262144535 by Matrix (talk) better idea to use a backgroundTag: Undo← Previous edit Revision as of 21:28, 9 December 2024 view source Matrix (talk | contribs)Extended confirmed users, Rollbackers, Template editors5,452 edits add default bg on braille images for dark mode, since all svgs are transparent anywayTag: RevertedNext edit →
Line 2: Line 2:
| textlink | text = <span class="brai_cell" title="{{#ifeq:{{{caption|}}} | no-caption || {{#ifeq:{{{caption|}}} | alt-for-caption || {{{caption|}}}}}{{{character|}}} ({{{character name|}}})}}&#x20;{{{unicode-id|}}}" style="background:{{#ifeq:{{{dot-id|0}}}|900|transparent|{{#if:{{{bg|}}}|{{{bg|}}}|#eaecf0}}}}; {{#if:{{{size|}}}|font-size:{{{size|}}};}}<!-- blank to default, set here -->">{{#ifeq:{{{type|}}}|textlink|]|{{{character|}}}}}</span> | textlink | text = <span class="brai_cell" title="{{#ifeq:{{{caption|}}} | no-caption || {{#ifeq:{{{caption|}}} | alt-for-caption || {{{caption|}}}}}{{{character|}}} ({{{character name|}}})}}&#x20;{{{unicode-id|}}}" style="background:{{#ifeq:{{{dot-id|0}}}|900|transparent|{{#if:{{{bg|}}}|{{{bg|}}}|#eaecf0}}}}; {{#if:{{{size|}}}|font-size:{{{size|}}};}}<!-- blank to default, set here -->">{{#ifeq:{{{type|}}}|textlink|]|{{{character|}}}}}</span>
| link = {{#if:{{{dot-id|}}}|{{braille cell/dot-id2article|{{{dot-id|}}}}}}} | link = {{#if:{{{dot-id|}}}|{{braille cell/dot-id2article|{{{dot-id|}}}}}}}
| #default = {{#if:{{{dot-id|}}}|<!-- | #default = {{#if:{{{dot-id|}}}|<span class="brai_image" style="background:{{#if:{{{bg|}}}|{{{bg|}}}|#eaecf0}};"><!--
-->[[File:{{braille cell/dot-id2filename|dot-id={{{dot-id|}}}|type={{{type|}}}}}<!-- -->[[File:{{braille cell/dot-id2filename|dot-id={{{dot-id|}}}|type={{{type|}}}}}<!--
-->|{{#if:{{{size|}}}|{{{size|}}}|40px}}<!-- blank to default (40px), set here -->|{{#if:{{{size|}}}|{{{size|}}}|40px}}<!-- blank to default (40px), set here
-->|alt={{{character|}}} ({{{character name|}}})&#x20;<!-- -->|alt={{{character|}}} ({{{character name|}}})&#x20;<!--
-->{{#switch:{{{caption|}}}|no-caption=| alt-for-caption = {{!}} | #default = {{!}}{{{caption|}}} }}{{{character|}}} ({{{character name|}}}){{#switch:{{{caption|}}}|no-caption|alt-for-caption =| #default=&#x20;{{{unicode-id|}}}}}<!-- -->{{#switch:{{{caption|}}}|no-caption=| alt-for-caption = {{!}} | #default = {{!}}{{{caption|}}} }}{{{character|}}} ({{{character name|}}}){{#switch:{{{caption|}}}|no-caption|alt-for-caption =| #default=&#x20;{{{unicode-id|}}}}}<!--
-->]]}}}} -->]]</span>}}}}

Revision as of 21:28, 9 December 2024