Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Neighbors
Esassani
Mobai
Glenn
Mors
Creatures
Fish
Insects
Shore-Dwellers
Search
Search
English
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Module:Mbox
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
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!
-- Source: https://genshin-impact.fandom.com/wiki/Module:Mbox -- <nowiki> local Mbox = {} local getArgs = require('Module:Arguments').getArgs local i18n = require('Module:I18n').loadMessages('Mbox') function Mbox.main(frame) local args = getArgs(frame) -- styles local styles = {} styles['border-left-color'] = i18n:parameter('bordercolor', args) styles['background-color'] = i18n:parameter('bgcolor', args) -- images local image = i18n:parameter('image', args) or '' local imageadjust = '' if args.imageadjust then imageadjust = '|' .. args.imageadjust end local imagewidth = i18n:parameter('imagewidth', args) or '80px' local imagelink = '|link=' local imagelinkarg = i18n:parameter('imagelink', args) if imagelinkarg then imagelink = imagelink .. imagelinkarg end local imagewikitext = '[[File:' .. image .. '|' .. imagewidth .. imageadjust .. imagelink .. ']]' -- id for closure local id = i18n:parameter('id', args) or 'mbox' local typeclass = i18n:parameter('type', args) local container = mw.html.create('div') :addClass('mbox') :addClass(typeclass and ('mbox-type-' .. typeclass)) :addClass(i18n:parameter('class', args)) :css(styles) :cssText(i18n:parameter('style', args)) local content = container:tag('div') :addClass('mbox__content') local collapsed = i18n:parameter('collapsed', args) if image ~= '' then local image = content:tag('div') :addClass('mbox__content__image') :addClass('mw-collapsible') :attr('id', 'mw-customcollapsible-' .. id) :wikitext(imagewikitext) if collapsed then image:addClass('mw-collapsed') end end local contentwrapper = content:tag('div') :addClass('mbox__content__wrapper') local header = i18n:parameter('header', args) if header then contentwrapper:tag('div') :addClass('mbox__content__header') :wikitext(header) end local textarg = i18n:parameter('text', args) if textarg then local text = contentwrapper:tag('div') :addClass('mbox__content__text') :addClass('mw-collapsible') :attr('id', 'mw-customcollapsible-' .. id) :wikitext(textarg) if collapsed then text:addClass('mw-collapsed') end local comment = i18n:parameter('comment', args) if comment then text:tag('div') :addClass('mbox__content__text__comment') :wikitext(comment) end end contentwrapper:tag('span') :addClass('mbox__close') :addClass('mw-customtoggle-' .. id) :attr('title', i18n:msg('dismiss')) local asidearg = i18n:parameter('aside', args) if asidearg then local aside = content:tag('div') :addClass('mbox__content__aside') :addClass('mw-collapsible') :attr('id', 'mw-customcollapsible-' .. id) :wikitext(asidearg) if collapsed then aside:addClass('mw-collapsed') end end return container end return Mbox
Summary:
Please note that all contributions to The Petit Planet Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Petit Planet: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)
Preview page with this template
Below are commonly used wikitext from
MediaWiki:Edittools
. Click on any to insert them in the edit box.
File Pages
==Summary==
==Licensing==
{{Fairuse}}
{{File|}}
Dynamic Page List
¦
²
«
»
²{¦}²
«»
«/»
«!----»
Array in DPL
¹
^2{
}^2
^2{¹}^2
Parser Functions
{{#if:||}}
{{#if:<condition>|<result if true>|<result if false>}}
{{#ifeq:|||}}
{{#ifeq:<text1>|<text2>|<result if text1=text2>|<result if text1≠text2>}}
{{#expr:}}
{{#expr:<mathematical expression>}}
{{#switch:||#default=}}
{{#switch:<text1>|<text2>=<result if text1=text2>|<text3>=<result if text1=text3>|#default=<result if no valid match>}}
{{#replace:||}}
{{#replace:<text1>|<plain text to find in text1>|<plain text to insert in place of the text found>}}
{{#titleparts:}}
{{#replace:<page name>}}
{{#tag:|}}
{{#tag:<name of html tag>|<content inside html tag>}}
Markup
{{}}
|
[]
[[]]
[[Category:]]
#REDIRECT [[]] [[Category:Redirect Pages]]
<code></code>
<includeonly></includeonly>
<noinclude></noinclude>
<nowiki></nowiki>
<!---->
<br>
§
Notices
{{Stub|}}
{{Stub Dialogue}}
{{Upcoming}}
{{Under Construction}}
{{Placeholder|}}
Magic Words
{{!}}
{{formatnum:}}
{{lc:}}
{{uc:}}
{{PAGENAME}}
{{FULLPAGENAME}}
{{ROOTPAGENAME}}
{{BASEPAGENAME}}
{{SUBPAGENAME}}
{{DISPLAYTITLE:|noreplace}}
__TOC__
__NOTOC__
__EXPECTUNUSEDCATEGORY__
__HIDDENCAT__
HTML Entities
—
,
­
Template used on this page:
Module:Mbox/doc
(
edit
)