Difference between revisions of "Template:Italic title prefixed/doc"

From blackwiki
Jump to navigation Jump to search
imported>GreenComputer
(Added TemplateData)
imported>Vanisaac
m (→‎TemplateData: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
Line 31: Line 31:
 
</templatedata>
 
</templatedata>
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Correct title templates|{{PAGENAME}}]]
 
[[Category:Correct title templates|{{PAGENAME}}]]
  
 
[[tr:Şablon:Italic title prefixed]]
 
[[tr:Şablon:Italic title prefixed]]
</includeonly>
+
}}</includeonly>

Revision as of 22:40, 25 April 2020

This template works like {{Italic title}}, except that it contains a numerical parameter which causes a particular number of characters at the beginning of the title not to be italicized. (This is useful in ship articles, where the name of the ship should be italicized, but the prefix such as "HMS" should not.)

The next character after the prefix of the specified length must be a space.

Examples:

NB This is used as a subtemplate of {{Infobox ship begin}}.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Italic title prefixed

This template works like {{Italic title}}, except that it contains a numerical parameter which causes a particular number of characters at the beginning of the title not to be italicized.

Template parameters

ParameterDescriptionTypeStatus
Number of characters1

The number of characters not to be italicized. The next character after the prefix of the specified length must be a space.

Numberrequired