Template:Number box: Difference between revisions
Jump to navigation
Jump to search
m (Sware moved page Template:Av-num to Template:Number box without leaving a redirect: making it available for anyone) |
No edit summary |
||
Line 20: | Line 20: | ||
== Current == | == Current == | ||
-->{{{ | -->{{{2}}} | ||
| width="64px" style="vertical-align:middle;background-color:#dddddd;text-align:center;font-size:smaller;" |<!-- | | width="64px" style="vertical-align:middle;background-color:#dddddd;text-align:center;font-size:smaller;" |<!-- | ||
Revision as of 19:20, 7 August 2020
{{{2}}} | ||
---|---|---|
{{{contents}}} |
- The following documentation is located at Template:Number box/doc. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
This template generates a navigation box between number entries of a particular language. Unlike Wiktionary's approach, this template doesn't rely on any module to function.
Parameters
|1=
(you can use1=
or write the argument directly as shown in the example below)- The complete name of your language, used in the table's caption. It is advisable to write the first letter as a capital letter for aesthetic purposes.
|2=
(same mechanism)- The number character of the current entry.
|headlink=
- Creates a link in the caption. Omit if desired.
|top=
- Written form of the direct multiple of ten of the current entry. Only for base-10 languages.[1]
|prev=
- Written form of the number immediately preceding.
|next=
- Written form of the number immediately after.
|contents=
- List of numeral subcategories (i.e. ordinal, cardinal, fractional, etc.). See the example below for a similar formatting to Wiktionary's.
Example
Suppose we want to set up a number box for the number 2 in some language, and we want the caption of the table to redirect to Contionary's main page. The template usage would be the following:
{{number box|Placeholder|2|headlink=Portal:Contionary|top=example-top|prev=example-before|next=example-after|contents=:''[[w:ordinal number|Ordinal]]'': {{term|example-second}}<br>''[[w:cardinal number|Cardinal]]'': {{term|example-two}<br>''[[w:multiplier (linguistics)|Multiplier]]'': {{term|example-double}}}}, etc.
which will render:
20 | ||
← 1 | 2 | 3 → |
---|---|---|
Notes
- ^ If your language's number system is based (pun intended) on any base other than 10, you can copy the source of the template, create your own template page, paste the code, and look for
#expr:{{{2}}} * 10
. Replace10
with the radix of your base.