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

Template:Cryptography navbox/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Cryptography navbox
  • v
  • t
  • e
Cryptography
  • History of cryptography
  • Cryptanalysis
  • Outline of cryptography
  • Symmetric-key algorithm
  • Block cipher
  • Stream cipher
  • Public-key cryptography
  • Cryptographic hash function
  • Message authentication code
  • Random numbers
  • Steganography
Portal
This is the template sandbox page for Template:Cryptography navbox (diff).
Template documentation[view] [edit] [history] [purge]

The main crypto navigation box

edit

This template is the main crypto navigation box. It can be added to the bottom of any cryptography article. This template also has some magic so it can include one or more of the specialised crypto navigation boxes inside the same frame.

To only use this template alone add this code to the bottom of an article:

{{cryptography navbox}}

If you want it to also show for instance the specialised navigation box about stream ciphers then give it the "stream" parameter, like this:

{{cryptography navbox | stream}}

You can also add several boxes in it, like this:

{{cryptography navbox | block | stream}}

Note that the parameters come sort of in backwards order. In the example above the stream cipher box will be on top, followed by the block cipher box and then with the main crypto "navbox" at the bottom.

Here is an invalid example since "navbox" should not be a parameter but instead is part of the address of this template:

{{cryptography stream | navbox}}

The available specialised boxes are:

block, stream, public-key, hash, machines, classical

For more details about these navigation boxes please see the WikiProject Cryptography.

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Cryptography navbox in articles based on its TemplateData.

TemplateData for Cryptography navbox

Navigation box for cryptography articles

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Sub-box1

Choose the navigation sub-box to display.

Example
block / stream / public-key / hash / machines / classical
Stringsuggested
Second sub-box2

Choose another navigation sub-box to display (can have up to 6 sub-boxes).

Example
block / stream / public-key / hash / machines / classical
Stringoptional

Technical details

edit

If / when you make a new specialised navigation box there are several things you need to know:

  • The specialised boxes need to use special naming if you want to be able to use them within the main crypto navigation box. Say you want to make a navigation box about "anonymity" then it should have the URL "Template:Crypto anonymity". Then it can automatically be used like this: {{cryptography navbox | anonymity}}
  • The specialised boxes need special code within them to function properly. So please copy the code from one of the existing boxes.
  • When you copy the code from one of the existing boxes don't forget to update the pagename in the second parameter in the Tnavbar-header to point to your new box. (To make the v-d-e links in the top right corner within the template point to the right page.)
The above documentation is transcluded from Template:Cryptography navbox/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Cryptography_navbox/sandbox&oldid=699521673"
Last edited on 12 January 2016, at 21:03

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 12 January 2016, at 21:03 (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