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

186 байт добавлено ,  07:18, 1 июля 2015
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
(Add left= parameter to bring in line with Template:Collapse top per Special:Diff/474851419)
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.)
Строка 1: Строка 1:
{<noinclude></noinclude>{{!}} <!-- Template:Collapse --> class="navbox collapsible {{#switch:{{lc:{{{expand|no}}}}}|uncollapse|uncollapsed|expand|expanded|yes|y=uncollapsed|#default=collapsed}}" style="text-align:left; border:{{{border|1px}}} solid silver; margin-top:0.2em;"
{<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;"
{{!}}-
{{!}}-
! style="background-color:{{{background|{{{bg|#CFC}}}}}}; text-align:{{{{{|safesubst:}}}#if:{{{left|}}}|left|center}};" {{!}} {{{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}}}}}}}}}}}}
{{!}}-
{{!}}-
{{!}} style="border: solid 1px silver; padding: {{{padding|8px}}}; background-color: white; " {{!}}
{{!}} style="border: solid 1px silver; padding: {{{padding|8px}}}; background-color: white; " {{!}}
<div style="font-size:112%;">{{{1}}}</div>
<div>{{{1<noinclude>|{{lorem ipsum|3}}</noinclude>}}}</div>
|}<noinclude>
|}<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>
Анонимный участник