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:Wd/doc
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!
{{Module rating|protected}} {{High-use|risk}} {{ombox|text=You might want to use one of the user-friendly wrapper templates {{t|Wikidata}} and {{t|WikidataOI}} instead of invoking this module directly.}} {{Wikidata/doc|prename=<nowiki/>#invoke:|prename_code=#invoke:|section==== Main class === The <code>main</code> command is always used alone and does not take any flags or arguments. It allows parent templates to pass on their parameters in the form of commands to this module. <table class="wikitable"> <tr> <th>Command</th> <th>Basic usage</th> <th>Description</th> </tr> <tr> <th style="text-align:left;"><code>main</code></th> <td>{{nowrap|{{tnull|<nowiki/>#invoke:{{lc:{{ROOTPAGENAME}}}}|main}}}}</td> <td>Intended for use by wrapper templates (around this module) to invoke one or more of the above commands, returning their respective output. <p>The parameters passed to the wrapper template are the ones that will be used by the module, e.g. {{tnull|wikidata|'''property'''|'''P1549'''}} β {{tnull|<nowiki/>#invoke:wd|main}} β {{tnull|<nowiki/>#invoke:wd|main|'''property'''|'''P1549'''}}.</p> <p>Therefore, any parameters set by the wrapper template itself will be discarded, e.g. {{tnull|wikidata|'''property'''|'''P1549'''}} β {{tnull|<nowiki/>#invoke:wd|main|{{color|red|qualifier}}|{{color|red|P1082}}|{{color|red|P585}}}} β {{tnull|<nowiki/>#invoke:wd|main|'''property'''|'''P1549'''}}.</p> </td> </tr> </table>}}
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)
Templates used on this page:
Template:High-use
(
edit
)
Template:Module rating
(
edit
)
Template:Ombox
(
edit
)
Template:T
(
edit
)
Template:Wikidata/doc
(
edit
)
Module:Arguments
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:Yesno
(
edit
)