It is likely that more complex changes and customization will require Infobox source edit mode. It loads when creating a new infobox template, or editing infobox templates without complex tags. To use it, you must also select the "Infobox" template classification when editing the infobox.
At the top of the editor pane is the name of your template. You may click on it and give it a name, or it will prompt you for a name when you attempt to publish the infobox. On the left side of the editor pane, there is a preview of the infobox template. The sidebar on the right contains buttons for adding new items. Titles, headers, images, and data rows are supported.
The infobox preview's items can be configured by clicking on them and using the options pane in the right sidebar. The items can also be rearranged by dragging them around.
To remove an item, click on it and use the trash can button on the right. There are 4 types of items in the visual infobox editor. The following table provides their full information.
When you are satisfied that the infobox is organized the way you want it and has fields for all the data items and images it might display, click the Publish button in the upper-right corner. If you haven't given your infobox a name, it will prompt you to do so before it is published. Once published, you will see the template page for your new infobox. The items in a row will adjust to fill all available width.
All items in a smart group use horizontal layout by default, so it is not necessary to add that attribute if you are using smart groups. This will make the group header row clickable to expand and collapse the group , and the group will initially start open or closed, respectively. Data items and groups can now be structured in tabbed panels, which allow more flexibility and smarter data display on desktop and mobile views. This should reduce clutter and the necessity for groups of infoboxes on pages while structuring infoboxes in more dynamic ways.
Labels default to their zero-based index if omitted; if all tabs within a panel are unlabeled, then they are contained in the infobox as if they were groups. If you want to append some additional information to your data — like adding some icons, categories — or to process the passed values, the field formatting allows you to do that. Parser functions can be added to any infobox. However, the results will be automatically hidden if the parameter, tag, or data source do not contain any text.
It would not make sense to test for the empty string in the switch statement; e. Because the data tag doesn't contain a source , the row will be hidden, unless you put your parser function in the default tag. In the example below, the row will be hidden, if the "start" template parameter is not defined. Community Central. Community Central Explore. Report spam Report vandalism Report wikis Spam filter problems. Spotlights Interlanguage linking. Explore Wikis Community Central. Register Don't have an account?
View source. History Talk This extension is enabled by default on Fandom. Category : Tutorials. Hidden category: Drafts. Namespaces Manual Discussion. Views Read Edit View history. Bug tracker Code docs Code repository Statistics.
Add links.
0コメント