I have an RTL (Hebrew) 1.34.0 principally all-core MediaWiki website with Cite extension and ParserFunctions extension loaded in LocalSettings.php.
In this website I have Template:Cite
with the following content, which I use to create English footnotes in English-only pages:
<includeonly>{{#if:{{{refname|}}} | {{#tag:ref|{{{content|}}}|name={{{refname}}}}} | {{#tag:ref|{{{content|}}}}} }}</includeonly>
Credit for @Jonathan3 for developing this template.
Call input examples:
1) Cite with parameter calls WITHOUT English naming (by name
attribute)
First check{{Cite|content=First check}} Second check{{Cite|content=Second check}} Third check{{Cite|content=Third check}} <references />
2) Cite with parameter calls WITH English naming (by name
attribute)
First check{{Cite|content=First check}} Second check{{Cite|content=Second check|refname=First_name}} Third check {{Cite|refname=First_name}} <references />
Call output examples (appear fine in dir="rtl"
modes):
1) Cite with parameter calls WITHOUT English naming
First check[1] Second check[2] Third check[3]
- ^ First check
- ^ Second check
- ^ Third check
2) Cite with parameter calls WITH English naming
First check Second check Third check
- ^ First check
- ^ לקפוץ מעלה אל:2.0 2.1 Second check
---
Note: Brackets appear flipped (][
) in dir="ltr"
modes
---
My problem
I want to use this template in an Hebrew project, that is, in an RTL && Right-align
writing mode but if I write for example:
{{Cite|Content=non_messy_content}}
and my footnote happens to start with English after the first pipeline and also including Hebrew (say, as with links) than everything becomes jumbled up:
{{Cite|Content=תוכן_שהתבלגן}}
The first example shows non messy content and the second shows messy content (תוכן שהתבלגן); in the second example the "Content" part is situated wrongly.
My question
The only solution which comes to my mind to solve this problem is having an Hebrew call to the template such as
{{הערה|תוכן=תוכן_שלא_התבלגן}}
Which means Content=content which didn't go messy
.
If there were ready to use RTL&&RA Hebrew (or any other RTL) <ref>
tags than I wouldn't need such a Hebrew call but HTML is all English so I do need a template and an all-Hebrew one.
Hence I ask,
How to translate my template from English to Hebrew in a successful manner?
How to translate this Cite template to Hebrew?