|
[edit]
[edit] Basic usage descriptionThis template will format a list of references or cited works, so that the references display with a hanging indent whenever the text wraps over more than one line.
{{ref indent}} <!--Begin hanging indent style -->
...[text block(s) to be formatted go here]...
{{ref indent-end}} <!--End hanging indent style -->
To (optionally) change the default offset for the indent:
{{ref indent|n}}
Where n is a positive (usually integer) value for the offset distance, measured in em; for example NOTE: Should always be paired with the corresponding closing tag, namely {{ref indent-end}}. [edit] PurposeThis template will format blocks of text so that they display as a hanging indent, whenever the text wraps over more than one line. Its primary purpose is to apply this formatting to lists of references and cited works, that typically appear in articles towards the end under section(s) entitled "References", "Sources", "Bibliography", "Further reading", or similar (see WP:CITE). Such listings are usually bulleted lists, alpha-sorted by author, providing details on the works (books, papers, webpages, etc) consulted for the article, or that are relevant to the topic. This template is intended to provide a visual cue or style making it easier to pick out the keywords (ie, the authors' names) from the listing, by forcing any wrap-around or overflow text to be indented. Thus, a list of references such as:
will appear as:
The keywords (authors' names) used to identify the reference work are now easier to differentiate from the surrounding text when scanning down the list. The individual references in the list can either be manually formatted, or formatted via one of the citation templates, or a combination of both; the effect should be uniform.
While intended to be used for bibliographical lists, in principle the formatting produced by this template can be applied to other list-type outputs, if there is some reason to do so. For example, it could be applied to the list of footnotes/inline citations generated by the cite.php method (ie, the It can also be applied to any other similar listing, or paragraphs and text blocks in general, if there is some reason to display the text in this fashion. NOTE, if tables, infoboxes, or other offset-type formatting are included within the block, the results may be unpredictable, so use with caution and preview the results before saving. Also note, the display may vary between different browsers/settings, depending on the circumstance. [edit] Parameter and function
The template has one optional (unnamed) parameter, which can be used to change the size of the resulting indentation from the default value of 5em (five em-spaces). To change the indent setting from the default, use Using {{ref indent|2}}—
Using {{ref indent|4}}—
If no parameter specified,
The template applies a "div style=" to whatever text comes after it, and so when used it should be accompanied (paired) with a separate closing tag placed immediately at the end of the text block to be formatted. The template {{ref indent-end}} should be used to close the styled block. Failure to supply the closing tag may result in unintended consequences for the subsequent text in the article (eg an 'External links' section, or any following navigation templates). [edit] Usage examples
{{ref indent}} <!--Begin hanging indent style -->
*First reference work in listing (author, year, title, publisher, etc)
*Second reference work in listing (author, year, title, publisher, etc)
...
*Last reference work in listing (author, year, title, publisher, etc)
{{ref indent-end}} <!--End hanging indent style -->
{{ref indent}} <!--Begin hanging indent style -->
{{refbegin}} <!--Begin 'references-small' style -->
*First reference work in listing (author, year, title, publisher, etc)
*Second reference work in listing (author, year, title, publisher, etc)
...
*Last reference work in listing (author, year, title, publisher, etc)
{{refend}} <!--End 'references-small' style -->
{{ref indent-end}} <!--End hanging indent style -->
{{ref indent}} <!--Begin hanging indent style -->
<references/> <!--or {{reflist}} -->
{{ref indent-end}} <!--End hanging indent style -->
NOTE, not recommended if multi-column footnotes display is used. [edit] Browser differences and list bulletsThere is some difference between browsers in how the list-item bullet appears. For MSIE the bullet can appear up against the first character of the list item. This can be overcome by either inserting a non-breaking space[ One shorthand way to apply non-breaking space(s) between the bullet and the text is to use the template {{nbsp}}, so for example To convert the list to a non-bulleted list, use a colon [:] in place of the asterisk [*] as the list-item delimiter. [edit] See also
Directorio de Enlaces Directorio dmoz Directorio espejo dmoz Pedro Bernardo |