[In progress] Autotranslate Template for [[#top|top]]
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Autotranslate Template for [[#top|top]]
Yes, The text in my previous was already added to that page. Why do think this is not enough?
Re: Autotranslate Template for [[#top|top]]
Maybe it is worth to add information, that template will insert proper text in supported languages without any additional intervention.
Someone may proceed "automatically" and apply it as written:
{{top|"top"}}
which is unnecessary because you have automated this template nicely.
Someone may proceed "automatically" and apply it as written:
{{top|"top"}}
which is unnecessary because you have automated this template nicely.
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
Re: Autotranslate Template for [[#top|top]]
I test it there:Roy_043 wrote: ↑Fri Aug 27, 2021 11:24 am I was able to create a single template for all languages:
https://wiki.freecadweb.org/Template:Top
You can check if the Russian text is OK.
https://wiki.freecadweb.org/Special:ExpandTemplates
All works fine.
tags <p> </p> is sure needs?
and i look template inside
Why top from capital letter?
Previously, it seemed to be with a small one...
We can try to make an experiment on tag integration. For example, on this pages:
https://wiki.freecadweb.org/Path_FAQ
https://wiki.freecadweb.org/Python_scripting_tutorial
https://wiki.freecadweb.org/PySide
https://wiki.freecadweb.org/Mesh_Scripting
Probably after integration, needs to somehow delete unused translations to free up wikipedia's memory.
What about add squre brackets around top link in template? [top] to highlight this link.
Or this is bad idea?
Re: [In progress] Autotranslate Template for [[#top|top]]
It is necessary if you put the wiki code on a single line:
Code: Select all
</translate>{{Top}}<translate>
Code: Select all
</translate>
{{Top}}
<translate>
There is already a page where I have tested the template:
Topological_data_scripting
Re: [In progress] Autotranslate Template for [[#top|top]]
What about [ ] ?
Code: Select all
<p>[[[#top|{{#switch:{{#translation:}}
|/bg=Top
|/cs=Top
...
|/zh-hant=Top
|/zh-tw=Top
|Top}}]]]</p><noinclude>
Re: [In progress] Autotranslate Template for [[#top|top]]
The number of top tags in this page is excessive. In a simple example of creating a slot form, as seven times...Roy_043 wrote: ↑Sun Aug 29, 2021 7:52 am There is already a page where I have tested the template:
Topological_data_scripting
Re: [In progress] Autotranslate Template for [[#top|top]]
Evgeniy, I would like to ask you to clarify this for me.
What is the purpose of the control characters, or can you provide a document with a specification to refer to
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
Re: [In progress] Autotranslate Template for [[#top|top]]
A similar style is used in other wikis.
https://en.wikipedia.org/wiki/Template:Go_to_top
This link differs in that it does not lead to any page, but simply scrolls page to up.
Therefore, it probably makes sense to take it in brackets to highlight it.
Re: [In progress] Autotranslate Template for [[#top|top]]
Thank you for your answer, do you see any advantages compared to the template prepared by Roy
For me Roy's template is excellent.
For me Roy's template is excellent.
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".