Difference between revisions of "Template:Intro"
(New and Improved - now with emphasis string!) |
Galeandrews (talk | contribs) (Publish and Category:Templates) |
||
Line 1: | Line 1: | ||
− | <noinclude>__NOTOC__ | + | <noinclude>__NOTOC__{{intro|The '''''Intro'' Template''' formats text inside a standard introductory blue header, just like this one.|}} |
− | {{ | ||
− | + | '''Purpose''' | |
+ | * This template formats text inside a standardised "introduction" header box with blue background. The text should be placed at the top of the page and should provide a concise summary (preferably in one or two sentences) of the overall content of the page. If a second paragraph is needed, you can use ENTER on the keyboard to create one, just as in normal editing. | ||
+ | * A subsequent string of text can be added that will be displayed below the first, and emphasised with italicised, centre-aligned text. This can be useful when any particular point needs to be made, such as explaining what aspects are <i>not</i> covered in the page text. | ||
− | + | '''Usage of ''Intro'' Template''' | |
+ | '''General usage:''' | ||
+ | |||
+ | {{code|<nowiki>{{Intro|</nowiki> ''Text to be displayed standard'' <nowiki>|</nowiki> ''Text to be displayed emphasised'' <nowiki>}}</nowiki>}} | ||
+ | |||
+ | |||
+ | '''Alternative:''' | ||
+ | |||
+ | If all the text is to be displayed without emphasis, you still need to supply the second pipe symbol <nowiki> "|" </nowiki>, so that after your unemphasised text, the template is closed with {{shortcut| <nowiki>|}}</nowiki> }}: | ||
+ | |||
+ | {{code|<nowiki>{{Intro|</nowiki> ''Text to be displayed standard'' <nowiki>|}}</nowiki>}} | ||
+ | |||
+ | |||
+ | Note that if the pipe symbol is missing, only a dummy parameter will be displayed instead of your intended text. | ||
− | |||
− | |||
+ | '''Style and abbreviations''' | ||
− | + | As the introduction is the first thing the reader sees, the header should be written in full English with no abbreviations such as "viz" or "e.g.". If a technical abbreviation is necessary, a link to explanatory text must be provided. | |
+ | If either the standard or emphasised text must contain the equals sign "=" , then the text after the pipe must be enclosed inside {{shortcut|<nowiki> <nowiki> </nowiki> </nowiki>}} tags: | ||
− | + | {{code|<nowiki>{{Intro|<nowiki>This page explains why "2 + 2 = 4" is correct.</nowiki></nowiki><nowiki></nowiki><nowiki>|}}</nowiki>}} | |
− | |||
− | + | Similarly, if other essential symbols in the text cause the text to display incorrectly, try enclosing the text inside {{shortcut|<nowiki> <nowiki> </nowiki> </nowiki>}} tags. | |
− | ''' | + | '''Example:''' |
− | + | '''Typing this:''' | |
− | {{code|<nowiki>{{Intro|</nowiki> | + | {{code|<nowiki>{{Intro|OGG is strictly an open, free container format for digital multimedia, but the term is commonly used to refer to the high-quality lossy compressed audio file format known as OGG Vorbis.|<nowiki>Please note: if encoding at the command line, " filename = %f " must not be used.</nowiki></nowiki><nowiki></nowiki><nowiki>}}</nowiki>}} |
− | |||
+ | '''will produce this:''' | ||
+ | {{Intro|OGG is strictly an open, free container format for digital multimedia, but the term is commonly used to refer to the high-quality lossy compressed audio file format known as OGG Vorbis.| <nowiki>Please note: if encoding at the command line, " filename = %f " must not be used.</nowiki>}} | ||
− | |||
+ | ---- | ||
− | + | ''Ignore the following, it's only a representation of formatting and a parameter dummy.'' | |
</noinclude> | </noinclude> | ||
{| style="background:#EEEEFF" cellpadding="10px" width=90% align="center" | {| style="background:#EEEEFF" cellpadding="10px" width=90% align="center" | ||
Line 46: | Line 60: | ||
|} | |} | ||
|} | |} | ||
+ | |||
+ | |||
+ | |||
+ | [[Category:Templates]] |
Revision as of 03:26, 15 November 2007
The Intro Template formats text inside a standard introductory blue header, just like this one.
|
Purpose
- This template formats text inside a standardised "introduction" header box with blue background. The text should be placed at the top of the page and should provide a concise summary (preferably in one or two sentences) of the overall content of the page. If a second paragraph is needed, you can use ENTER on the keyboard to create one, just as in normal editing.
- A subsequent string of text can be added that will be displayed below the first, and emphasised with italicised, centre-aligned text. This can be useful when any particular point needs to be made, such as explaining what aspects are not covered in the page text.
Usage of Intro Template
General usage:
{{Intro| Text to be displayed standard | Text to be displayed emphasised }} |
Alternative:
If all the text is to be displayed without emphasis, you still need to supply the second pipe symbol "|" , so that after your unemphasised text, the template is closed with :
{{Intro| Text to be displayed standard |}} |
Note that if the pipe symbol is missing, only a dummy parameter will be displayed instead of your intended text.
Style and abbreviations
As the introduction is the first thing the reader sees, the header should be written in full English with no abbreviations such as "viz" or "e.g.". If a technical abbreviation is necessary, a link to explanatory text must be provided.
If either the standard or emphasised text must contain the equals sign "=" , then the text after the pipe must be enclosed inside </nowiki> tags:
{{Intro|<nowiki>This page explains why "2 + 2 = 4" is correct.</nowiki>|}} |
Similarly, if other essential symbols in the text cause the text to display incorrectly, try enclosing the text inside </nowiki> tags.
Example:
Typing this:
{{Intro|OGG is strictly an open, free container format for digital multimedia, but the term is commonly used to refer to the high-quality lossy compressed audio file format known as OGG Vorbis.|<nowiki>Please note: if encoding at the command line, " filename = %f " must not be used.</nowiki>}} |
will produce this:
OGG is strictly an open, free container format for digital multimedia, but the term is commonly used to refer to the high-quality lossy compressed audio file format known as OGG Vorbis.
|
Ignore the following, it's only a representation of formatting and a parameter dummy.
{{{1}}}
|