Wikipedia zawiki https://za.wikipedia.org/wiki/Yiebdaeuz MediaWiki 1.46.0-wmf.26 first-letter 媒体 特殊 讨论 用户 用户讨论 Wikipedia Wikipedia讨论 文件 文件讨论 MediaWiki MediaWiki讨论 模板 模板讨论 帮助 帮助讨论 分类 分类讨论 TimedText TimedText talk 模块 模块讨论 Event Event talk 模块讨论:Databox 829 14806 42952 2026-05-05T13:23:25Z MediaWiki message delivery 3882 /* Databox has 2 new parameters */ 新章节 42952 wikitext text/x-wiki == Databox has 2 new parameters == ''Sorry for posting in English, you can help by translating it'' The code in this module added 2 new parameters: * <code>useImage</code> * <code>excludeProperties</code> '''How to use them'''<br> Invoke either or both parameters into the template when entering the databox template: '''<nowiki>{{</nowiki>Databox}}''', placing a pipe <code>|</code> and then the parameter name, followed by an equals sign<code>=</code> and ending with the value (no spaces are required), it will have a form like:<br> <nowiki>{{Databox|parameterName=value}}</nowiki> * <code>useImage=</code> <nowiki>{{</nowiki>Databox|useImage=<code>add the [[d:Property:P18|P18 (image)]] filename here</code>}} * <code>excludeProperties=</code> <nowiki>{{</nowiki>Databox|excludeProperties=<code>add comma-separated property ID's here (P105,P171)</code>}} '''Parameter behaviour'''<br> Both parameters when used will make changes to the invoked databox at the local page level.<br> ''They do not affect any other Databoxes on the wiki''. * <code>'''useImage:'''</code> This parameter allows the local databox to choose which image of the item's P18 files to display. A Wikidata item can have multiple files for its property Image (P18). By default, only the most recently uploaded (or Preferred) file will be displayed when a databox is invoked. * <code>'''excludeProperties:'''</code> This parameter allows the local databox to exclude additional properties from being included in the current databox (only). Databox code already contains a global list of properties to exclude from being displayed, this exclusion list affects '''all''' databoxes on the current wiki. Adding or removing properties under '''local site excluded properties = {''' of the code at [[Module:Databox]] will affect all databoxes currently displayed and any future ones. Editors' may want to have more control over what data/properties are shown for individual databoxes to stop it from becoming too long or containing irrelevant data for the current article, page or topic. [[m:Wikidata_For_Wikimedia_Projects/Projects/Databox|Databox - additional Parameters]] - More information about these parameters can be found here. <br> [[m:Wikidata_For_Wikimedia_Projects/Projects/Databox|User Talk: Databox - additional Parameters]] - Questions and feedback about these parameters are welcome here (or as a reply to this topic).<br> [[m:User:Danny_Benjafield_(WMDE)|User:Danny_Benjafield (WMDE)]] on behalf of the [[m:Wikidata_For_Wikimedia_Projects|Wikidata For Wikimedia Projects]] team will be updating the local code for the Template:Databox and Module:Databox pages in the coming weeks. If you do not wish to update to the newest version, please let them know at their [[m:User_talk:Danny_Benjafield_(WMDE)|User talk:Danny_Benjafield (WMDE)]] or reply here. Thank you, - [[用户:MediaWiki message delivery|MediaWiki message delivery]]([[用户讨论:MediaWiki message delivery|留言]]) 2026年5月5日 (Ngeih) 13:23 (UTC) <!-- 信息由 User:Danny Benjafield (WMDE)@metawiki 发送,使用的列表为 https://meta.wikimedia.org/w/index.php?title=User:Danny_Benjafield_(WMDE)/MassMessage_test_list&oldid=30504313 --> e1hyl4roy8ylno1i4ihbfmongz1zxrf