Шаблон:Tag: различия между версиями
Перейти к навигации
Перейти к поиску
(These are called attributes; no one who does HTML calls them "parameters".) |
(стилизация на основе Модуль:Template call code/styles.css) |
||
Строка 1: | Строка 1: | ||
− | <code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{# | + | {{#ifeq: {{{style|}}} | regular | <templatestyles src="Модуль:Template call code/styles.css" /> }}<{{#ifeq: {{{style|}}} | regular | span | code }} class="{{#ifeq: {{{wrap|}}} | yes | wrap | nowrap }}" style="{{#switch: {{{style|}}} |
+ | | plain = border:none; background:transparent; | ||
+ | | regular = | ||
+ | | {{{style|}}} | ||
+ | }}"><!-- | ||
Opening tag | Opening tag | ||
− | -->{{#switch:{{{2|pair | + | -->{{#switch: {{#if: {{{2|}}} | {{{2|}}} | pair }} |
|c|close = | |c|close = | ||
− | + | |s|single | |
|o|open | |o|open | ||
− | |p|pair = | + | |p|pair = {{#ifeq: {{{1|tag}}} |
+ | | !-- | ||
+ | | {{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak"><!--</span> | <!-- }} | ||
+ | | {{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak"><</span> | < }}{{{1|tag}}}{{#if: {{{params|{{{p|}}}}}} |  {{{params|{{{p|}}}}}} }} | ||
+ | }} | ||
}}<!-- | }}<!-- | ||
Content between tags | Content between tags | ||
− | -->{{#switch:{{{2|pair | + | -->{{#switch: {{#if: {{{2|}}} | {{{2|}}} | pair }} |
− | |c|close = {{{content|}}} | + | |c|close = {{{content|{{{c|}}}}}} |
− | + | |s|single =  {{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak">/></span> | /> }} | |
− | |o|open = >{{{content|}}} | + | |o|open = {{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak">></span> | > }}{{{content|{{{c|}}}}}} |
− | |p|pair = {{#ifeq:{{{1|tag}}}|!--||>}}{{{content| | + | |p|pair = {{#ifeq: {{{1|tag}}} | !-- || {{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak">></span> | > }} }}{{{content|{{{c|}}}}}} |
}}<!-- | }}<!-- | ||
Closing tag | Closing tag | ||
− | -->{{#switch:{{{2|pair | + | -->{{#switch: {{#if: {{{2|}}} | {{{2|}}} | pair }} |
− | + | |s|single | |
|o|open = | |o|open = | ||
|c|close | |c|close | ||
− | |p|pair = {{#ifeq:{{{1|tag}}}|!--|-->|<& | + | |p|pair = {{#ifeq: {{{1|tag}}} |
+ | | !-- | ||
+ | | {{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak">--></span> | --> }} | ||
+ | | {{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak"></</span>{{{1|tag}}}<span class="ts-templateCallCode-weak">></span> | </{{{1|tag}}}> }} | ||
+ | }} | ||
}}<!-- | }}<!-- | ||
− | --></code><noinclude> | + | --></{{#ifeq: {{{style|}}} | regular | span | code }}><noinclude>{{doc}}</noinclude> |
− | {{ | ||
− | </noinclude> |
Версия от 18:10, 26 октября 2021
<tag></tag>
Документация
![]() | Этому шаблону не хватает документации. |