« Utilisateur:Rical/MathRoman/Documentation » : différence entre les versions

Contenu supprimé Contenu ajouté
warning_versions MathRoman2
For test of Module:MathRoman
Ligne 1 :
<div style="float:right;margin-left:1em;"> __TOC__ </div>
Ce [[Module:MathRoman]] :
* convertit des nombres entiers en nombres romains et vice-versa,
* génère des erreurs précises sur le nombre entré,
* génère des erreurs sur les limites de conversion,
* permet d'afficher des tests de ces fonctions.
 
=== FonctionsDocumentations deand baselive MathRoman2examples ===
 
* Template example: [[s:fr:Modèle:MathRoman|Modèle:Central]]
* '''roman2integer''' : MMXIJ -> {{#invoke:MathRoman2|roman2integer| MMXIJ }}
* Main module example: [[s:fr:Module:MathRoman|Module:Author3]]
* raccourci '''r2i''' : MMXIJ -> {{#invoke:MathRoman2|r2i| DLV }}
* Author module example: [[s:fr:Utilisateur:Rical/Victor_Hugo|fr:Utilisateur:Rical/Victor_Hugo]]
* '''integer2roman''' : 2013 -> {{#invoke:MathRoman2|integer2roman| 2013 }}
* Translations service: [https://translatewiki.net/wiki/Translating:MediaWiki Translating:MediaWiki], and [https://translatewiki.net/wiki/Translating:Group_statistics its statistics].
* raccourci '''i2r''' : 4999 -> {{#invoke:MathRoman2|i2r| 4999 }}
* [[mw:Extension:Wikibase Client/Lua|Extension:Wikibase Client/Lua]]
* [[s:fr:MediaWiki:Scribunto/Central_modules_reference_manual|MediaWiki:Scribunto/Central modules reference manual]]
* Examples of modules and their uses in live demo <b>in debug phase</b>:
* [[Module:Centralizer]], [[Module:Centralizer/Documentation]], [[Module:Author3]]
* [[Utilisateur:Rical/Victor_Hugo]] with tests.
 
=== Doc with item = docitem ===
== Tests MathRoman2 ==
<nowiki>
{{#invoke:MathRoman2|autotests}}
{{MathRoman|doc|dockey=versions_support_desk_title|docitem=Q535}}</nowiki>
{{MathRoman|doc|dockey=versions_support_desk_title|docitem=Q535}}
 
=== Doc with function from string ===
== Fonctions de base MathRoman ==
<nowiki>
{{MathRoman|doc|dockey=modes_get_args_report_title|docfunc=modes.get_args_report}}</nowiki>
{{MathRoman|doc|dockey=modes_get_args_report_title|docfunc=modes.get_args_report}}
 
=== Central normal read mode ===
* '''roman2integer''' : MMXIJ -> {{#invoke:MathRoman|roman2integer| MMXIJ }}
<nowiki>
* raccourci '''r2i''' : MMXIJ -> {{#invoke:MathRoman|r2i| DLV }}
{{MathRoman|read|QITEM=Q535}}</nowiki>
* '''integer2roman''' : 2013 -> {{#invoke:MathRoman|integer2roman| 2013 }}
* raccourci '''i2r''' : 4999 -> {{#invoke:MathRoman|i2rread| 4999 QITEM=Q535}}
 
=== Edit mode example for English user / French project ===
== Tests MathRoman ==
<nowiki>
{{#invoke:MathRoman|autotests}}
{{MathRoman|edit|contentlang=es|pagelang=fr|userlang=en|QITEM=Q8023}}</nowiki>
{{MathRoman|edit|contentlang=es|pagelang=fr|userlang=en|QITEM=Q8023}}
 
=== Edit mode example for Spanish user / French project ===
<nowiki>
{{MathRoman|edit|contentlang=en|pagelang=fr|userlang=es|itemid=Q34743}}</nowiki>
{{MathRoman|edit|contentlang=en|pagelang=fr|userlang=es|itemid=Q34743}}
 
=== Edit mode example for French user / English project ===
<nowiki>
{{MathRoman|edit|contentlang=es|pagelang=en|userlang=fr|QITEM=Q868}}</nowiki>
{{MathRoman|edit|contentlang=es|pagelang=en|userlang=fr|QITEM=Q868}}
 
=== Tests mode example ===
<nowiki>
{{MathRoman|tests|itemid=Q535}}</nowiki>
{{MathRoman|tests|itemid=Q535}}