Templat:Tnull: Perbedaan antara revisi
dw>Primefac (Primefac moved page Template:Tnull to Template:Template link null: more obvious template name to match family) |
k (1 revisi diimpor) |
||
(1 revisi perantara oleh pengguna yang sama tidak ditampilkan) | |||
Baris 1: | Baris 1: | ||
# | <includeonly><code>{{((}}<!-- | ||
-->{{#ifeq:{{lcfirst:{{{1|}}}}}|{{lc:{{{1|}}}}}<!-- | |||
{{ | -->|{{lcfirst:{{{1|}}}}}<!-- | ||
{{ | -->|{{{1|}}}<!-- | ||
}} | -->}}<!-- | ||
-->{{#if:{{{2|}}}|{{!}}{{{2}}}|}}<!-- | |||
-->{{#if:{{{3|}}}|{{!}}{{{3}}}|}}<!-- | |||
-->{{#if:{{{4|}}}|{{!}}{{{4}}}|}}<!-- | |||
-->{{#if:{{{5|}}}|{{!}}{{{5}}}|}}<!-- | |||
-->{{#if:{{{6|}}}|{{!}}{{{6}}}|}}<!-- | |||
-->{{#if:{{{7|}}}|{{!}}{{{7}}}|}}<!-- | |||
-->{{#if:{{{8|}}}|{{!}}{{{8}}}|}}<!-- | |||
-->{{))}}</code></includeonly><noinclude>{{documentation}}</noinclude> |
Revisi terkini sejak 13 Oktober 2023 16.17
Usage[sunting sumber]
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, but it does not link the template name. It is similar to {{tlc}}, but does not prevent text wrapping.
Example[sunting sumber]
Typing {{tnull|foo|bar|baz|boo}}
in the edit window would yield {{foo|bar|baz|boo}}
in the rendered page.
Special character handling[sunting sumber]
"=" (equality sign)[sunting sumber]
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)[sunting sumber]
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}}
TemplateData[sunting sumber]
TemplateData documentation used by VisualEditor and other tools | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Lihat laporan penggunaan parameter bulanan untuk templat ini.
TemplateData untuk Tnull Show example template usage without expanding the template itself. Unlike {{tlx}}, does not link the template.
|
See also[sunting sumber]
Text style ↓ | {{tlg}} options[note 1]to achieve text style |
Link style | ||
---|---|---|---|---|
Linked | Unlinked | Linked with subst | ||
{{tlg}} options[note 1]to achieve link style |
N/A | DEFAULT | nolink=1
|
subst=1
|
normal | DEFAULT |
|
| |
code
|
code=1
|
|
|
|
monospace | mono=1 |
N/A | ||
plaincode
|
plaincode=1 | |||
kbd | kbd=1 |
Templat:NoteFoot [[Category:Internal template-link templates{{#translation:}}]] [[Category:Typing-aid templates{{#translation:}}]]
Dokumentasi di atas ditransklusikan dari Templat:Tnull/doc. (sunting | versi terdahulu) Penyunting dapat melakukan uji coba pada halaman bak pasir (buat | cermin) dan kasus uji (buat) templat ini. Mohon tambahkan kategori pada subhalaman /doc. Subhalaman templat ini. |
Kesalahan pengutipan: Ditemukan tag <ref>
untuk kelompok bernama "note", tapi tidak ditemukan tag <references group="note"/>
yang berkaitan