Editing
Template:Standard infobox parameters
Jump to navigation
Jump to search
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!
<noinclude>This template explains the standard parameters for infoboxes based on [[Module:Infobox]]. ----</noinclude> ==Standard infobox parameters== <div class="tile mw-collapsible mw-collapsed" style="max-width:none;"> This infobox uses [[Module:Infobox]], which provides a number of standard parameters. <div class="mw-collapsible-content"> ===Versioning=== This infobox supports switching between multiple versions. Each version needs to have a name defined in a parameter called <code>version#</code>, numbered sequentially starting from 1. For all parameters that have different values, a number can be appended to the end of each parameter name to define the value for each version. Parameters without a version number will be shared between all versions. For example, if the name of version 2 is called "Bob", you should define <code>|name2 = Bob</code>. ===Linking=== You can link to a page and have an alternative infobox appear by using a hash value, as if you were linking to a section. The hash value is the version name, as defined by the relevant version# parameter. For example, to link to the variant of a switch infobox with <code>|version3 = Quest</code>, you can use <code><nowiki>[[Example#Quest]]</nowiki></code>. '''Alternative versions are not visible or accessible when Javascript is disabled.''' ===defver=== If defver is defined, the infobox will switch to the specified version when the page is loaded. For example, <code>|defver = 4</code> will automatically select the 4th infobox version. ===smwname=== This overrides the name of the [[RS:SMW|Semantic MediaWiki]] subobject that the infobox will set the parameters into. By default, an infobox with multiple versions will save properties into subobjects with the same name as the version name. This parameter only needs to be set if the version name is different from the desired subobject name, or if an unversioned infobox needs to set properties of a specific subobject (for example, when versioned and unversioned infoboxes of different types, like Item and Bonuses, are used on the same page). This is necessary when a version name would otherwise be an invalid SMW subobject name. The value of <code>smwname</code> is also not permitted to be an invalid subobject name. A subobject name must not violate the following rules: *The first 5 characters of the name must not contain a period (<code>.</code>). *The name must not be the number zero (<code>0</code>). *The name must not be the empty string. If the infobox does not have multiple versions, SMW properties would normally be set on the page itself. '''Setting <code>smwname</code> overrides this default behaviour''' and the properties will be only be set to the specified subobjects and not the page itself. Multiple subobjects can be specified by separating the subobject names with the broken bar character (<code>Β¦</code>). The properties will be set in all of the subobjects specified. For example, if the infobox has <code>|version2 = H.A.M. member</code>, this would cause an invalid subobject name due to having a period within the first 5 characters. The infobox should therefore override the smwname using <code>|smwname2 = HAM member</code> or something similar. ===Suppressing SMW=== Setting <code>|smw = No</code> will suppress all SMW output for the infobox. Setting <code>|smwX = No</code> will suppress all SMW output for version number X. ===__dump__=== This parameter is used only for debugging an infobox. If <code>__dump__</code> is present with any value then a string version of the infobox object is dumped to the page, rather than displaying the infobox as normal. This should only be used when previewing the page and must never be saved in a mainspace page. Setting this adds [[:Category:Dumping infoboxes]] to the page. Specifically, this shows the result at the time the infobox is converted to a string. This will always occur when the module finally returns, but may instead occur earlier in the code. The object is dumped using <code>mw.dumpObject(box)</code>. Dumping will not prevent a script error occurring. </div> </div> <noinclude>[[Category:Template documentation]]</noinclude>
Summary:
Please note that all contributions to OtherX 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
OtherX:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Purge cache
Search
Discord
Discord
Navigation
Main page
About us
Random page
Otherside
Legends of the Mara
Otherside Trips
Otherside Test Events
LOTM Guides & Info
Basics Guide
Hunting Guide
Farming Guide
Enchanting Guide
Game Updates
Oda Information
Quick References
Koda Weapons
Oda Abilities Table
Oda Stats Table
Tools
What links here
Related changes
Special pages
Page information
Page values