[ocultar]
Atención docentes de preprimaria. Ya pueden consultar la Dosificación del aprendizaje de la primera unidad del Nivel de Educación Preprimaria.
Ver el código de «Módulo:Yesno»
Ir a la navegación
Ir a la búsqueda
No tienes permiso para modificar esta página, por el siguiente motivo:
Puedes ver y copiar el código fuente de esta página.
-- Function allowing for consistent treatment of boolean-like wikitext input.
-- It works similarly to the template {{yesno}}.
return function (val, default)
-- If your wiki uses non-ascii characters for any of "yes", "no", etc., you
-- should replace "val:lower()" with "mw.ustring.lower(val)" in the
-- following line.
val = type(val) == 'string' and val:lower() or val
if val == nil then
return nil
elseif val == true
or val == 'yes'
or val == 'y'
or val == 'true'
or val == 't'
or val == 'on'
or tonumber(val) == 1
then
return true
elseif val == false
or val == 'no'
000
1:0
Plantillas usadas en esta página:
- Plantilla:High-risk (editar)
- Plantilla:High-risk/en (editar)
- Plantilla:Module other (editar)
- Plantilla:Module rating (editar)
- Plantilla:Ombox (editar)
- Plantilla:Ombox/styles.css (editar)
- Plantilla:Shared Template Warning (editar)
- Plantilla:Tl (editar)
- Plantilla:Used in system (editar)
- Plantilla:Used in system/en (editar)
- Módulo:Arguments (editar)
- Módulo:Message box (editar)
- Módulo:Message box/configuration (editar)
- Módulo:No globals (editar)
- Módulo:TNT (editar)
- Módulo:Template translation (editar)
- Módulo:Yesno (editar)
- Módulo:Yesno/doc (editar)
Volver a Módulo:Yesno.