MediaWiki:Editnotice-10-New texts-data.json

From Wikisource
Jump to navigation Jump to search
Note: After saving, changes may not occur immediately. Click here to learn how to bypass your browser's cache.
  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (Cmd-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (Cmd-Shift-R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Clear the cache in Tools → Preferences

For details and instructions about other browsers, see Wikipedia:Bypass your cache.

Adding works

  • This is for newly completed works. Validation is not necessary, but proofread status is required.
  • Add new works at the top of the list. There is no need to touch older entries, the correct number will be used.
  • Avoid having two texts by the same author in the top several entries.
  • Use a descriptive edit-summary of the work being added (e.g. a link to the work)

The template for basic entries is:

	{
 		"title": "Title",
 		"author": "Author",
 		"year": 1900
 	},

Extra, optional, fields are:

  • type: "film" for
  • edition
  • translator
  • author_nowiki, translator_nowiki: true to suppress auto link

author and translator can contain a pipe (|), then it will use the text after the pipe as the display text. If their value is "unknown", it will link to Portal:Anonymous.

The author and translator can be lists like this:

		author = [
			"Albert Einstein",
			"Marie Curie"
		]

If quotes appear in any text, replace with \".

Adding months

Add new months to the top of the table, using the month number (January is 1, December is 12):

    "4": [
       <!-- the new month's works will go here -->
    },
    "3": [
       {
          "title": "Previous month's \"Last Work\"",
          ....

To test: Use "Preview page with this template" at the bottom of the edit box and use the page Template:New texts