Project:Adding Scripts

From The Languages of David J. Peterson
Revision as of 13:18, 3 October 2023 by Djp (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Adding Scripts to the DJP Wiki

Add Script code

Each script added to this wiki needs a code, usually a four-character code. This is how the script will be referenced in many uses of templates as well in some uses of special pages. These codes are analogous to the codes used in Wiktionary and other places on the internet. Usually the code is the first four letters of the name of the language, but that is not a strict rule. The Wiktionary codes are in this wiki as well, so care may be needed when choosing the code for the script.

Once the code is determined, it needs to be added to the script list at Module:Scripts/data/djp. This page is solely for scripts documented by The Languages of David J. Peterson. The entry has to be in a specific format, with the code at the top and then a number of values in the entry. The exact details documentation on what can go in a language entry can be found on the page itself. This is a summary.

Here's an example:

m["Hvlr"] = {
	"Nekesse Valyrio",
	"abjad", "logography",
	aliases = "Valyrian", "High Valyrian",
}

Don't forget the commas after each line in the entry!

Each entry has two unlabeled values that are in there in this order.

  • Script name (required). This is the 'official' name of the script. It should be in quotes.
  • Type (required). This is the type of the script. For mixed scripts, multiple options can be used. Each option is in quotes, and multiple options are separated by commas. Values can be found in Module:writing_systems/data.

A common labeled value is aliases, in the format as above.

Create basic pages and categories for script

Appendix:NAME script

This is the basic page for the script. Links to the main page will link to that page. You will want at least a brief description, though more extensive notes can be put here.

Category:NAME script

This is the category for your script. In here you only have to put the following:

{{auto cat}}
Category:NAME script languages

This category is for all the languages using this script. In here you only have to put the following:

{{auto cat}}