Шаблон:Tnull/документація

Матеріал з Вікіпедії — вільної енциклопедії.
Перейти до навігації Перейти до пошуку

Використання[ред. код]

Tnull is used to nullify templates in the monospaced font. It is similar to {{tlx}} in the way that it has support for many parameters.

Example[ред. код]

Typing {{tnull|foo|bar|baz|boo}} in the edit window would yield {{foo|bar|baz|boo}} in the rendered page.

Special character handling[ред. код]

"=" (equality sign)[ред. код]

If there is a "=" character (equality/equals sign) in any parameter, it must be replaced with = [or {{=}}?]:

{{tnull|click|image=image name|width=width|height=height|link=page name}}

Or you can use parameter-number=value as in:

{{tnull|click|2=image=image name|3=width=width|4=height=height|5=link=page name}}

Either method would yield the following output:

{{click|image=image name|width=width|height=height|link=page name}}

"|" (vertical bar, pipe)[ред. код]

If a second consecutive pipe (|) is used to denote that a parameter has been skipped, you must replace it with | as in:

{{tnull|look from|Alan||all the Alans}}

That would yield the following displayed output:

{{look from|Alan||all the Alans}}

Див. також[ред. код]

Форматування загального призначення[ред. код]

  • 1 {{tlg}} найширший, дозволяє будь-яку комбінацію властивостей стилю тексту та/або посилання.
  • 2 Запобігає розриву тексту через розміщення його всередині теґів <span class="nowrap">...</span>.
  • 3 Використовує моноширинний шрифт, але не <code>...</code>.
  • 4 Дозволяє посилання на шаблони у будь-якому просторі назв.

Інші шаблони форматування[ред. код]

Приклад коду Ефект Зауваження
{{tl2|Hatnote|lang=fr}} {{hatnote}} Підтримує посилання на сестринські проєкти (напр., fr:Hatnote)
{{tlu|User:Ahunt/SSHFS}} {{User:Ahunt/SSHFS}} Підтримує посилання на будь-який простір назв
{{xpd|Hatnote|Some hatnote text}} «{{hatnote|Some hatnote text }}» дає «» [1] || Показує код, приклад та посилання для розширення коду шаблону
{{para|title|<var>book title</var>}} |title=book title Форматує параметри шаблону для відображення із або без значень

Із допоміжними посиланнями[ред. код]

Приклад коду Ефект
{{lts|Hatnote}} Шаблон:Hatnote(редагувати обговорення посилання історія)
{{t links|Hatnote}} Шаблон:T links
{{tiw|Hatnote}} Template:hatnote (backlinks, edit)
{{tltt|Hatnote}} {{Hatnote}}
{{tetl|Hatnote}} Шаблон:Tetl
{{tsetl|Hatnote}} Шаблон:Tsetl
{{ti|Hatnote}} {{Hatnote}} (обг. · викор. · ред.)
{{tic|Hatnote}} Шаблон:Tic
{{tiw|Hatnote}} Template:Hatnote (backlinks, edit)
{{tlt|Hatnote}} Шаблон:Tlt
{{ttl|Hatnote}} Шаблон:Ttl
{{twlh|Hatnote}} Template:Hatnote (links, talk)

Див. також[ред. код]