Template:Quotation with original/sandbox
This is the template sandbox page for Template:Quotation with original (diff). See also the companion subpage for test cases. |
Usage
edit{{Quotation with original | lang = fr | source = MediaWiki | author = Frigory | original = Voici du texte. | translation = <translate>Here is some text.</translate> }}
gives:
[fr]
Voici du texte.— Frigory, MediaWiki
Here is some text. — Frigory, MediaWiki
or
[fr]
Voici du texte.— Frigory, MediaWiki
Here is some translated text. — Frigory, MediaWiki
Original is in target language
edit{{Quotation with original | lang = en | source = MediaWiki | author = Frigory | original = Here is some text. | translation = <translate>Here is some text.</translate> }}
gives:
[en]
Here is some text.— Frigory, MediaWiki
or
[en]
Here is some text.— Frigory, MediaWiki
With an answer
edit{{Quotation with original | lang = fr | source = MediaWiki | author = Frigory | author 2 = Shirayuki | original = Voici du texte. | original 2 = Un autre texte. | translation = <translate>Here is some text.</translate> | translation 2 = <translate>Another text.</translate> }}
gives:
[fr]
Voici du texte.— Frigory, MediaWiki
Un autre texte.— Shirayuki, MediaWikiHere is some text. — Frigory, MediaWiki
- Another text. — Shirayuki, MediaWiki
or
[fr]
Voici du texte.— Frigory, MediaWiki
Un autre texte.— Shirayuki, MediaWikiHere is some translated text. — Frigory, MediaWiki
- Another translated text. — Shirayuki, MediaWiki