Module:Yesno/doc: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
(Marked this version for translation)
(→‎Syntax: Make heading translatable)
Line 1: Line 1:
<noinclude>
<noinclude><!--
{{#ifeq:{{SUBPAGENAME}}|doc||{{Documentation subpage}}}}
-->{{#ifeq:{{SUBPAGENAME}}|doc||{{Documentation subpage}}}}<!--
<languages />
--><languages /><!--
</noinclude>{{#switch:<translate></translate>
--></noinclude>{{#switch:<translate></translate>
| =
| =
<includeonly>{{Languages|Module:Yesno/doc}}</includeonly>
<includeonly>{{Languages|Module:Yesno/doc}}</includeonly>
Line 17: Line 17:
<translate><!--T:5--> The module also accepts other Lua structures as input, i.e. booleans, numbers, tables, and functions.</translate>
<translate><!--T:5--> The module also accepts other Lua structures as input, i.e. booleans, numbers, tables, and functions.</translate>
<translate><!--T:6--> If it is passed input that it does not recognise as boolean or <tvar name=1><code>nil</code></tvar>, it is possible to specify a default value to return.</translate>
<translate><!--T:6--> If it is passed input that it does not recognise as boolean or <tvar name=1><code>nil</code></tvar>, it is possible to specify a default value to return.</translate>
<translate>

== Syntax ==
== Syntax ==
</translate>

<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
yesno(value, default)
yesno(value, default)

Revision as of 04:17, 1 July 2021

<languages />Script error: No such module "Template translation".