साँचा:Hyphenated word end

विकिस्रोत से


This document covers the usage of both the {{hyphenated word start}} and {{hyphenated word end}} templates, since they must be used in pairs. These templates are used for a word split between two pages.

Usage[सम्पादन]

The {{hyphenated word start}} template is intended to be used to record the beginning of a word that is hyphenated between two pages; the end of the word should be recorded with {{hyphenated word end}}.

The {{hyphenated word start}} template displays param 1 (1st word-fragment) followed by a hyphen (-) in the "Page" namespace, and nothing in the "main" namespace. Param 2 (the full-word) is used as the title-attribute for the text; i.e. the tooltip. The {{hyphenated word end}} template displays param 1 (2nd word-fragment) in the "Page" namespace, and param 2 in the main namespace. Param 2 (the full-word) is used as the title-attribute for the text; i.e. the tooltip. The word transcluded into "main" namespace is from param 2 of {{hyphenated word end}}.

Always use balanced pairs of start and end templates.


Examples[सम्पादन]

Assume the word "anticipation" is hyphenated over two pages. You would use:

{{Hyphenated word start|antici|anticipation}}

at the end of the first page, and

{{Hyphenated word end|pation|anticipation}}

at the beginning of the next page.

A real world example can be found with the word "approach-ing" at Page namespace Page:Wind in the Willows (1913).djvu/306 and Page:Wind in the Willows (1913).djvu/307; observe also the results in the main namespace at The Wind in the Willows/Chapter 10.

Invalid invocations are placed into Category:Invalid template invocation.

(There have been problems in the past with spurious blank lines added to main namespace versions with the use of this template. Check the template code history/discussion for the latest scoop.)


NB: the space character immediately before the noinclude is important; it gives styling, such as italics or bold that shrink-wraps a template usage something to wrap in the "main" namespace when the contents of this template evaporates. An italic or bold space evaporates cleanly; italic or bold nullstrings do not. This is only an issue with single words being styled.