Template talk:Example-Start
This template is used to format the header of a standardized table holding information about a formatting example.
This template is intended to be used with the Example-Line and Example-End templates.
Note the closely related template Example-Proof-Start. Any changes made to this template should be probably be echoed to that one as well.
Usage
Format
{{Example-Start |Title=<Title of the table> |NWidth=<Width of the Line number column> |IWidth=<Width of the Image and Proofing Output columns> |RWidth=<Width of the Remarks column> }}
It is not required to give each parameter on a separate line as shown above.
Warning: Failing to close the template call can give very odd results when used as part of a series of templates.
Parameters
All parameters are named so their order is irrelevant. howver, the order above is a logical one.
- Title= This title is bold-faced and centered over the table
- NWidth= Width in pixels of the Line Number column. if ommitted a default value is used. If specified but no number is given, the column width is automatically set based on the contents of the cells in the column.
- IWidth= Width in pixels of the Image and Proofing Output column. if ommitted a default value is used. If specified but no number is given, the column width is automatically set based on the contents of the cells in the column.
- RWidth= Width in pixels of the Remarks column. if ommitted a default value is used. If specified but no number is given, the column width is automatically set based on the contents of the cells in the column.
Example
Here is an example of a complete table using this template and its sister templates.
{{Example-Start | Title= Example Demo (Small caps) }} {{Example-Line |Num=1. |Image=This is Small Caps|Proof=<sc>This is Small Caps</sc> |Rem= This is the basic example from the guidelines }} {{Example-Line |Num=2. |Image= He said this is Small Caps! |Proof=He said this is <sc>Small Caps</sc>! |Rem= Like italics and bold text, punctuation goes outside the tags unless it is an entire sentence or section that is in small caps, or the punctuation is itself part of a phrase, title or abbreviation that is in small caps. }} {{Example-Line |Num=3. |Image= Dear Sir: |Proof=<sc>Dear Sir:</sc> |Rem=forumtopic:15719 pg. 2 discusses this example in the Guidelines on Letters/Correspondence. Some felt that there was an error here, and that, for consistency, the colon ought to be outside the tags. However, jhutch asserts that the guidelines are correct because "Dear Sir:" is a whole phrase/sentence. }} {{Example-End}}
This renders as follows:
No. | Image | Remarks |
Correctly Formatted Text | ||
1. | This is Small Caps | This is the basic example from the guidelines |
<sc>This is Small Caps</sc> | ||
2. | He said this is Small Caps! | Like italics and bold text, punctuation goes outside the tags unless it is an entire sentence or section that is in small caps, or the punctuation is itself part of a phrase, title or abbreviation that is in small caps. |
He said this is <sc>Small Caps</sc>! | ||
3. | Dear Sir: | forumtopic:15719 pg. 2 discusses this example in the Guidelines on Letters/Correspondence. Some felt that there was an error here, and that, for consistency, the colon ought to be outside the tags. However, jhutch asserts that the guidelines are correct because "Dear Sir:" is a whole phrase/sentence. |
<sc>Dear Sir:</sc> |
Discussion
Please discuss this template and possible changes to it here.