Example: By specifying "editintro=Template:Welcome", the content of Template:Welcome will be shown above the article. It is displayed instead of the text of MediaWiki:Newarticletext. Edit introduction editintro=pagename For comment and create boxes, the text of the page under pagename will be added, as instructions, before the submission form for new pages. Example: By specifying "preload=Template:New_page", the content of "Template:New page" will be loaded into the edit box for the new article. Preloaded text preload=pagename For comment and create boxes, the text of the page under pagename will be preloaded (see below) into the blank editbox when a new page is created. Doing so will pre-load an article with a basic layout in terms of templates and structure, making the process standard for editors. If you want to use a standard article template, you can specify this in the form. Using preloaded templates with an article creation box See Help:Preloaded templates for more detail Hide Box hidden=yes Removes the box and automatically goes to the page specified by default=. Placeholder placeholder=any text Define placeholder text that will display in the input box when it is empty. Line break break=no Removes the default line break between the input box and the button(s), displaying them side by side. Search button label searchbuttonlabel=any text For search forms, this label will be used for the "Search full text" button. Button label buttonlabel=any text This label will be used for the text in the main submit button of the form. ui/variables import mediawiki.ui/mixins // Text inputs // // Apply the mw-ui-input class to input and textarea fields. (The default is 50.) Default text default=any text Default text to put in the inputbox before it is changed, such as "enter page title here". Width width=# Sets width of input field, where # is a number of characters. Note that setting a background color that is very light or dark can make the inputbox unreadable on dark or light themes, and should be avoided. Enter the color value without using quotes. There are several parameters you can use to customize the display of the inputboxes.īackground color bgcolor=#FFFFFF Sets the background color using HTML color values. It is also possible to use preloaded templates with the box to simplify the article creation process for editors. It checks if a page already exists and displays an error message if it does. Page creation is handled by the InputBox extension. A new page will be opened at the title the user types in. The default width for all boxes is 50 characters.Īn article creation box places a box on the page that lets the user create a new page by entering the page title. There are three types: the article creation box, the search box, and the comment box. 3 Using preloaded templates with an article creation boxĪn inputbox allows you to put a box on any page, which has a text field for users to fill out and a customizable button for launching the action.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |