Difference between revisions of "Form:Metadata Fusaria Autographice Delineata Wollenweber"

From OpenMedia
Jump to: navigation, search
(Created page with "<noinclude> This is a special “Metadata” form for inserting general Metadata (for template: Metadata) and [[template: Metadata Fusaria Autographice Delineata Wollenweb...")
 
 
(8 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
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.
 
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.
  
{{#forminput: form=Metadata/Metadata Fusaria Autographice Delineata Wollenweber
+
{{#forminput: form=Metadata Fusaria Autographice Delineata Wollenweber
 
   |placeholder=Wollenweber media file
 
   |placeholder=Wollenweber media file
 
   |query string=namespace=File
 
   |query string=namespace=File
Line 16: Line 16:
 
* [[Template: Hidden]]
 
* [[Template: Hidden]]
 
* [[Form: Metadata/include core]]
 
* [[Form: Metadata/include core]]
 +
* [[template: Metadata Fusaria Autographice Delineata Wollenweber]], [[Form:Metadata/include Metadata Fusaria Autographice Delineata Wollenweber]]
 +
 +
JavaScript
 +
<syntaxhighlight lang="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");
 +
      }
 +
    });
 +
  }
 +
}</syntaxhighlight>
  
 
[[Category: Forms]]
 
[[Category: Forms]]
Line 22: 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> [[File:Text-x-generic with pencil.svg|x22px|link=]]&nbsp;[[#form-tab1|Metadata (general)]]</li>
+
<li> <div style="float:left;">[[File:Text-x-generic with pencil.svg|x22px|link=]]</div>[[#form-tab1|Metadata (general)]]</li>
<li> [[File:Text-x-generic with pencil.svg|x22px|link=]]&nbsp;[[#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>
 
<div style="clear:both;"></div>
 
<div style="clear:both;"></div>

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

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");
      }
    });
  }
}