Difference between revisions of "Form:Metadata Fusaria Autographice Delineata Wollenweber"
From OpenMedia
(One intermediate revision by the same user not shown) | |||
Line 16: | Line 16: | ||
* [[Template: Hidden]] | * [[Template: Hidden]] | ||
* [[Form: Metadata/include core]] | * [[Form: Metadata/include core]] | ||
− | * [[template: Metadata Fusaria Autographice Delineata Wollenweber]] | + | * [[template: Metadata Fusaria Autographice Delineata Wollenweber]], [[Form:Metadata/include Metadata Fusaria Autographice Delineata Wollenweber]] |
JavaScript | JavaScript | ||
Line 54: | Line 54: | ||
<div class="use-jquery-ui-tabs"> | <div class="use-jquery-ui-tabs"> | ||
<ul class="jquery-ui-tabs-minimized-padding"> | <ul class="jquery-ui-tabs-minimized-padding"> | ||
− | <li> <div style="float:left;">[[File:Text-x-generic with pencil.svg|x22px|link=]]</div>[[#form-tab1|Metadata ( | + | <li> <div style="float:left;">[[File:Text-x-generic with pencil.svg|x22px|link=]]</div>[[#form-tab1|Metadata (general)]]</li> |
<li> <div style="float:left;">[[File:Text-x-generic with pencil.svg|x22px|link=]]</div>[[#form-tab2|Metadata (Fusaria Autographice Delineata Wollenweber)]] </li> | <li> <div style="float:left;">[[File:Text-x-generic with pencil.svg|x22px|link=]]</div>[[#form-tab2|Metadata (Fusaria Autographice Delineata Wollenweber)]] </li> | ||
</ul> | </ul> |
Latest revision as of 20:04, 7 April 2015
This is a special “Metadata” form for inserting general Metadata (for template: Metadata) and template: Metadata Fusaria Autographice Delineata Wollenweber. It is defined on the medai page itself. To add a page with this form, enter the page name below; if a page with that name already exists, you will be sent to a form to edit that page.
Technical dependencies
- Template: Metadata and its subtemplates
- Template: Logo
- Template: Hidden
- Form: Metadata/include core
- template: Metadata Fusaria Autographice Delineata Wollenweber, Form:Metadata/include Metadata Fusaria Autographice Delineata Wollenweber
JavaScript
/**
* @description create jQuery UI Tabs on CSS class="use-jquery-ui-tabs" Used for Form:Metadata/Metadata_Fusaria_Autographice_Delineata_Wollenweber
*
* @requires https://www.mediawiki.org/wiki/Extension:Semantic_Forms
* @requires jQuery-UI mw.loader.using( 'jquery.ui.tabs', function () {});
* @returns {undefined}
*/
function initUiTabsInForms() {
console.log("initUiTabsInForms");
var use_jquery_ui_tabs= $(".use-jquery-ui-tabs");
var use_jquery_ui_tabs_vertical= $(".use-jquery-ui-tabs-vertical");
if (use_jquery_ui_tabs.length || use_jquery_ui_tabs_vertical.length) {
mw.loader.using( 'jquery.ui.tabs', function () {
var use_jquery_ui_tabs= $(".use-jquery-ui-tabs");// Google Chrome Fix
var use_jquery_ui_tabs_vertical= $(".use-jquery-ui-tabs-vertical");// Google Chrome Fix
console.log("initUiTabsInForms mw.loader.using");
if ($(".use-jquery-ui-tabs").length) {
$(".use-jquery-ui-tabs").tabs({event: "mouseover"});
console.log("initUiTabsInForms tabs");
}
if (use_jquery_ui_tabs_vertical.length) {
use_jquery_ui_tabs_vertical.tabs({event: "mouseover"}).addClass( "ui-tabs-vertical ui-helper-clearfix" );
use_jquery_ui_tabs_vertical.find( "li" ).removeClass( "ui-corner-top" ).addClass( "ui-corner-left" );
console.log("initUiTabsInForms tabs_vertical");
}
});
}
}