Fyrimynd:Italic title/doc
Hetta er ein dokumentatión undirsíða til Fyrimynd:Italic title. Hon inniheldur kunning um nýtsluna, bólkar og um annað innihald, ið ikki er við í uppruna fyrimynd síðuni. |
Henda fyrimynd verður nýtt á nógvum síðum síðum. Fyri at sleppa undan stórum órógvi og óneyðugum server load, so eiga allar broytingar til hesa fyrimynd fyrst at verða royndar í /sandbox ella /testcases subpages, ella á tínum egnu brúkarasíðum. Tá ið tú hevur sæð, hvussu broytingar tínar síggja út á einari royndarsíðu, so kunnu broytingarnar goymast á hesi síðu við bert einari rætting. Vinarliga umhugsa at kjakast um ætlaðar broytingar á kjaksíðuni áðrenn tú gert broytingar her. |
Uses Lua: |
This template italicizes page titles. Article titles cannot contain wiki-formatting, such as ''
, so cannot be italicized in the normal way. Instead, place this template in the article, normally at the very top. It will then have the following effect:
- Titles with no parentheses
()
are fully italicised:Foo
→ FooTalk:Foo
→ Talk:Foo
- Titles which contain parentheses are italicised before the first opening parenthesis:
Foo (bar)
→ Foo (bar)Talk:Foo (bar)
→ Talk:Foo (bar)
- Italicization can be forced on parenthesized text with the
|all=yes
parameter.
This template should only be used in articles that meet the criteria for italic titles given in the Article titles policy.
Usage
[rætta wikitekst]Basic usage
{{italic title}}
All parameters
{{italic title|noerror|all=yes}}
Parameters
[rætta wikitekst]- 1 - if this is set to "noerror", error messages are suppressed. See #Errors for more details.
- all - if this is set to "yes", text in parentheses is italicized.
Errors
[rætta wikitekst]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 doesn't 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).
TemplateData
[rætta wikitekst]Italic title
A template to italicize article titles
Parameter | Description | Type | Status | |
---|---|---|---|---|
Error options | 1 | If set to "noerror", suppresses error messages. Using this is a last-ditch fix - see the template documentation for other options. | String | optional |
All | all | If set to "yes", italicization is forced on parenthesized text. | String | optional |
See also
[rætta wikitekst]Template | Involves | Correct name | Actual article name |
---|---|---|---|
{{Italic title}} | Title in italics | Gone with the Wind | Gone with the Wind |
{{Lowercase title}} | Lowercase first character | eBay | EBay |
{{Correct title|reason=bracket}} | < > [ ] { } | Benzo[a]pyrene | Benzo(a)pyrene |
{{Correct title|reason=#}} | # | Pilot #5 | Pilot ♯5 |
{{Correct title|reason=:}} | / : | DK: King of Swing | DK King of Swing |
{{DISPLAYTITLE}} | Various | Batman (1989 film) | Batman (1989 film) |
Templates which use this template should display the following notice: