Help:Customizing your skin

From The Languages of David J. Peterson
(Redirected from Project:CUSTOM)
Jump to navigation Jump to search

A guide to Wiktionary-specific skin customizations for logged-in users.

The files needed to be edited will depend on your current skin (which can be edited at Special:Preferences → "Appearance"):

To preview a page in a different skin, use a URL such as

(link).

To preview a page in a mobile theme, add the parameter:

(link).

CSS customization

You can customize your CSS file in order to change a few things in your interface. This is simply done by dropping lines of code in that page, saving it and then clearing your cache or perhaps even restarting your browser in order to make them work. Below are a handful of these codes. If these don't suffice, you can guess at them, which might work, or, alternatively, search Meta or Wikipedia to find more.

Wiktionary-specific CSS

Hide translations

Not interested in translations?

The section heading will remain visible, though.

Hide extra horizontal lines between language sections

If you hate seeing this:


English


add this code to your CSS file:


Note that all horizontal lines in the standard (entry) namespace will be hidden. If you do have problems with any other kinds of pages, please report them so that a solution can be sought.

Sister project boxes

To hide (or manipulate) all sister project boxes:


To hide (or manipulate) certain sister project boxes only:



Project Gutenberg rankings

If you find these too intrusive, add this to your CSS file:

Qualifiers and italicized parentheses

Readers can customize the style of the context qualifiers that precede definitions; sense gloss qualifiers that precede synonyms, antonyms, related terms, etc.; and parentheses around italic text within non-italic sentences. Your current style is this:

  1. (context qualifier like this, your current style) a definition... (note..., your current style).
  • (Sense gloss like this, your current style): synonym, synonym, (qualifier like this, your current style) synonym

The default style is with non-italic punctuation:

  1. (context qualifier like this, default style) a definition... (note..., default style).

The punctuation can display in italics:

  1. (context qualifier like this, all italic) a definition... (note..., all italic).

Qualifiers can display without italics:

  1. (qualifier like this, non-italic) a definition... (note...).

Qualifiers can display in small caps with no parentheses:

  1. a definition... (note...).

Qualifiers can display in a smaller font:

  1. a definition... (note...).

Parentheses can be hidden aggressively. (Warning: This setting creates ungrammatical sentences.)

  1. countable: A domesticated species Felis silvestris of feline animal commonly kept as a house pet.
à le “to the” is never used: contracted into au.

“Disambiguation” See also

In the Beer parlour there is a current discussion on the preferred format of the See also section at the top of many pages. To achieve some of the various hard-coded formats:

  1. Indent the section (as if it were preceeded by a colon)
  2. Prevent links being bolded:
  3. Add a bottom margin to prevent the the "see also" and the TOC to join.
Selecting the kind of list
  1. azza, bzzb, czzc
  2. azza, bzzb, and czzc
  3. azza, bzzb and czzc

Gender abbreviation periods

If you prefer gender abbreviations like this:

m.

over this:

m

add this to your CSS file:


At this time, this feature is used in the gender annotations through Module:gender and number. These are currently hidden by default.

Serial commas

If you prefer lists like this:

One, two, and three

over this:

One, two and three

add this to your CSS file:


Currently serial commas are hidden by default.

Russian stress marks

Since with current common fonts, the optional stress marks used with Russian by dictionaries can be ugly, they are hidden by default in the places they are of less importance.

If you prefer this:

рабо́чий

over this:

рабочий

add this to your CSS file:


Different font for definitions

To change all text that is in an ordered list of #, add the following:

Or specify as you wish. Some people are fond of italics:

You can also change link styles in definitions:

And so forth...

defines the main namespace of articles. Other namespaces are:  for Talk:,  for User:, etc. (see Help:Namespace for numbers).

Highlighting the inflection line

To highlight the inflection line (most of the time) add the following to your skin CSS file:


“Form of” definitions

Definitions for non-lemma entries (e.g. the inflected forms of lemma entries) indicate that the term is a special form, such as the plural, of another word. Customize the format of such definitions by adding any of the following:

  • For “form of” definitions with plain (wikilinked only) lemma:
  • For “form of” definitions with a bold lemma:
  • For “form of” definitions with an italic definition (“qualifier”):
  • For “form of” definitions with an italic lemma:
  • For “form of” definitions with an italic definition (“qualifier”) and bold lemma:

Mentions

The template {{term}} allows readers to customize the way mentioned terms and phrases appear.

By default, Latin-script (i.e. Roman script, French, German, etc., not just Latin-language) terms and phrases mentioned through {{term}} appear in italics. Readers can toggle the output from italics to bold with browser cookies by selecting “Show other Latin (Roman) script mentions in bold” from WT:PREFS. Alternatively, or for more advanced customization, readers can add any of the following to their style sheets:

  • For plain format (e.g.: From + ...):
  • For bold format (e.g.: From + ...):
  • For italicized format (e.g.: From + ...):

Further, the default style of the subsequent sense glosses (short definitions) is in double quotes. Readers can easily change the output to single quotes with browser cookies by selecting “Show English glosses for mentioned terms in single quotes” from WT:PREFS. Alternatively, readers can styles to their style sheets:

  • To show English translation glosses in single quotes (e.g.: From mot (‘word’) + ... with word (‘unit of speech’) + ...):

The parentheses around transliterations and glosses can be hidden. (Warning: this creates some ungrammatical sentences.)

  • To remove parentheses around all transliterations and glosses (e.g.: From colloquial Arabic [Term?] ‘ālima, originally a feminine adjective meaning ‘learned, knowledgeable’, from [script needed] (‘alima, to know).):

More

  1. Show parenthesized plain (non-italic) transliterations.
  2. Put the [show] checkbox onto the left of the translation bars.
  3. Display words in quotations that have been emboldened with Customizing your skin with a square box instead

CSS that is the same on all wikis

Sidebar

You can customize the sidebar (navigation box, search box, toolbox etc.) in any thinkable way, but the most useful fact is probably that you can get rid of the links you're not using. This is done by adding after any of the following codes that define the links.

Code Sidebar link
Template:Monospace Main Page
Template:Monospace Community portal
Template:Monospace Wiktionary preferences
Template:Monospace Requested entries
Template:Monospace Recent changes
Template:Monospace Random page
Template:Monospace Help
Template:Monospace Donations
Template:Monospace Contact us
Template:Monospace What links here
Template:Monospace Related changes
Template:Monospace User contributions
Template:Monospace Upload file
Template:Monospace Special pages
Template:Monospace Printable version
Template:Monospace Permanent link

For example, hides the Donations link from the Navigation box. You can also group these together, saying which works for them all.

With JavaScript, you can do the reverse and append links that you often use but are not in the sidebar by default.

Don't like the logo and/or its pronunciation? Hide it.

The following will move the sidebar into its place for monobook skins.

The following will move the sidebar into its place for vector skins.

Enlargen diffs

Annoyed by the small letters when viewing diffs in page histories?

Change headers

Level 1 headers?

Level 2?

Level 3?

Pagetitle header only?

Highlight active reference

Highlight references when clicked, making it easier to find which one you clicked in a long list.


More

  1. Redirects have a black color in Special:Allpages
  2. Redirects are struck through in Special:Allpages
  3. Hide categories
  4. Make