Anonymous
Not logged in
Talk
Contributions
Log in
Dark Skylines Wiki
Search
Editing
Module:Arguments/doc
(section)
From Dark Skylines Wiki
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!
=== Ref tags === This module uses [[mw:Extension:Scribunto/Lua reference manual#Metatables|metatables]] to fetch arguments from #invoke. This allows access to both the frame arguments and the parent frame arguments without using the <code>pairs()</code> function. This can help if your module might be passed {{tag|ref}} tags as input. As soon as {{tag|ref}} tags are accessed from Lua, they are processed by the MediaWiki software and the reference will appear in the reference list at the bottom of the article. If your module proceeds to omit the reference tag from the output, you will end up with a phantom reference – a reference that appears in the reference list but without any number linking to it. This has been a problem with modules that use <code>pairs()</code> to detect whether to use the arguments from the frame or the parent frame, as those modules automatically process every available argument. This module solves this problem by allowing access to both frame and parent frame arguments, while still only fetching those arguments when it is necessary. The problem will still occur if you use <code>pairs(args)</code> elsewhere in your module, however.
Summary:
Please note that all contributions to Dark Skylines Wiki may be edited, altered, or removed by other contributors.
Original content you contribute to the Dark Skylines Wiki is submitted as Creative Commons work (or other applicable licenses—see
Larp:Copyrights
for details). If you have any questions, please contact an admin.
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Recent changes
Random page
Index
Characters
Character List
Notable Characters
Officers of Caliburn
Lore
Caliburn Island
Boston
The Warden
House Morningstar
Our LARP
Code of Conduct
The Narrator Team
Venue Style Sheet
House Rules
Reference Sheets
Graduation System
Equipment
Stock Locations
Status Rules
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs