• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Cipher

  • Template
  • Talk
  • Language
  • Watch
  • View source
(Redirected from User:Jesus Presley/Template:Cipher)
Template documentation

This template extracts one digit from an integer value of up to 12 digits.

Usage

{{Cipher|{{{1}}}|{{{2}}}}}

The first parameter is the integer value, the second is the position of the digit, from right to left (one, tenth, hundreds etc.).

Having a value above the number of digits, a zero is returned.

Examples

{{Cipher|9876543210|0}} results in 0.

{{Cipher|9876543210|9}} results in 9.

{{Cipher|123456789|0}} results in 9.

{{Cipher|123456789|8}} results in 1.

{{Cipher|432109876543210|12}} results in 2.

{{Cipher|432109876543210|13}} results in 0!

Note

This template is used by templates with mathematical terms and therefore appears to be integrated in very few pages.

Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Cipher&oldid=1094977231"
Last edited on 25 June 2022, at 17:59

Languages

    • العربية
    • Azərbaycanca
    • বাংলা
    • Беларуская
    • Български
    • Bosanski
    • Català
    • Español
    • فارسی
    • Français
    • 한국어
    • Հայերեն
    • Hrvatski
    • Italiano
    • മലയാളം
    • Bahasa Melayu
    • မြန်မာဘာသာ
    • 日本語
    • Norsk bokmål
    • Oʻzbekcha / ўзбекча
    • Português
    • Română
    • Русский
    • Simple English
    • کوردی
    • Suomi
    • தமிழ்
    • တႆး
    • తెలుగు
    • ไทย
    • Türkçe
    • Українська
    • Tiếng Việt
    • 粵語
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 25 June 2022, at 17:59 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop