User:CFA/scripts/AttributeTranslation
{{Infobox user script
| name = AttributeTranslation
| desc = Adds attribution to articles with translations from other Wikipedias
| author = CFA
| maintainer = CFA
| source = User:CFA/scripts/attributetranslation.js
| skins = {{plainlist|
- {{y&}} Vector (2022)
- {{y&}} Vector legacy (2010)
- {{y&}} Monobook
- {{y&}} Modern
- {{y&}} Cologne Blue
- {{y&}} Timeless
- {{n&}} MinervaNeue
}}
| styled = yes
}}
AttributeTranslation (source) – A script that automatically adds attribution (with a dummy edit and the appropriate talk page template) to articles with non-attributed translations of other Wikipedias and notifies the translator(s). Useful when reviewing articles at New Pages Patrol.
Steps performed by the script:
- Adds a dummy edit to the article with an edit summary attribution
- Adds
{{Translated page}} to the article's talk page (if needed) - Notifies the translator(s) with
{{uw-translation}}
Installation
=Automatic=
- Step 1: Check the checkbox at {{myprefs|Gadgets|Advanced|check={{int:Gadget-script-installer}}}} and click Save.
- Step 2: Click the big blue "Install" button in the infobox on the right of this page.
=Manual=
- Add the following to Special:MyPage/common.js (or your skin-specific js, if you prefer):
{{tls|iusc|User:CFA/scripts/attributetranslation.js}}
Usage
- On articles, there will be an additional "Translation attribution" menu option next to the regular "Move" option. In Vector skin, this is within the "More" dropdown menu.
- Input the two-letter language code of the original page — found in the url before wikipedia.org (e.g. zh, es, fr)
- Add the original page title
- Select if the
{{Translated page}} notice should be added to the talk page. In general, it should be added if the content translated makes up a significant portion of the new article. - Choose the user(s) you wish to warn with
{{uw-translation}} about translating without attribution
Modifications
Please let me know if you find any issues on my talk page.