Difference between revisions of "Template:Factor"
Jump to navigation
Jump to search
m (1 revision) |
(No difference)
|
Latest revision as of 17:53, 18 January 2010
[edit] [ ] Template documentation
This template finds if a number is a factor of another number. Use it like this:
{{factor|{{factor|number to factor|divisor|then=then string (optional, default: 1)|else=else string (optional, default: 0)}}
Examples:
{{factor|10|5}}
gives 1{{factor|20|11}}
gives 0{{factor|4|2|then="true"|else="false"}}
gives "true"{{factor|4|3|then=WIKIPEDIA|else={{CURRENTYEAR}}}}
gives 2024{{factor|20|2|then=EVEN|else=ODD}}
gives EVEN
The above documentation is transcluded from Template:Factor/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |