Templat:Tajuk condong
Templat ini boleh digunakan untuk mencondongkan huruf-huruf tajuk rencana, dengan menggunakan kata ajaib {{DISPLAYTITLE}}.
Kegunaan
- {{tajuk condong}} mencondongkan tajuk secara automatik bergantung pada keadaannya. Jika tajuk tidak lebih 50 aksara, maka pencondongan sentiasa dilakukan secara automatik:
- Tajuk tanpa tanda kurungan () dicondongkan sepenuhnya:
- Foo → Foo
- Perbincangan:Foo → Pembincangan:Foo
- Tajuk yang mengandungi tanda kurungan hanya dicondongkan sebelum kurungan pembuka yang pertama:
- Foo (bar) → Foo (bar)
- Perbincangan:Foo (bar) → Perbincangan:Foo (bar)
- Tajuk tanpa tanda kurungan () dicondongkan sepenuhnya:
- Tajuk yang melebihi 50 aksara tidak dicondongkan secara automatik, tetapi anda boleh menguji paparan tajuk dengan parameter templat: jika ada padanannya, maka tajuknya dicondongkan:
- {{italictitle| name | bracket1 | bracket2 | ... }}, yang mana "name" ialah bahagian pertama tajuk (sebelum mana-mana tanda kurungan) dan "bracket#" ialah senarai sebanyak lima tempat tanda kurngan: {{italictitle| Foo | bar | baz }} akan dicondongkan seperti berikut:
- Foo → Foo
- Foo (bar) → Foo (bar)
- Foo (baz) → Foo (baz)
- Foo (quok) → Foo (quok)
- {{italictitle| name | bracket1 | bracket2 | ... }}, yang mana "name" ialah bahagian pertama tajuk (sebelum mana-mana tanda kurungan) dan "bracket#" ialah senarai sebanyak lima tempat tanda kurngan: {{italictitle| Foo | bar | baz }} akan dicondongkan seperti berikut:
Lihat juga
{{lowercase}}{{wrongtitle}}
Errors
Sometimes you may see red error messages like this at the top of the page:
Warning: Display title "<i>Article title (disambiguation)</i>" overrides earlier display title "<i>Article title</i> (disambiguation)".
This usually means that there is another instance of {{Italic title}} on the page, usually added by one of the infoboxes. Certain infoboxes, for example {{Infobox album}}, add {{Italic title}} by default. Check the template documentation for any infobox used on the page; it may have instructions about how to deal with italic titles. You may be able to adjust the italics from the infobox instead of using {{Italic title}} at the top of the article. Or if that does not work, you may be able to disable the infobox's italics code altogether.
If you are still having problems, try putting {{Italic title}} after the infobox. You can suppress the error message by using the code {{Italic title|noerror}}.
Technical details: this template uses the DISPLAYTITLE magic word to italicize the title. Error messages can be produced by any two templates which use this magic word, and are not limited to this template. If you are unsure why you are getting a particular error message, you can ask about it at Wikipedia:Village pump (technical).