20,741
edits
| Line 2: | Line 2: | ||
=== Hook for parsing articles when saving === | === Hook for parsing articles when saving === | ||
could we discuss adding a check to automatically detect/fix up links for which we have helper templates like [[Template:Repo link]] ? The point being, new/updated articles should no longer contain absolute links to github, sourceforge, gitorious etc, but instead use these templates. For example, it seems we could register a "MultiContentSave" hook to specifically look for such links [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Hooks/MultiContentSave] ? We could probably also run a Python script/bot to update existing articles semi-automatically, or at least add them to category for review ? -[[User:Hooray|Hooray]] ([[User talk:Hooray|talk]]) 06:44, 25 April 2020 (EDT) | could we discuss adding a check to automatically detect/fix up links for which we have helper templates like [[Template:Repo link]] ? The point being, new/updated articles should no longer contain absolute links to github, sourceforge, gitorious etc, but instead use these templates. For example, it seems we could register a "MultiContentSave" hook to specifically look for such links [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Hooks/MultiContentSave] ? We could probably also run a Python script/bot to update existing articles semi-automatically, or at least add them to category for review ? -[[User:Hooray|Hooray]] ([[User talk:Hooray|talk]]) 06:44, 25 April 2020 (EDT) | ||
Alternatively, we could extend the mediawiki editor to add buttons for special/FlightGear specific templates like these, so that users can more easily build links that are in line with the template ? | |||
See also: | See also: | ||
* https://www.mediawiki.org/wiki/Manual:Hooks/InternalParseBeforeLinks | * https://www.mediawiki.org/wiki/Manual:Hooks/InternalParseBeforeLinks | ||
* https://www.mediawiki.org/wiki/VisualEditor/Gadgets | |||
== 02/2015 == | == 02/2015 == | ||