Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3).
Navigation
Topics Help • Register • News • History • How to • Sequences statistics • Template prototypes

Template:R

From Prime-Wiki
Revision as of 11:13, 22 July 2024 by Karbon (talk | contribs) (new)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Templates to standardize the presenting ranges for using in history entries and other pages.

How to

General template

{{R|<type>|<min>|<max>}}
  • "R" is "range"
  • <type>: k, n or others like b for base
  • <min>, <max>: range including these values

Example:

{{R|k|100|1000}}

produces the ouput k = 100 - 1000 (including spacings).


Special templates for often used k- and n-values:

  • {{Rk|<min>|<max>}} for k-values
  • {{Rn|<min>|<max>}} for n-values

calling internally the general template.

Example:

{{Rk|100|1000}}

produces the ouput k = 100 - 1000 (including spacings).

Specification

  • Every call must contain <min> and <max> values (in purpose of text replacements and finding).
  • If <min> equals <max> then only <type> = <min> will be displayed (example for constant n-range searches) .
  • The smallest <min> is 1 but also have to be given.
  • If <min> or <max> are unknown/unbound or not given by the user the values should be given as phrase: example {{Rn|various|unbound}} will be displayed as n = various - unbound.
  • allowed values: unknown, unbound, various,... Any others in mind?
  • No other values (math symbols, html-type characters or unicode values) allowed.
  • Phrasings like "n<1000" has to be converted to "n = 1 - 999"
  • All three new templates will be inserted in the 'Shortcuts' section at the bottom of the page when editing like for HistF- or Vn-templates.