ਫਰਮਾ:Dual line/doc
ਦਿੱਖ
This is a documentation subpage for ਫਰਮਾ:Dual line. It contains usage information, categories and other content that is not part of the original ਫਰਮਾ page. |
Creates an in-line block with two lines of text. Useful for representing manual corrections in handwritten documents.
Usage
[ਸੋਧੋ]{{dual line|top|bottom}}
{{dual line | top = | bottom = }}
Examples
[ਸੋਧੋ]Example #1
[ਸੋਧੋ]{{dual line|hello|world}}
hello
world
Example #2
[ਸੋਧੋ]Two alternative versions of the same thing:
Lorem {{dual line|ipsum dolor|{{strike|dolor ipsum}}}} sit amet.
Lorem ipsum dolordolor ipsum sit amet.
Lorem {{dual line | top = ipsum dolor | bottom = {{strike|dolor ipsum}} }} sit amet.
Lorem ipsum dolordolor ipsum sit amet.
Example #3
[ਸੋਧੋ]To have the bottom row align with surrounding text, use style=vertical-align:baseline;
Lorem {{dual line|ipsum dolor|dolor ipsum|style=vertical-align:baseline;}} sit amet.
Lorem ipsum dolor
dolor ipsum sit amet.
Example #4
[ਸੋਧੋ]To have the top row align with surrounding text, use style=vertical-align:text-top;
Lorem {{dual line|ipsum dolor|dolor ipsum|style=vertical-align:text-top;}} sit amet.
Lorem ipsum dolor
dolor ipsum sit amet.
See also
[ਸੋਧੋ]- {{sup}} — single raised line of text with smaller font-size
- {{raised text}} — single raised line of text with regular font-size
- {{transl}} ― display a foreign language word with the English translation displayed in a smaller font below it
- {{frac}}, displays common fractions using a fraction slash, e.g. ਫਰਮਾ:Frac
- {{mfrac}}, displays common fractions using LaTeX markup, e.g. ਫਰਮਾ:Mfrac
- {{sfrac}} for horizontal fraction line, e.g. 160
- {{sfrac nobar}}, displays common fractions without a fraction line, e.g. 160
- {{dual line}}, displays two lines of text as an inline block
- {{unifrac}}, displays the Unicode character for a fraction if it exists and otherwise delegates to {{frac}}, e.g. ਫਰਮਾ:Unifrac but ਫਰਮਾ:Unifrac
- {{frac13}}, displays ਫਰਮਾ:Frac13
- {{frac23}}, displays ਫਰਮਾ:Frac23