"ഫലകം:Contains special characters/doc" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

(ചെ.) Bot: Cleaning up old interwiki links
imported>SMcCandlish
documentation overhaul
വരി 8:
=== Usage ===
Place at the top of affected articles, below any infobox. Each particular language should have a separate template that calls SpecialChars with the following parameters (as appropriate for that language).
 
Typical implementation, with generally useful values:
 
<pre>
<nowiki>
{{Contains special characters
| special = uncommon [[Unicode]] characters
| fix = Help:Multilingual support
| error = [[Specials (Unicode block)#Replacement character|question marks, boxes, or other symbols]]
| characters = the intended characters
| image = Replacement character.svg
| link = Specials (Unicode block)#Replacement character
| alt = <?>
| compact =
| image =
| alt =
| link =
| special =
| fix =
| characters =
| error =
}}
</nowiki>
</pre>
 
; <code>|special=</code>: {{strong|Required.}} The languages or special content the page includes. This is the text immediately after "This page contains". Free-form, so you can specify as many as you like; for a page of numerous mixed languages, see {{tl|Unicode notice}}. Remember to link to the root pagesarticles for the characters / languagelanguages.
; compact: (optional) If set to any value, it will display a shorter form of the standard text, to save space.
; <code>|fix=</code>: The "rendering support" link to a page with the solution (installing fonts, etc.). This should just be the title of the fix page, unlinked. This should usually be <code>Help:Multilingual support</code> unless you have something more specific to point to for a particular language or use case (e.g. <code>International Phonetic Alphabet#Technical note</code>, used in the {{tl|IPA notice}} derivative of this template).
; image: (optional) Just the title (no <nowiki>'image:'</nowiki> prefix) of an image of the characters, ideally legible at 65x50px and either square or slightly wider than tall.
; <code>|error=</code>: (optiona; {{em|must}} be given a value or omitted entirely) The type of rendering error that will observed without the required support. Free-form wikicode, and will appear between "you may see" and "instead of". Defaults to: <code><nowiki>[[Specials (Unicode block)#Replacement character|question marks, boxes, or other symbols]]</nowiki></code>, though <code><nowiki>''[[mojibake]]''</nowiki></code> may be good for East Asian languages.
; alt: (optional) The alt text for the image, for visually-impaired readers. See [[WP:ALT]]. If the image is merely some text, the alt text should simply repeat that text.
; <code>|characters=</code>: The specific type of characters that might be missing (i.e. [[kanji]], [[kana]]). This is the final wording of the template, after "instead of". Free-form, remember to use links, if not already linked in {{para|special}}. The entire "instead of" clause will not appear if this is blank (i.e., the template will end with the wording of {{para|error}} or its default value).
; link: (optional) Name of the article that the image should link to. By default, the image is considered to be purely decorative and does not link to any article. If this parameter is specified, the '''alt''' parameter should also be specified.
; <code>|section=</code>: (optional) By default, this display "article" in an article and "page" on all other pages. You can manually specify a replacement for that word, usually {{para|section|section}}, but other values might be <code>list</code> or <code>table</code>. Note: The "{{para|section|y}}" syntax does not work; it will output the letter "y". <small>[[Template:YesNo|Support for that option]] can be added if it is desired.</small>
; special: The languages or special content the page includes. Free-form, so you can specify as many as you like. Remember to link to the root pages for the characters / language.
; <code>|image=</code>: (optional) Just the title (no <code>File:</code> or <code>Image:</code> prefix) of an image of the characters, ideally legible at 65x50px and either square or slightly wider than tall. The template defaults to blank, but a reasonable suggestion for many circumstances is [[:File:Replacement character.svg|Replacement character.svg]]: [[File:Replacement character.svg|20px]], which can be given an {{para|alt=&lt;?&gt;}} description. (This is the default replacement character on Windows systems.)
; fix: Link to a page with the solution (installing fonts etc.). This should just be the title of the fix page, unlinked.
; <code>|alt=</code>: (optional) The alt text for the image, for visually-impaired readers. See [[WP:ALT]]. If the image is merely some text, the alt text should simply repeat that text.
; characters: The specific type of characters that might be missing (i.e. [[kanji]], [[kana]]). Free-form, remember to use links.
; <code>|link=</code>: (optional) Name of the article that the image should link to. This should just be the title of the page, unlinked, usually <code>Specials (Unicode block)#Replacement character</code>, but perhaps <code>Mojibake</code> for East Asian languages. By default, the image is considered to be purely decorative and does not link to any article. If this parameter is specified, the '''alt''' parameter should also be specified.
; error: The rendering error observed (defaults to [[mojibake]]). Free-form.
; <code>|width=</code>: (unusually unused) The default width of the image is <code>22em</code>. This can be made larger with this parameters, for a very small character, or considerably smaller for a short word.
; <code>|compact=y</code>: (optional) If set to any value, it will display a shorter form of the standard text, to save space. I suppresses display of the values of {{para|characters}} and {{para|error}} (so having an image {{para|link}} that goes to the same page as {{para|error}} is particularly useful, in case someone later turns on the {{para|compact|y}} feature.
 
== See also ==
{{Contains- special-characters characters/templates}}
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||<!--
"https://ml.wikipedia.org/wiki/ഫലകം:Contains_special_characters/doc" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്