Template:Number box/doc

From Linguifex
Jump to navigation Jump to search

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 use 1= 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:

Lua error in Module:number_list at line 496: The parameter "top" is not used by this template..





Notes

  1. ^ 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. Replace 10 with the radix of your base.