Template:Respell/doc: Difference between revisions

m
Reverted edits by 119.73.179.154 (talk): nonconstructive edits (HG) (3.4.10)
m (Reverted 1 edit by 189.156.234.126 (talk) to last revision by Cedar101)
 
imported>Adakiko
m (Reverted edits by 119.73.179.154 (talk): nonconstructive edits (HG) (3.4.10))
 
(One intermediate revision by one other user not shown)
Line 15: Line 15:
On Wikipedia, respelling is most commonly used to help clarify the pronunciation of a name or topic in the [[Wikipedia:Manual of Style/Lead section|lead section]] or introductory paragraph of an article. Per the [[Wikipedia:Manual of Style/Pronunciation|Manual of Style]], respelling may only follow and augment a corresponding [[International Phonetic Alphabet]] template (e.g., {{tl|IPAc-en}}) and may never be used in place of one. The template provides a link to a key so that readers may easily discover how to pronounce an easily mispronounced or difficult-to-pronounce word. For example:
On Wikipedia, respelling is most commonly used to help clarify the pronunciation of a name or topic in the [[Wikipedia:Manual of Style/Lead section|lead section]] or introductory paragraph of an article. Per the [[Wikipedia:Manual of Style/Pronunciation|Manual of Style]], respelling may only follow and augment a corresponding [[International Phonetic Alphabet]] template (e.g., {{tl|IPAc-en}}) and may never be used in place of one. The template provides a link to a key so that readers may easily discover how to pronounce an easily mispronounced or difficult-to-pronounce word. For example:
*'''[[Worcestershire]]''' ({{IPAc-en|ˈ|w|ʊ|s|t|ər|ʃ|ər}} {{respell|WUUS|tər|shər}}) is a county located in central [[England]].
*'''[[Worcestershire]]''' ({{IPAc-en|ˈ|w|ʊ|s|t|ər|ʃ|ər}} {{respell|WUUS|tər|shər}}) is a county located in central [[England]].
*:<syntaxhighlight lang="moin" inline>'''Worcestershire''' ({{IPAc-en|ˈ|w|ʊ|s|t|ər|ʃ|ər}} {{respell|WUUS|tər|shər}}) is a county located in central [[England]].</syntaxhighlight>
*:<code><nowiki>'''Worcestershire''' ({{IPAc-en|ˈ|w|ʊ|s|t|ər|ʃ|ər}} {{respell|WUUS|tər|shər}}) is a county located in central [[England]].</nowiki></code>


Common practice is to put no punctuation except one space between the IPA and the respelling for clarity, as in:
Common practice is to put no punctuation except one space between the IPA and the respelling for clarity, as in:
*'''[[Massachusetts]]''' ({{IPAc-en|ˌ|m|æ|s|ə|ˈ|tʃ|uː|s|ɪ|t|s}} {{respell|MASS|ə|CHOO|sits}}, {{IPAc-en|-|z|ɪ|t|s}} {{respell|-zits}}) is the most populous state in [[New England]].
*'''[[Massachusetts]]''' ({{IPAc-en|ˌ|m|æ|s|ə|ˈ|tʃ|uː|s|ɪ|t|s}} {{respell|MASS|ə|CHOO|sits}}, {{IPAc-en|-|z|ɪ|t|s}} {{respell|-zits}}) is the most populous state in [[New England]].
*:<syntaxhighlight lang="moin" inline>'''Massachusetts''' ({{IPAc-en|ˌ|m|æ|s|ə|ˈ|tʃ|uː|s|ɪ|t|s}} {{respell|MASS|ə|CHOO|sits}}, {{IPAc-en|-|z|ɪ|t|s}} {{respell|-zits}}) is the most populous state in [[New England]].</syntaxhighlight>
*:<code><nowiki>'''Massachusetts''' ({{IPAc-en|ˌ|m|æ|s|ə|ˈ|tʃ|uː|s|ɪ|t|s}} {{respell|MASS|ə|CHOO|sits}}, {{IPAc-en|-|z|ɪ|t|s}} {{respell|-zits}}) is the most populous state in [[New England]].</nowiki></code>


Any argument containing an underscore or beginning or ending with a hyphen will not generate adjoining hyphens and will instead turn the underscore into a space, allowing for denoting word boundaries, alternate pronunciations, and affix ellipses. For example:
Any argument containing an underscore or beginning or ending with a hyphen will not generate adjoining hyphens and will instead turn the underscore into a space, allowing for denoting word boundaries, alternate pronunciations, and affix ellipses. For example:
*[[Avram Noam Chomsky]]: <syntaxhighlight lang="text" inline>{{respell|av|RAHM|_|NOHM|_|CHOM|skee}}</syntaxhighlight> → {{respell|av|RAHM|_|NOHM|_|CHOM|skee}}
*[[Avram Noam Chomsky]]: <code><nowiki>{{respell|av|RAHM|_|NOHM|_|CHOM|skee}}</nowiki></code> → {{respell|av|RAHM|_|NOHM|_|CHOM|skee}}
*[[Copenhagen]]: <syntaxhighlight lang="text" inline>{{respell|KOH|pən|HAY|gən|,_-|HAH|-}}</syntaxhighlight> → {{respell|KOH|pən|HAY|gən|,_-|HAH|-}}
*[[Copenhagen]]: <code><nowiki>{{respell|KOH|pən|HAY|gən|,_-|HAH|-}}</nowiki></code> → {{respell|KOH|pən|HAY|gən|,_-|HAH|-}}


An argument beginning in <code>(-</code> or ending in <code>-)</code> will also suppress the extra hyphen, so that optional syllables can be indicated.
An argument beginning in <code>(-</code> or ending in <code>-)</code> will also suppress the extra hyphen, so that optional syllables can be indicated.
*[[coupe]]: <syntaxhighlight lang="text" inline>{{respell|KOOP|(-ay)}}</syntaxhighlight> → {{respell|KOOP|(-ay)}}
*[[coupe]]: <code><nowiki>{{respell|KOOP|(-ay)}}</nowiki></code> → {{respell|KOOP|(-ay)}}


==Examples==
==Examples==
Line 53: Line 53:
*'''[[Jazze Pha]]''' {{IPAc-en|ˈ|dʒ|æ|z|i|_|ˈ|f|eɪ}} {{respell|JAZ|ee|_|FAY}}
*'''[[Jazze Pha]]''' {{IPAc-en|ˈ|dʒ|æ|z|i|_|ˈ|f|eɪ}} {{respell|JAZ|ee|_|FAY}}
*:<code><nowiki>{{respell|JAZ|ee|_|FAY}}</nowiki></code>
*:<code><nowiki>{{respell|JAZ|ee|_|FAY}}</nowiki></code>


==Documentation==
==Documentation==
Line 71: Line 70:
"5": {},
"5": {},
"6": {},
"6": {},
"7": {},
"7": {}
"link": {
"description": "link=no will not link the respelling.",
"example": "no",
"type": "boolean",
"default": "yes"
}
}
}
}
}
Anonymous user