• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:Legend inline/sandbox

  • Language
  • Watch
  • View source
< Template:Legend inline
(Redirected from Template:Legend2/sandbox)
__EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:Legend inline (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 23,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
CSSThis template uses TemplateStyles:
  • Template:Legend/styles.css

Contents

  • 1 Description
  • 2 Usage
    • 2.1 Example 1
    • 2.2 Example 2
    • 2.3 Example 3
  • 3 See also

Description

  • Shows a legend with a coloured box.
  • This template differs from Template:Legend only in that it uses display:inline to prevent line breaks after each legend.

Usage

See Template:Legend/doc for usage.

Example 1

That is a {{legend inline|#bfb|size=80%}} green box.

That is a   green box.

Example 2

That is a {{legend inline|#bfb|text=green}} box.

That is a green  box.

Example 3

That is a {{legend inline
|#bfb
|box
|border    = 1px solid red
|textcolor = #00e
|size      = 150%
|text      = _green_}}.

That is a  green  box .

See also

  • For the original version of this template using display:block, see {{Legend}}
  • For legend rows representing lines, see {{legend-line}}
The above documentation is transcluded from Template:Legend inline/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:Legend_inline/sandbox&oldid=6077054"
Last edited on 23 November 2023, at 19:58

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 23 November 2023, at 19:58.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop