Template:Select skin/doc

From Wikibooks, open books for an open world
Jump to navigation Jump to search

This template generates trasncludable links to change the skin for the current (or any) page. In particular, this template is transcluded into {{Testcases notice}}.

Usage[edit source]

  • {{Select skin}} shows just the horizontal list of skins:
Markup Renders as
{{Select skin}} Timeless  · New Vector (2022)  · Vector legacy (2010)  · MinervaNeue  · MonoBook  · MinervaNeue (mobile)
  • The boolean |view= parameter adds "View this page in the skin:" when given a value that evaluates to True:
Markup Renders as
{{Select skin|view=yes}} View this page in the skin:
Timeless  · New Vector (2022)  · Vector legacy (2010)  · MinervaNeue  · MonoBook  · MinervaNeue (mobile)
  • One unnamed/positional parameter can be used with |view= to include a linked article:
Markup Renders as
{{Select skin|Intellectual Property and the Internet/Search engines|view=yes}} View Intellectual Property and the Internet/Search engines in the skin:
Timeless  · New Vector (2022)  · Vector legacy (2010)  · MinervaNeue  · MonoBook  · MinervaNeue (mobile)
  • Finally, the |style= parameter can be used to add CSS styling:
Markup Renders as
{{Select skin|style=font-size: 0.8em;}} Timeless  · New Vector (2022)  · Vector legacy (2010)  · MinervaNeue  · MonoBook  · MinervaNeue (mobile)

Technical[edit source]

You can also temporarily set the skin for the current page manually by appending the following to its URL:

  • ?useskin=skinname for normal cases, and
  • &useskin=skinname if the URL already contains an equals sign (=).