Jump to content
Menyu yikuru
Menyu yikuru
move to sidebar
kubisa
Mayendelo
Jani likulu
Vidumbizgano vya chikaya
Vakuchitika vasono
Kusintha kuphya
Jani lililose
Wovwili
To Do
Vyakuti vinozgeke
Vinyake
Mafumbo
Mazgo ghakomi
Helpful Pages (Wovwili)
Need for Fix
Need for Review
Admin Pages
Home pages
Home templates
Kufufuza
Kufufuza
Kaonekelo
Chakupeleka
Panga akaunti
Njila
Vilwelo vyako
Chakupeleka
Panga akaunti
Njila
Pages for logged out editors
learn more
vyakulemba
Pakuchezgela
Kulemba
Module:Template invocation/doc
Sazgapo viyowoyelo
Module
Kudumbizgana
chiTumbuka
Ŵelengani
Kulemba source
Kuona umo mayambilo
Vilwelo
Vilwelo
move to sidebar
kubisa
Vyakuchita
Ŵelengani
Kulemba source
Kuona umo mayambilo
Vya masiku ghose
Ivo vikwiza pano
Vyaku sintha
Kwezgela chinthu
Va jani lino
Penjani URL yakufupikizgika
Sangululani kodi ya QR
Kaonekelo
move to sidebar
kubisa
Chenjezgo:
Mundanjile mu akaunti yinu. Pala mulembenge chilichose IP adilesi yinu waliyose waionenge. Pala
mwanjila
mu akaunti yinu
panji
mwapanga akaunti
, vyakulemba vinu vyose viŵenge mu zina linu, na uwemi unyake.
Anti-spam check. Do
not
fill this in!
This is a meta-module for producing MediaWiki template invocations. {{High-use|demo=Module:Unsubst|2=yes}} {{Module rating|p}} == Usage == First load the module: <syntaxhighlight lang="lua"> local mTemplateInvocation = require('Module:Template invocation') </syntaxhighlight> Then you can use the individual functions as documented below. === Name === <syntaxhighlight lang="lua"> mTemplateInvocation.name(title) </syntaxhighlight> This function produces the name to be used in a template invocation. For pages in the template namespace it returns the page name with no namespace prefix, for pages in the main namespace it returns the full page name prefixed with ":", and for other pages it returns the full page name. <var>title</var> can be a string or a [[mw:Extension:Scribunto/Lua reference manual#Title objects|mw.title object]]. === Invocation === <syntaxhighlight lang="lua"> mTemplateInvocation.invocation(name, args, format) </syntaxhighlight> This function creates a MediaWiki [[Help:Template|template]] invocation. Parameters: * '''name''' - the name of the template (string, required). This should be exactly as it will appear in the invocation, e.g. for [[Template:Example]] use "Example". To generate the template name from a page name you can use the [[#Name|name]] function. * '''args''' - the arguments to use in the invocation (table, required). Table keys and values must be either strings or numbers. * '''format''' - the format of the invocation (string, optional). The default is a normal invocation with unescaped curly braces, pipes, and equals signs. If this parameter is the string "nowiki", then the curly braces, pipes and equals signs are replaced with the appropriate [[HTML entities]]. '''Example''' The code {{code|1=mTemplateInvocation.invocation('foo', {'bar', 'baz', abc = 'def'})|2=lua}} would produce <code><nowiki>{{foo|bar|baz|abc=def}}</nowiki></code>. <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| <!-- Categories go here and interwikis go in Wikidata. --> }}</includeonly>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Kuleka
Wowili wakalembelo
(julani mu windo lanyuwani)
Preview page with this template
Nkhwaska zagwiliskika apa:
Template:Code
(
lemba
)
Template:High-use
(
lemba
)
Template:Module rating
(
lemba
)
Module:High-use
(
lemba
)
Module:Message box
(
lemba
)
Module:Message box/configuration
(
lemba
)
Module:Message box/ombox.css
(
lemba
)
Module:Transclusion count
(
lemba
)
Module:Transclusion count/data/U
(
lemba
)
Module:Yesno
(
lemba
)
Kufufuza
Kufufuza
Kulemba
Module:Template invocation/doc
Sazgapo viyowoyelo
Add topic