Difference between revisions of "Template:Italic title/doc"
m (1 revision) |
m (1 revision) |
(No difference)
|
Latest revision as of 05:53, 15 February 2013
{{#ifeq: doc | doc
|
{{
#ifeq: show | show | {{#invoke:Message box|mbox}} }}{{ #if: | | {{#ifexist:Template:Italic title|[[Category:{{ #switch: Template | Template = Template | Module = Module | User = User | #default = Wikipedia }} documentation pages]]|}} }}
| }}
{{#ifeq:|yes
|
{{#ifeq:{{#if:| {{{smallimage}}} | }}|none | | }} {{#if:{{#if: | {{{smallimageright}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | |}}
}}
{{#if:{{#if:| {{{smallimage}}} | }} | {{#if:| {{{smallimage}}} | }} | [[Image:{{#switch:content | speedy = Imbox speedy deletion.png | delete = Imbox deletion.png | content = Imbox content.png | style = Edit-clear.svg | move = Imbox move.png | protection = Imbox protection.png | notice | #default = Imbox notice.png }} | {{#ifeq:yes|yes | 30x30px | 40x40px }}|link=|alt=]]}} | {{#if:| {{{smalltext}}} | This {{
|Module=Lua module
|#default=template
}} is used on {{#if:|{{{1}}}|a very large number of}} pages.
|Module=module |#default=template }} should first be tested in its [[{{#ifeq:doc|doc| Template:Italic title | Template:Italic title/doc }}/sandbox|/sandbox]] or [[{{#ifeq:doc|doc| Template:Italic title | Template:Italic title/doc }}/testcases|/testcases]] subpages{{
|Module=. |#default=, or in your own user space. }} The tested changes can then be added to this page in one single edit. Please consider discussing any changes on {{#if:|[[{{{2}}}]]|the [[{{#ifeq:doc|doc| Template talk:Italic title | Template talk:Italic title/doc }}|talk page]]}} before implementing them. }} | {{#if: | {{{smallimageright}}} | }} |
{{#switch:content
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}
|
{{#ifeq:|none | | }} {{#if: | {{#ifeq:|none | |}}
}}
{{#if: | | [[Image:{{#switch:content | speedy = Imbox speedy deletion.png | delete = Imbox deletion.png | content = Imbox content.png | style = Edit-clear.svg | move = Imbox move.png | protection = Imbox protection.png | notice | #default = Imbox notice.png }} | {{#ifeq:|yes | 30x30px | 40x40px }}|link=|alt=]]}} | This {{
|Module=Lua module
|#default=template
}} is used on {{#if:|{{{1}}}|a very large number of}} pages.
|Module=module |#default=template }} should first be tested in its [[{{#ifeq:doc|doc| Template:Italic title | Template:Italic title/doc }}/sandbox|/sandbox]] or [[{{#ifeq:doc|doc| Template:Italic title | Template:Italic title/doc }}/testcases|/testcases]] subpages{{
|Module=. |#default=, or in your own user space. }} The tested changes can then be added to this page in one single edit. Please consider discussing any changes on {{#if:|[[{{{2}}}]]|the [[{{#ifeq:doc|doc| Template talk:Italic title | Template talk:Italic title/doc }}|talk page]]}} before implementing them. |
{{#switch:content
| | speedy | delete | content | style | move | protection | notice =
| #default =
}} }}
This template can be used to italicise page titles. It should only be used in articles that meet the criteria for italic titles given in the Article titles policy.
IF IT DOESN'T WORK: Try putting the template after the infobox. If it still doesn't work, use DISPLAYTITLE instead of this template; again, this may need to go after the infobox.
Usage
- {{Italic title}} italicises the title automatically under certain circumstances. If the title is less than 50 characters in length, italicisation is always performed automatically:
- Titles with no brackets () are fully italicised:
- Foo → Foo
- Talk:Foo → Talk:Foo
- Titles which contain brackets are italicised before the first open bracket:
- Foo (bar) → Foo (bar)
- Talk:Foo (bar) → Talk:Foo (bar)
- Titles with no brackets () are fully italicised:
- Titles longer than 50 characters are not automatically italicised. However, you can pass parameters for the template to test the title against: if a match is found, italicisation is performed:
- {{Italic title| name | bracket1 | bracket2 | ... }}, where "name" is the first part of the title (before any brackets) and the "bracket#" are a list of up to five possible brackets:{{Safesubst:#switch:
|2=
|3=
|4=
|5=
|6=
|7=
|8=
|9=
|10=
|11=
|12=
|13=
|14=
|15=
|16=
|17=
|18=
|19=
|20=
|
}}{{Italic title| Foo | bar | baz }} will italicise as follows:
- Foo → Foo
- Foo (bar) → Foo (bar)
- Foo (baz) → Foo (baz)
- Foo (quok) → Foo (quok)
- {{Italic title|force=true}} italicises the entire title including brackets, and will also italicise titles with more than 50 characters.
- If an infobox is used that has an italic-title autofunction, then the {{Italic title}} template must be positioned after the infobox.
See also
- WP:ITALICTITLE
{{{{#if:|subst:}}Italic title prefixed{{#if:|
|{{{2}}}
}}{{#if:|
|{{{3}}}
}}{{#if:|
|{{{4}}}
}}{{#if:|
|{{{5}}}
}}{{#if:|
|{{{6}}}
}}{{#if:|
|{{{7}}}
}}{{#if:|
|{{{8}}}
}}{{#if:|
|{{{9}}}
}}{{#if:|
|{{{10}}}
}}{{#if:|
|{{{11}}}
}}{{#if:|
|...
}}}}
Template | Involves | Correct name | Technical name | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
{{{{#if:Italic title | Italic title | tlp|... }}{{#ifeq:x | |{{{2}}} }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Title in italics | Batman (1989 film) | Batman (1989 film) |
{{{{#if:Lowercase title | Lowercase title | tlp|... }}{{#ifeq:x | |{{{2}}} }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Lowercase first character | eBay | EBay |
{{{{#if:Correct title | Correct title | tlp|... }}{{#ifeq:reason=bracket|reason=bracket| |reason=bracket }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | < > [ ] { } | Benzo[a]pyrene | Benzo(a)pyrene | |
{{{{#if:Correct title | Correct title | tlp|... }}{{#ifeq:reason=#|reason=#| |reason=# }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | # | Pilot #5 | Pilot No. 5 | |
{{{{#if:Correct title | Correct title | tlp|... }}{{#ifeq:reason=:|reason=:| |reason=: }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | / : | Games of Empire: Global Capitalism and Video Games | Games of Empire Global Capitalism and Video Games | |
{{DISPLAYTITLE}} | Various |
Templates which use this template should display one the following notices:
- {{Auto italic title}}
- {{Auto italic title 2}}
- {{Auto italic title 3}}