Anonymous
Not logged in
English
Talk
Contributions
Create account
Log in
Objectshowpedia
Search
Editing
Module:Arguments/doc
(section)
From Objectshowpedia
Namespaces
Module
Discussion
More
More
Page actions
Read
Edit source
History
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!
=== Writing to the args table === Sometimes it can be useful to write new values to the args table. This is possible with the default settings of this module. (However, bear in mind that it is usually better coding style to create a new table with your new values and copy arguments from the args table as needed.) <syntaxhighlight lang="lua"> args.foo = 'some value' </syntaxhighlight> It is possible to alter this behaviour with the <code>readOnly</code> and <code>noOverwrite</code> options. If <code>readOnly</code> is set then it is not possible to write any values to the args table at all. If <code>noOverwrite</code> is set, then it is possible to add new values to the table, but it is not possible to add a value if it would overwrite any arguments that are passed from #invoke.
Summary:
Please note that all contributions to Objectshowpedia are considered to be released under the Creative Commons Attribution-ShareAlike (see
Objectshowpedia:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, 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.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Landing page
Recent changes
Random page
Help about MediaWiki
Discord server
Multiverse
Objects
Places
Items
Teams
Events
Real world
Object shows
Camps
Episodes
Staff
Music
Games
Basics
Over the years
Pre-2013
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs