Şablon:Frac/doc: Ferqê çımraviyarnayışan

Content deleted Content added
m Boti frr:Vorlage:Bruch rê interwiki dekerd de
Xqbot (werênayış | iştıraki)
m Bot: Kullanımdan kaldırılmış <source> etiketini ve "enclose" parametresini değiştirin [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]; kozmetik vurnayışi
 
Line 3:
This template builds an alternative form of [[common fraction]]s. It takes one, two or three parameters: the optional integer (may be signed), the optional numerator and the required denominator; in this order. Please '''do not''' <code>subst:</code>itute it. This template should '''not''' be used in mathematical articles, per [[MOS:MATH#Fractions]].
; <code><nowiki>{{frac|A|B|C}}</nowiki></code>: {{frac|A|B|C}} (integer, numerator and denominator)
: <sourcesyntaxhighlight lang="html4strict"><span class="frac">A<sup>&nbsp;B</sup>⁄<sub>C</sub></span></sourcesyntaxhighlight>
; <code><nowiki>{{frac|A|B}}</nowiki></code>: {{frac|A|B}} (numerator and denominator)
: <sourcesyntaxhighlight lang="html4strict"><span class="frac"><sup>A</sup>⁄<sub>B</sub></span></sourcesyntaxhighlight>
; <code><nowiki>{{frac|A}}</nowiki></code>: {{frac|A}} (denominator only)
: <sourcesyntaxhighlight lang="html4strict"><span class="frac"><sup>1</sup>⁄<sub>A</sub></span></sourcesyntaxhighlight>
 
== Examples ==
Line 14:
 
== Deactivation and customization ==
Users who prefer to see fractions inline, e.g. „1&nbsp;2⁄3“ instead of „{{frac|1|2|3}}, can turn off the effects of this template by adding the following code to [[HelpDesteg:User style|their user stylesheet]]:
<sourcesyntaxhighlight lang="css">.frac>sup /* numerator */,
.frac>sub /* denominator */
{
Line 22:
line-height: inherit/* or 1*/;
position: inherit/* or static*/;
}</sourcesyntaxhighlight><!--untested-->
These selectors and properties can also be used as a base for custom rendering of vulgar fractions:
<sourcesyntaxhighlight lang="css">/* Stacked Fractions (does not work with three parameters currently) */
.frac
{
Line 50:
{
text-decoration: overline;
}</sourcesyntaxhighlight><!--untested-->
 
== Notes ==
* <code>&amp;frasl;</code> may be used to print out the fraction glyph " &frasl; "
 
== See also ==
Line 65:
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[CategoryKategori:Wikipedia formatting and function templates|{{PAGENAME}}]]
[[CategoryKategori:Mathematical formatting templates|{{PAGENAME}}]]
 
[[af:Sjabloon:Breuk]]
[[ar:قالب:Frac]]
[[as:সাঁচ:Fraction]]
[[bar:Vorlage:Bruch]]
[[ca:Plantilla:Frac]]
[[cs:Šablona:Zlomek]]
[[da:Skabelon:Brøk]]
[[de:Vorlage:Bruch]]
[[et:Mall:Murd]]
[[el:Πρότυπο:Frac]]
[[en:Template:Frac]]
[[es:Plantilla:Fracción]]
[[fa:الگو:تقسیم]]
[[hy:Կաղապար:Frac]]
[[id:Templat:Frac]]
[[jv:Cithakan:Frac]]
[[ko:틀:분수]]
[[fi:Malline:Murtoluku]]
[[fr:Modèle:Fraction]]
[[frr:Vorlage:Bruch]]
[[hi:साँचा:Frac]]
[[is:Snið:Brot]]
[[lt:Šablonas:Frac]]
[[lv:Veidne:Frac]]
[[mg:Endrika:Ampaha]]
[[mk:Шаблон:Дроп]]
[[ml:ഫലകം:Frac/വിവരണം]]
[[mr:साचा:Frac]]
[[ms:Templat:Frac]]
[[ne:ढाँचा:Frac]]
[[nl:Sjabloon:Breuk]]
[[nn:Mal:Brøk]]
[[no:Mal:Brøk]]
[[it:Template:Frazione]]
[[ja:Template:分数]]
[[oc:Modèl:Fraccion]]
[[or:ଛାଞ୍ଚ:Frac]]
[[os:Шаблон:Лыст]]
[[pl:Szablon:Uł]]
[[pt:Predefinição:Frac]]
[[qu:Plantilla:Frac]]
[[ro:Format:Fracție]]
[[ru:Шаблон:Дробь]]
[[simple:Template:Frac]]
[[sl:Predloga:Ulomek]]
[[sq:Stampa:Frac]]
[[su:Citakan:Frac]]
[[sv:Mall:Frac]]
[[ta:வார்ப்புரு:Fraction]]
[[te:మూస:Frac]]
[[tr:Şablon:Frac]]
[[zh:Template:Fraction]]
[[zh-yue:Template:分數]]
</includeonly>