Template:Section sizes
error: no sections found in: Template:Section sizes (help) |
| This template is used on approximately 4,100 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses Lua: |
To be used on the talk pages of very long articles, or in discussion of other articles where it is desired to show the sizes of subsections. The largest byte count and cumulative section total are coloured in red; the larger a section is, the redder it's shaded.
Usage
Use:
{{Section sizes}}
or include the name of a page as the first parameter, as one of:
{{Section sizes|1919 New Year Honours}}
{{Section sizes|1=1919 New Year Honours}}
Other optional parameters include:
|style=, which takes a CSS style string, e.g.{{Section sizes|1919 New Year Honours|style=float:right; margin-left:.5em}}|getprose=, which can be set to "no" to suppress generation of the "Prose size" column to reduce Lua run time, e.g.:{{Section sizes|1919 New Year Honours|getprose=no}}
Example
{{Section sizes|1919 New Year Honours}}
{{Section sizes|1919 New Year Honours|style=float:right; margin-left:.5em|getprose=no}}
Section sizes in 1919 New Year Honours
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Messaging
There are three fatal errors and one advisory message which may be reported by the template.
Fatal errors:
- error: no article: <article title> – emitted when the template cannot fetch the content of <article title>
- error: <article title> is a redirect – emitted when <article title> is a redirect
- error: no sections found in: <article title> – emitted when <article title> does not have any sections except the lede
Advisory message:
- markup removed; cannot link – this is emitted when a section header of the article contains invalid markup such as an embedded citation; in this case, the section header is emitted in plain text as it cannot be linked for technical reasons. The gory details follow.
The template attempts to correctly render and link section names. That is not always possible because of Html and wiki markup that should not be in the section name; see MOS:HEAD. The template attempts to render a readable, but unlinked section name with a message and link to this page when Html and wiki markup is found. For these cases, the page that transcludes this template will be added to a tracking category.
The template retains bold (''') and italic ('') wiki markup and will leave any self-closed <nowiki /> tags. When templates are present, this template renders them and then removes any Html and Html-like markup. Wikilinks in the section name are replaced with their display text.
Categorization
When an unlinked section name is emitted in the table along with a "markup removed" error (see § Messaging) because of parsing issues in the section header, the page on which the template appears is tracked in Category:Pages with Template:Section sizes errors.
TemplateData
TemplateData for Section sizes
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | Override the name of the page to use
| Page name | optional |
| style | style | CSS style
| String | optional |
See also
- {{Section length}}
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.