Jump to content
Main menu
Main menu
move to sidebar
hide
Ka papa huli mea
Papa Kinohi
Ka hui kaiaulu
Nā loli hou
He mo‘olelo kaulele
Kōkua
Nā papa nui
Huli
Huli
Appearance
E lūlū mai
Kāinoa
ʻEʻe
Hāmeʻa ponoʻī
E lūlū mai
Kāinoa
ʻEʻe
Pages for logged out editors
learn more
Contributions
Ke kūkākūkā no kēia IP
Ke ho‘ololi nei iā
Module:Parameter names example
Add languages
Module
Kūkākūkā
English
Heluhelu
Edit source
Nānā i ka mōʻaukala
Hāmeʻa
Tools
move to sidebar
hide
Actions
Heluhelu
Edit source
Nānā i ka mōʻaukala
General
He aha e loulou iho ai
Nā loli hou ʻālike
Ho'ohui i ka waihona
ʻIke ʻaoʻao
Get shortened URL
Download QR code
Appearance
move to sidebar
hide
A‘o ‘ana:
‘O ‘oe ‘a‘ole ʻeʻe. E ho‘opa‘a ana ‘ia kou wahi noho IP ma "he aha i ho‘ololi ‘ia ai" o kēia ‘ao‘ao.
Anti-spam check. Do
not
fill this in!
-- This module implements {{parameter names example}}. local p = {} local function makeParam(s) local lb = '{' local rb = '}' return lb:rep(3) .. s .. rb:rep(3) end local function italicize(s) return "''" .. s .. "''" end local function plain(s) return s end function p._main(args, frame) -- Find how we want to format the arguments to the template. local formatFunc if args._display == 'italics' or args._display == 'italic' then formatFunc = italicize elseif args._display == 'plain' then formatFunc = plain else formatFunc = makeParam end -- Build the table of template arguments. local targs = {} for k, v in pairs(args) do if type(k) == 'number' then targs[v] = formatFunc(v) elseif not k:find('^_') then targs[k] = v end end targs['nocat'] = 'yes'; targs['categories'] = 'no'; targs['demo'] = 'yes'; -- Find the template name. local template if args._template then template = args._template else local currentTitle = mw.title.getCurrentTitle() if currentTitle.prefixedText:find('/sandbox$') then template = currentTitle.prefixedText else template = currentTitle.basePageTitle.prefixedText end end -- Call the template with the arguments. frame = frame or mw.getCurrentFrame() local success, result = pcall( frame.expandTemplate, frame, {title = template, args = targs} ) if success then return result else return '' end end function p.main(frame) local args = require('Module:Arguments').getArgs(frame, { wrappers = 'Template:Parameter names example' }) return p._main(args, frame) end return p
Hō'ulu'ulu mana'o
By saving 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.
Ho‘ōki
Kōkua ho‘ololi
(wehe ʻia i loko o kekahi pukaaniani hou)
Preview page with this template
Wikidata entities used in this page
Module:Parameter names example
: Sitelink, Description: en
anakuhi e hana ʻia ma kēia ʻaoʻao:
Module:Parameter names example/doc
(
hoʻololi
)
Huli
Huli
Ke ho‘ololi nei iā
Module:Parameter names example
Add languages
Hoʻohui kumuhana