Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Navbar/testcases
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
--Quick and few tests of using the _navbar function directly, as they won't be caught in tests of {{navbar}} local p = {} local n = require('Module:Navbar') local ns = require('Module:Navbar/sandbox') require('strict') --make sure no globals function p.main() local out = {} for i = 1,2 do local k = {'yes', nil} table.insert(out, { n._navbar({collapsible = k[i], template = 'V/doc'}), ns._navbar({collapsible = k[i], template = 'V/doc'}), '<br/>----', n._navbar({collapsible = k[i], template = 'V/doc', 'h', 'm', ''}), ns._navbar({collapsible = k[i], template = 'V/doc', 'h', 'm', ''}), '<br/>----', n._navbar({collapsible = k[i], 'V/doc', 'h', 'm'}), ns._navbar({collapsible = k[i], 'V/doc', 'h', 'm'})}) end table.insert(out, {n._navbar{mini = 'yes', 'v/doc'},ns._navbar{mini = 'yes', 'v/doc'}}) return table.concat(out[1])..table.concat(out[2])..table.concat(out[3]) end return p
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:Navbar/testcases/doc
(
edit
)