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

Материал из FetbukWiki
(шестерёнке «font-size:85%» точно не нужен)
 
м (1 версия импортирована)
 
(не показаны 2 промежуточные версии 2 участников)
Строка 1: Строка 1:
<span class="noprint plainlinks nowrap" style="{{#if:{{{text|}}}|font-size:85%;}} <!--
{{#if: {{{text|}}}
  -->{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}<!--
| <span class="noprint nowrap" style="font-size:85%; {{#if: {{{fontcolor|}}} | color:{{{fontcolor}}} }}">[<nowiki />{{#if: {{{fontcolor|}}}
  -->{{#if:{{{fontstyle|}}}|{{{fontstyle}}};}}<!--
  | {{Цветная ссылка
  -->{{#if:{{{style|}}}   |{{{style}}};}}"><!--
    | 1 = {{{fontcolor}}}
-->{{#if:{{{text|}}}<!--
    | 2 = template:{{{1<noinclude>|test</noinclude>}}}
   -->|<nowiki>[</nowiki>[[template:{{{1<noinclude>|test</noinclude>}}}|<span style="color:<!--
    | 3 = <span aria-label="Перейти к шаблону «{{{1<noinclude>|test</noinclude>}}}»" title="Перейти к шаблону «{{{1<noinclude>|test</noinclude>}}}»">{{{text}}}</span>
      -->{{#if:{{{fontcolor|}}}|{{{fontcolor}}}|#002bb8}};<!--
    }}
      -->{{#if:{{{fontstyle|}}}|{{{fontstyle}}};}}"<!--
   | [[template:{{{1<noinclude>|test</noinclude>}}}|<span aria-label="Перейти к шаблону «{{{1<noinclude>|test</noinclude>}}}»" title="Перейти к шаблону «{{{1<noinclude>|test</noinclude>}}}»">{{{text}}}</span>]]
      --> title="Просмотр этого шаблона">{{{text}}}</span>]]<nowiki>]</nowiki><!--
  }}<nowiki />]</span>
  -->|[[Файл:Wikipedia interwiki section gear icon{{#switch:{{lc:{{{fontcolor|}}}}}|#fff|#ffffff|white=_white|{{#ifexpr:{{#invoke:Color contrast|styleratio|{{{fontstyle|}}}||#666}} < 3.66|_white}}}}.svg|14px|Просмотр этого шаблона|link=Шаблон:{{{1<noinclude>|test</noinclude>}}}|alt=⚙️]]<!--
| [[Файл:Wikipedia interwiki section gear icon{{#switch: {{lc:{{{fontcolor|}}}}}
-->}}<!--
  | #fff
-->&nbsp;</span><noinclude>
  | #ffffff
  | white=_white
  | {{#ifexpr:{{#invoke:Color contrast|styleratio|{{{fontstyle|}}}||#666}} < 3.66|_white}}
  }}.svg|14px|class=noprint|link=Шаблон:{{{1<noinclude>|test</noinclude>}}}|Перейти к шаблону «{{{1<noinclude>|test</noinclude>}}}»]]
}}&nbsp;<noinclude>
{{doc}}<!-- Пожалуйста, добавляйте категории и интервики на страницу документации! -->
{{doc}}<!-- Пожалуйста, добавляйте категории и интервики на страницу документации! -->
</noinclude>
</noinclude>

Текущая версия от 21:59, 9 марта 2022

Перейти к шаблону «test» 

Документация

Синтаксис: {{tnavbar-view|имя шаблона}}

Вместо пиктограммы можно задать текст для ссылки с помощью параметра text:

  • Ошибка Lua в Модуль:Example на строке 96: attempt to call local 'template_code' (a nil value).
  • Ошибка Lua в Модуль:Example на строке 96: attempt to call local 'template_code' (a nil value).

Для задания параметров текстового названия могут использоваться параметры fontcolor (например, fontcolor=white) и fontstyle (например, fontstyle=background:#ccf;). Оформление для всего блока можно задать с помощью параметра style.

  • Ошибка Lua в Модуль:Example на строке 96: attempt to call local 'template_code' (a nil value).
  • Ошибка Lua в Модуль:Example на строке 96: attempt to call local 'template_code' (a nil value).

fontcolor=white без параметра text отобразит белую шестерёнку:

  • Ошибка Lua в Модуль:Example на строке 96: attempt to call local 'template_code' (a nil value).

См. также