Шаблон:Collapse: различия между версиями

38 байт добавлено ,  14:21, 1 июля 2015
Change to {{{{{|safesubst:}}}#if:{{{width|}}}|{{{width}}}|100%}} to detect present but empty width parameter.
en>Ahecht
(We're really misusing navbox here, and the 112% hack doesn't work (112%*88%=98.6%). Rewrite to not use navbox, so we don't have to hack around it. Add parameters from {{Collapse top}} and sample text in <noinclude> tags. Should be no cosmetic changes.)
en>Ahecht
(Change to {{{{{|safesubst:}}}#if:{{{width|}}}|{{{width}}}|100%}} to detect present but empty width parameter.)
Строка 1: Строка 1:
{<noinclude></noinclude>{{!}} <!-- Template:Collapse --> class="collapsible {{#switch:{{lc:{{{expand|no}}}}}|uncollapse|uncollapsed|expand|expanded|yes|y=uncollapsed|#default=collapsed}}" style="background: {{{bg1|transparent}}}; text-align: left; border: {{{border|1px}}} solid {{{b-color|silver}}}; margin: 0.2em auto auto; width:{{{width|100%}}}; clear: both; padding: 1px;"
{<noinclude></noinclude>{{!}} <!-- Template:Collapse --> class="collapsible {{#switch:{{lc:{{{expand|no}}}}}|uncollapse|uncollapsed|expand|expanded|yes|y=uncollapsed|#default=collapsed}}" style="background: {{{bg1|transparent}}}; text-align: left; border: {{{border|1px}}} solid {{{b-color|silver}}}; margin: 0.2em auto auto; width:{{{{{|safesubst:}}}#if:{{{width|}}}|{{{width}}}|100%}}; clear: both; padding: 1px;"
{{!}}-
{{!}}-
! style="background-color:{{{background|{{{bg|#CFC}}}}}}; text-align:{{{{{|safesubst:}}}#if:{{{left|}}}|left|center}}; font-size:88%; {{{{{|safesubst:}}}#if:{{{fc|}}}|color: {{{fc}}};|}}" {{!}} {{{2|{{{title|{{{heading|{{{header|Extended content}}}}}}}}}}}}
! style="background-color:{{{background|{{{bg|#CFC}}}}}}; text-align:{{{{{|safesubst:}}}#if:{{{left|}}}|left|center}}; font-size:88%; {{{{{|safesubst:}}}#if:{{{fc|}}}|color: {{{fc}}};|}}" {{!}} {{{2|{{{title|{{{heading|{{{header|Extended content}}}}}}}}}}}}
Анонимный участник