Project:Wiktionary module modifications: Difference between revisions
No edit summary |
Djpwikiadmin (talk | contribs) |
||
Line 7: | Line 7: | ||
Changed {{code|lua|non_categorizable(data)}} to flag [[Main Page]] as non-categorizable. This is to prevent head words that appear on the Main page (through {{temp|WOTD}}) from adding categories to the page. | Changed {{code|lua|non_categorizable(data)}} to flag [[Main Page]] as non-categorizable. This is to prevent head words that appear on the Main page (through {{temp|WOTD}}) from adding categories to the page. | ||
Changed {{code|lua|format_headword(data)}} to set displayed word to all lowercase. | |||
===[[Module:Families]]=== | ===[[Module:Families]]=== |
Revision as of 13:52, 19 September 2023
Modules from Wiktionary are usually copied whole-cloth from Wiktionary. However, some modifications have had to been made to work for this site. Review these modifications when upgrading these scripts from Wiktionary.
Modifications
Module:Headword
Changed all references to the "Wiktionary" namespace to "Project".
Changed non_categorizable(data)
to flag Main Page as non-categorizable. This is to prevent head words that appear on the Main page (through {{WOTD}}
) from adding categories to the page.
Changed format_headword(data)
to set displayed word to all lowercase.
Module:Families
Module:Families/data
Modified beginning of file to include language families defined in Module:Families/data/djp in the script list. Unlike with Module:Languages/data, this page will need to be re-modified after a recopy from Wiktionary since the page itself had to be changed to support this.
Module:Families/data/djp
Added this page as a repository for language families in this wiki, so if other Module:Families/data subpages are updated, no config from this language family is lost. Note, as mentioned about, the updater must ensure the changes to Module:Families/data are maintained or re-added for this file to be read.
Module:Languages
Updated function export.getDataModuleName(code)
to support four-letter language codes and specifically look for them in Module:Languages/data/djp. This is to separate the DJP language codes from the standard codes.
Module:Languages/canonical names
Adding languages to this wiki requires this file to be changed. If it needs to be refreshed from Wiktionary, ensure that the changes for this wiki are retained or re-added.
Module:Languages/code to canonical name
Adding languages to this wiki requires this file to be changed. If it needs to be refreshed from Wiktionary, ensure that the changes for this wiki are retained or re-added.
Module:Languages/data/djp
Added this page as a repository for languages in this wiki, so if other Module:Languages/data subpages are updated, no config from this language is lost.
Module:Languages/data/djp/extra
Added to support Module:Languages/data/djp
Module:Scripts
Module:Scripts/data
Modified beginning of file to include scripts defined in Module:Scripts/data/djp in the script list. Unlike with Module:Languages/data, this page will need to be re-modified after a recopy from Wiktionary since the page itself had to be changed to support this.
Module:Scripts/data/djp
Added this page as a repository for scripts in this wiki, so if other Module:Scripts/data subpages are updated, no config from this script is lost. Note, as mentioned about, the updater must ensure the changes to Module:Scripts/data are maintained or re-added for this file to be read.
Module:Scripts/by name
Adding scripts to this wiki requires this file to be changed. If it needs to be refreshed from Wiktionary, ensure that the changes for this wiki are retained or re-added.
Module:Scripts/code to canonical name
Adding scripts to this wiki requires this file to be changed. If it needs to be refreshed from Wiktionary, ensure that the changes for this wiki are retained or re-added.
Module:Form of
Module:Form of/data
Removed the shortcut "positive" from "positive degree" (adjective sense), to be able to use "positive" as a label for the verb sense of "positive" which is used on this wiki. Module must be remodified in case of an update.
Module:Form of/data2
Added extra labels matching terms used on this wiki. Module must be remodified in case of an update.
Module:Category tree
Module:Category tree/poscatboiler/data/lemmas
Removed all references to "morphemes" *shudder*. These changes must be kept at all costs!
Module:Category tree/poscatboiler/data/lang-specific
References to languages with language-specific categories/labels added. Must be re-added in case of re-copy. Submodules of this modules should be preserved, however, in case of re-copy.
Module:Interlinear
Module:Interlinear/data
Note: the module is from Wikipedia, not Wiktionary. Added a few shortcuts to terms/labels used for languages on this wiki. Will need to be re-added in case of re-copy.