Template:Frac: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Jimp
No edit summary
meta>Crissov
mNo edit summary
Line 1: Line 1:
<includeonly>{{#if:{{{3|}}}|{{{1}}}<s style="display:none">+</s><small><sup>{{{2}}}</sup><big>⁄</big><sub>{{{3}}}</sub></small>|{{#if:{{{2|}}}|<small><sup>{{{1}}}</sup><big>⁄</big><sub>{{{2}}}</sub></small>|<small><sup>1</sup><big>⁄</big><sub>{{{1}}}</sub></small>}}}}</includeonly><noinclude>
<includeonly>{{#if:{{{3|}}}|{{{1}}}<s style="display:none">+</s><small><sup>{{{2}}}</sup><big>⁄</big><sub>{{{3}}}</sub></small>|<noinclude>#else:
</noinclude>{{#if:{{{2|}}}|<small><sup>{{{1}}}</sup><big>⁄</big><sub>{{{2}}}</sub></small>|<noinclude>#else:
</noinclude><small><sup>1</sup><big>⁄</big><sub>{{{1}}}</sub></small>}}}}</includeonly><noinclude>
<!-- Simplest version proposed:
{{#if:{{{3|}}}|{{{1}}}&nbsp;<sup>{{{2}}}</sup>/<sub>{{{3}}}</sub>|<noinclude>#else:
</noinclude>{{#if:{{{2|}}}|<sup>{{{1}}}</sup>/<sub>{{{2}}}</sub>|<noinclude>#else:
</noinclude><sup>1</sup>/<sub>{{{1}}}</sub>}}}}
-->
 
This template builds nicer-looking [[common fraction]]s. It takes one, two or three parameters: the optional integer (maybe signed), the optional numerator and the required denominator; in this order.
This template builds nicer-looking [[common fraction]]s. It takes one, two or three parameters: the optional integer (maybe signed), the optional numerator and the required denominator; in this order.
; <code><nowiki>{{frac|a|b|c}}</nowiki></code>: {{frac|a|b|c}} (integer, numerator and denominator)
; <code><nowiki>{{frac|A|B|C}}</nowiki></code>: {{frac|A|B|C}} (integer, numerator and denominator)
; <code><nowiki>{{frac|a|b}}</nowiki></code>: {{frac|a|b}} (numerator and denominator)
: <code><var>A</var>&lt;s style="display:none">+&lt;/s>&lt;small>&lt;sup><var>B</var>&lt;/sup>&lt;big>⁄&lt;/big>&lt;sub><var>C</var>&lt;/sub>&lt;/small></code>
; <code><nowiki>{{frac|a}}</nowiki></code>: {{frac|a}} (denominator only)
; <code><nowiki>{{frac|A|B}}</nowiki></code>: {{frac|A|B}} (numerator and denominator)
: <code>&lt;small>&lt;sup><var>A</var>&lt;/sup>&lt;big>⁄&lt;/big>&lt;sub><var>B</var>&lt;/sub>&lt;/small></code>
; <code><nowiki>{{frac|A}}</nowiki></code>: {{frac|A}} (denominator only)
: <code>&lt;small>&lt;sup>1&lt;/sup>&lt;big>⁄&lt;/big>&lt;sub><var>A</var>&lt;/sub>&lt;/small></code>
 


[[de:Vorlage:Bruch]]
[[de:Vorlage:Bruch]]

Revision as of 21:08, 13 May 2007


This template builds nicer-looking common fractions. It takes one, two or three parameters: the optional integer (maybe signed), the optional numerator and the required denominator; in this order.

{{frac|A|B|C}}
A+BCA/B}}

-->

This template builds nicer-looking common fractions. It takes one, two or three parameters: the optional integer (maybe signed), the optional numerator and the required denominator; in this order.

{{frac|A|B|C}}
Template loop detected: Template:Frac (integer, numerator and denominator)
A<s style="display:none">+</s><small><sup>B</sup><big>⁄</big><sub>C</sub></small>
{{frac|A|B}}
Template loop detected: Template:Frac (numerator and denominator)
<small><sup>A</sup><big>⁄</big><sub>B</sub></small>
{{frac|A}}
Template loop detected: Template:Frac (denominator only)
<small><sup>1</sup><big>⁄</big><sub>A</sub></small>


de:Vorlage:Bruch es:Plantilla:Fracción ja:Template:分数 mk:Шаблон:Дроп simple:Template:Frac </noinclude> (integer, numerator and denominator)

A<s style="display:none">+</s><small><sup>B</sup><big>⁄</big><sub>C</sub></small>
{{frac|A|B}}
ABA/B}}

-->

This template builds nicer-looking common fractions. It takes one, two or three parameters: the optional integer (maybe signed), the optional numerator and the required denominator; in this order.

{{frac|A|B|C}}
Template loop detected: Template:Frac (integer, numerator and denominator)
A<s style="display:none">+</s><small><sup>B</sup><big>⁄</big><sub>C</sub></small>
{{frac|A|B}}
Template loop detected: Template:Frac (numerator and denominator)
<small><sup>A</sup><big>⁄</big><sub>B</sub></small>
{{frac|A}}
Template loop detected: Template:Frac (denominator only)
<small><sup>1</sup><big>⁄</big><sub>A</sub></small>


de:Vorlage:Bruch es:Plantilla:Fracción ja:Template:分数 mk:Шаблон:Дроп simple:Template:Frac </noinclude> (numerator and denominator)

<small><sup>A</sup><big>⁄</big><sub>B</sub></small>
{{frac|A}}
1A1/A}}

-->

This template builds nicer-looking common fractions. It takes one, two or three parameters: the optional integer (maybe signed), the optional numerator and the required denominator; in this order.

{{frac|A|B|C}}
Template loop detected: Template:Frac (integer, numerator and denominator)
A<s style="display:none">+</s><small><sup>B</sup><big>⁄</big><sub>C</sub></small>
{{frac|A|B}}
Template loop detected: Template:Frac (numerator and denominator)
<small><sup>A</sup><big>⁄</big><sub>B</sub></small>
{{frac|A}}
Template loop detected: Template:Frac (denominator only)
<small><sup>1</sup><big>⁄</big><sub>A</sub></small>


de:Vorlage:Bruch es:Plantilla:Fracción ja:Template:分数 mk:Шаблон:Дроп simple:Template:Frac </noinclude> (denominator only)

<small><sup>1</sup><big>⁄</big><sub>A</sub></small>


de:Vorlage:Bruch es:Plantilla:Fracción ja:Template:分数 mk:Шаблон:Дроп simple:Template:Frac