|
|
سطر ١: |
سطر ١: |
| /* تحميل صندوق أدوات التحرير وصندوق البحث */
| | {{Infobox|child={{{child|{{{embed|}}}}}} |
| if ($.inArray(mw.config.get('wgAction'), ['edit' , 'submit']) !== -1) {
| | | bodyclass = biography vcard |
| importScript('Mediawiki:Edittools.js');
| |
| importScript('Mediawiki:CustomizedEditTool.js');
| |
| } else if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Watchlist' ) { | |
| importScript( 'MediaWiki:Common.js/watchlist.js' );
| |
| } else if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Upload' ) {
| |
| importScript('Mediawiki:Upload-description.js');
| |
| }
| |
|
| |
|
| /*إضافات عامة*/
| | | above = {{Br separated entries |
| /**
| | | 1 = {{#if:{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix|{{{pre-nominals|}}}}}}}}}}}}|<div class="honorific-prefix" style="font-size: 77%; font-weight: normal; display:inline;">{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix|{{{pre-nominals|}}}}}}}}}}}}</div>}} |
| * Collapsible tables; reimplemented with mw-collapsible
| | | 2 = <div class="fn" style="display:inline">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}</div> |
| * Styling is also in place to avoid FOUC
| | | 3 = {{#if:{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix|{{{post-nominals|}}}}}}}}}}}}|<div class="honorific-suffix" style="font-size: 77%; font-weight: normal; display:inline;">{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix|{{{post-nominals|}}}}}}}}}}}}</div>}} |
| *
| | }} |
| * Allows tables to be collapsed, showing only the header. See [[Help:Collapsing]].
| | | abovestyle = {{{abovestyle|}}} |
| * @version 3.0.0 (2018-05-20)
| |
| * @source https://www.mediawiki.org/wiki/MediaWiki:Gadget-collapsibleTables.js
| |
| * @author [[User:R. Koot]]
| |
| * @author [[User:Krinkle]]
| |
| * @author [[User:TheDJ]]
| |
| * @deprecated Since MediaWiki 1.20: Use class="mw-collapsible" instead which
| |
| * is supported in MediaWiki core. Shimmable since MediaWiki 1.32
| |
| *
| |
| * @param {jQuery} $content
| |
| */
| |
| function makeCollapsibleMwCollapsible( $content ) {
| |
| console.log('[Collapsible]', 'Start makeCollapsibleMwCollapsible !!');
| |
| var $tables = $content
| |
| .find( 'table.collapsible:not(.mw-collapsible)' )
| |
| .addClass( 'mw-collapsible' );
| |
|
| |
|
| $.each( $tables, function ( index, table ) {
| | | subheaderstyle = font-size:125%; font-weight:bold; |
| // mw.log.warn( 'This page is using the deprecated class collapsible. Please replace it with mw-collapsible.');
| | | subheader = {{#switch:{{{child|{{{embed|}}}}}}|yes=<!--empty when this infobox is embedded-->|#default={{#if:{{{native_name|}}}|<div class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</div>}} }} |
| if ( $( table ).hasClass( 'collapsed' ) ) {
| |
| $( table ).addClass( 'mw-collapsed' );
| |
| // mw.log.warn( 'This page is using the deprecated class collapsed. Please replace it with mw-collapsed.');
| |
| }
| |
| } );
| |
| if ( $tables.length > 0 ) {
| |
| mw.loader.using( 'jquery.makeCollapsible' ).then( function () {
| |
| $tables.makeCollapsible();
| |
| } );
| |
| } else console.log('[Collapsible]', 'tables.length <= 0 !!');
| |
| }
| |
| mw.hook( 'wikipage.content' ).add( makeCollapsibleMwCollapsible );
| |
|
| |
|
| /**
| | | image = {{#if:{{{image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|300|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}}x200px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}|[http://page.wikitia.com/request-for-adding-a-photo-video/?ref={{PAGENAMEE}} Add a Photo]}} |
| * Add support to mw-collapsible for autocollapse, innercollapse and outercollapse
| | | caption = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}} |
| *
| |
| * Maintainers: TheDJ
| |
| */
| |
| function mwCollapsibleSetup( $collapsibleContent ) {
| |
| console.log('[Collapsible]', 'Start mwCollapsibleSetup !!');
| |
| var $element,
| |
| $toggle,
| |
| autoCollapseThreshold = 2;
| |
| $.each( $collapsibleContent, function ( index, element ) {
| |
| $element = $( element );
| |
| if ( $element.hasClass( 'collapsible' ) ) {
| |
| $element.find( 'tr:first > th:first' ).prepend( $element.find( 'tr:first > * > .mw-collapsible-toggle' ) );
| |
| }
| |
| if ( $collapsibleContent.length >= autoCollapseThreshold && $element.hasClass( 'autocollapse' ) ) {
| |
| $element.data( 'mw-collapsible' ).collapse();
| |
| } else if ( $element.hasClass( 'innercollapse' ) ) {
| |
| if ( $element.parents( '.outercollapse' ).length > 0 ) {
| |
| $element.data( 'mw-collapsible' ).collapse();
| |
| }
| |
| }
| |
| // because of colored backgrounds, style the link in the text color
| |
| // to ensure accessible contrast
| |
| $toggle = $element.find( '.mw-collapsible-toggle' );
| |
| if ( $toggle.length ) {
| |
| // Make the toggle inherit text color
| |
| if ( $toggle.parent()[ 0 ].style.color ) {
| |
| $toggle.find( 'a' ).css( 'color', 'inherit' );
| |
| }
| |
| }
| |
| } );
| |
| }
| |
|
| |
|
| mw.hook( 'wikipage.collapsibleContent' ).add( mwCollapsibleSetup );
| | | label2 = Pronunciation |
| | | data2 = {{{pronunciation|}}} |
|
| |
|
| | | label10 = Born |
| | | data10 = {{Br separated entries|1={{#if:{{{birth_name|{{{birthname|}}}}}}|<div style="display:inline" class="nickname">{{{birth_name|{{{birthname|}}}}}}</div>}}|2={{{birth_date|}}}|3={{#if:{{{birth_place|}}}|<div style="display:inline" class="birthplace">{{{birth_place|}}}</div>}}}} |
|
| |
|
| /**/
| | | label11 = Bapti{{#if:{{{baptized|}}}|z|s}}ed |
| if ( $.inArray( mw.config.get( 'wgPageName' ), [ "ويكيبيديا:طلبات_صلاحيات/إعطاء", | | | data11 = {{#if:{{{birth_date|}}}||{{{baptized|{{{baptised|}}}}}}}} |
| "ويكيبيديا:طلبات_صلاحيات/إزالة",
| |
| "ويكيبيديا:إخطار_الإداريين/حماية/الحالية",
| |
| "ويكيبيديا:إخطار_الإداريين/إزالة_حماية/الحالية",
| |
| "ويكيبيديا:إخطار_الإداريين/منع/الحالية",
| |
| "ويكيبيديا:إخطار_الإداريين/إزالة_منع/الحالية",
| |
| "ويكيبيديا:إخطار_الإداريين/استرجاع/الحالية",
| |
| "ويكيبيديا:طلبات_النقل/الحالية"
| |
| ] ) !== -1 ) {
| |
| if ($.inArray("editor", mw.config.get( 'wgUserGroups' )) == -1) {
| |
| mw.loader.using(['mediawiki.util']).then(function() {
| |
| mw.util.addCSS(" .mw-summary { display:none !important;}");
| |
| });
| |
| }
| |
| } | |
|
| |
|
| | | label12 = Disappeared |
| | | data12 = {{Br separated entries|1={{{disappeared_date|}}}|2={{{disappeared_place|}}}}} |
|
| |
|
| /*<a class="autolink" href="/wiki/قالب:قائمة أفقية">[[قالب:قائمة أفقية]]</a>*/
| | | label13 = Status |
| var arrowimages={down:["downarrowclass","//upload.wikimedia.org/wikipedia/commons/f/f1/MediaWiki_Vector_skin_action_arrow.svg",10],left:["leftarrowclass","//upload.wikimedia.org/wikipedia/commons/8/8e/MediaWiki_Vector_skin_left_arrow.svg"]};var jqueryslidemenu={animateduration:{over:300,out:300},buildmenu:function(e,t){jQuery(document).ready(function(n){var r=n("#"+e+">ul");var i=r.find("ul").parent();i.each(function(e){var r=n(this);var i=n(this).find("ul:eq(0)");this._dimensions={w:this.offsetWidth,h:this.offsetHeight,subulw:i.outerWidth(),subulh:i.outerHeight()};this.istopheader=r.parents("ul").length==1?true:false;i.css({top:this.istopheader?this._dimensions.h+"px":0});r.children("a:eq(0)").css(this.istopheader?{paddingLeft:t.down[2]}:{}).append('<img src="'+(this.istopheader?t.down[1]:t.left[1])+'" class="'+(this.istopheader?t.down[0]:t.left[0])+'" style="border:0;" />');r.hover(function(e){var t=n(this).children("ul:eq(0)");this._offsets={right:n(this).offset().right,top:n(this).offset().top};var r=this.istopheader?0:this._dimensions.w;r=this._offsets.right+r+this._dimensions.subulw>n(window).width()?this.istopheader?-this._dimensions.subulw+this._dimensions.w:-this._dimensions.w:r;if(t.queue().length<=1){t.css({right:r+"px",width:this._dimensions.subulw+"px"}).slideDown(jqueryslidemenu.animateduration.over)}},function(e){var t=n(this).children("ul:eq(0)");t.slideUp(jqueryslidemenu.animateduration.out)});r.click(function(){n(this).children("ul:eq(0)").hide()})});r.find("ul").css({display:"none",visibility:"visible"})})}};jqueryslidemenu.buildmenu("myslidemenu",arrowimages)
| | | data13 = {{{status|{{{disappeared_status|}}}}}} |
|
| |
|
| /* Any JavaScript here will be loaded for all users on every page load. */
| | | label14 = Died |
| // سكربت تجريبي لإضافة التوقيع تلقائياً عند نسيانه
| | | data14 = {{Br separated entries|1={{{death_date|}}}|2={{#if:{{{death_place|}}}|<div style="display:inline" class="deathplace">{{{death_place|}}}</div>}}}} |
| //التأكد أن عدد تعديلات المستخدم أقل من 1000 تعديل|، وأنه يحرر في نطاق نقاش المستخدم
| |
| if ((mw.config.get( 'wgNamespaceNumber' ) % 2) == 1 && mw.config.get( 'wgUserEditCount' ) < 1000 && $('#wpTextbox1').length > 0) {
| |
| var content = $('#wpTextbox1').val().trim(); // نص التعديل
| |
|
| |
| if ((content.endsWith("ع م)"))){
| |
| $('#wpSave').click(function() {
| |
| if ((!content.endsWith("\~\~\~") && (!content.endsWith("ع م)")))){
| |
| $('#wpTextbox1').val($('#wpTextbox1').val().trim() + "--\~\~\~\~"); //إضافة التوقيع
| |
| }
| |
| });
| |
| }
| |
| else if ($("h1#firstHeading").text().includes ("إنشاء ")){
| |
| $('#wpSave').click(function() {
| |
| if ((!content.endsWith("\~\~\~"))){
| |
| $('#wpTextbox1').val($('#wpTextbox1').val() + ".--\~\~\~\~"); //إضافة التوقيع
| |
| }
| |
| });
| |
| }
| |
| } | |
|
| |
|
| |
|
| | | label15 = Cause of death |
| | | data15 = {{{death cause|{{{death_cause|}}}}}} |
|
| |
|
| /* قالب:تبديل محتوى */
| | | label16 = Body discovered |
| | | data16 = {{{body discovered|{{{body_discovered|}}}}}} |
|
| |
|
| importScript("MediaWiki:LoadingContent.js"); // يتم تحميل المحتوى المعروض على الشاشة بشكل ديناميكي
| | | label17 = {{#if:{{{burial_place|}}}|Burial place|Resting place}} |
| | | data17 = {{#if:{{{burial_place|}}}|{{Br separated entries|1={{{burial_place|}}}|2={{{burial_coordinates|}}}}}|{{Br separated entries|1={{{resting place|{{{resting_place|{{{restingplace|}}}}}}}}}|2={{{resting place coordinates|{{{resting_place_coordinates|{{{restingplacecoordinates|}}}}}}}}}}}}} |
| | | class17 = label |
|
| |
|
| /* <a class="autolink" href="/wiki/قالب:ص.م/موقع جغرافي متعدد">[[قالب:ص.م/موقع جغرافي متعدد]]</a> */
| | | label18 = Monuments |
| if ($.inArray(mw.config.get( 'wgAction' ), [ "view", "purge", "submit" ]) !== -1) {
| | | data18 = {{{monuments|}}} |
| $(GeoBox_Init)
| |
| }
| |
| function GeoBox_Init(Element) {
| |
| if (!Element) {
| |
| Element = document.body
| |
| }
| |
| var cont = document.getElementsByTagName("div");
| |
| if (cont.length == 0) {
| |
| return
| |
| }
| |
| for (var i = 0, ii = 0, m = cont.length; i < m; i++) {
| |
| if (!$(cont[i]).hasClass("img_toogle")) {
| |
| continue
| |
| } else {
| |
| ii++
| |
| }
| |
| cont[i].id = "img_toogle_" + ii;
| |
| // FIXME
| |
| var Boxes = cont[i].getElementsByClassName("geobox");
| |
| var ToggleLinksDiv = document.createElement("ul");
| |
| ToggleLinksDiv.id = "geoboxToggleLinks_" + ii;
| |
| for (var a = 0, l = Boxes.length; a < l; a++) {
| |
| var ThisBox = Boxes[a];
| |
| ThisBox.id = "geobox_" + ii + "_" + a;
| |
| ThisBox.style.borderTop = "0";
| |
| var ThisImg = ThisBox.getElementsByTagName("img")[0];
| |
| var ThisAlt = ThisAlt ? ThisAlt.alt : '';
| |
| var toggle = document.createElement("a");
| |
| toggle.id = "geoboxToggle_" + ii + "_" + a;
| |
| toggle.appendChild(document.createTextNode(ThisAlt));
| |
| toggle.href = "javascript:;";
| |
| toggle.onclick = function () {
| |
| GeoBox_Toggle(this);
| |
| return false
| |
| };
| |
| var Li = document.createElement("li");
| |
| Li.appendChild(toggle);
| |
| ToggleLinksDiv.appendChild(Li);
| |
| if (a == (l - 1)) {
| |
| Li.style.display = "none"
| |
| } else {
| |
| ThisBox.style.display = "none"
| |
| }
| |
| }
| |
| cont[i].appendChild(ToggleLinksDiv)
| |
| }
| |
| }
| |
| function GeoBox_Toggle(link) {
| |
| var ImgToggleIndex = link.id.split("geoboxToggle_").join("").replace(/_.*/g, "");
| |
| var GeoBoxIndex = link.id.replace(/.*_/g, "");
| |
| var ImageToggle = document.getElementById("img_toogle_" + ImgToggleIndex);
| |
| var Links = document.getElementById("geoboxToggleLinks_" + ImgToggleIndex);
| |
| var Geobox = document.getElementById("geobox_" + ImgToggleIndex + "_" + GeoBoxIndex);
| |
| var Link = document.getElementById("geoboxToggle_" + ImgToggleIndex + "_" + GeoBoxIndex);
| |
| if ((!ImageToggle) || (!Links) || (!Geobox) || (!Link)) {
| |
| return
| |
| }
| |
| // FIXME
| |
| var AllGeoboxes = ImageToggle.getElementsByClassName("geobox");
| |
| for (var a = 0, l = AllGeoboxes.length; a < l; a++) {
| |
| if (AllGeoboxes[a] == Geobox) {
| |
| AllGeoboxes[a].style.display = ""
| |
| } else {
| |
| AllGeoboxes[a].style.display = "none"
| |
| }
| |
| }
| |
| var AllToggleLinks = Links.getElementsByTagName("a");
| |
| for (var a = 0, l = AllToggleLinks.length; a < l; a++) {
| |
| if (AllToggleLinks[a] == Link) {
| |
| AllToggleLinks[a].parentNode.style.display = "none"
| |
| } else {
| |
| AllToggleLinks[a].parentNode.style.display = ""
| |
| }
| |
| }
| |
| } | |
|
| |
|
| /* وصلة القائمة الكاملة تحت وصلات لغات الصفحة الرئيسية */
| | | label19 = Residence |
| if (mw.config.get('wgIsMainPage')) { | | | data19 = {{{residence|}}} |
| mw.loader.using(['mediawiki.util']).then(function() {
| | | class19 = {{#if:{{{death_date|}}}{{{death_place|}}}||label}} |
| mw.util.addPortletLink('p-lang', '//meta.wikimedia.org/w/index.php?title=List_of_Wikipedias/ar&uselang=ar', 'القائمة الكاملة', 'interwiki-completelist', 'قائمة الويكيبيديات الكاملة');
| | --> |
| var nstab = document.getElementById('ca-nstab-main');
| | | label20 = Nationality |
| if (nstab && mw.config.get('wgUserLanguage') === 'ar') {
| | | data20 = {{{nationality|}}} |
| while (nstab.firstChild) {
| | | class20 = category |
| nstab = nstab.firstChild
| |
| }
| |
| nstab.nodeValue = 'الصفحة الرئيسية'
| |
| }
| |
| })
| |
| }
| |
|
| |
|
| /* ويكي ميني أطلس */
| | | label21 = Other names |
| mw.loader.load('https://meta.wikimedia.org/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript');
| | | data21 = {{{other names|{{{other_names|{{{othername|{{{nickname|{{{alias|}}}}}}}}}}}}}}} |
| | | class21 = nickname |
|
| |
|
| /* <a class="autolink" href="/wiki/قالب:عنصر مخفي">[[قالب:عنصر مخفي]]</a> */
| | | label22 = Siglum |
| importScript('Mediawiki:EnhancedCollapsibleElements.js');
| | | data22 = {{{siglum|}}} |
|
| |
|
| /* تحميل سكربت الدردشة الحية */
| | | label23 = Citizenship |
| if (mw.config.get('wgPageName') === 'ويكيبيديا:قناة_الدردشة/حي') {
| | | data23 = {{{citizenship|}}} |
| importScript('Mediawiki:IRC.js');
| | | class23 = category |
| }
| |
|
| |
|
| /* كود يعمل مع بوابة المشاركة */
| | | label24 = Education |
| if (mw.config.get('wgPageName') === 'ويكيبيديا:بوابة_المشاركة/قاعة_الشاي/أسئلة') {
| | | data24 = {{{education|}}} |
| importScript('MediaWiki:Gadget-teahouse.js');
| |
| importStylesheet('MediaWiki:Gadget-teahouse.css');
| |
| } | |
|
| |
|
| /* <a class="autolink" href="/wiki/قالب:اسم مستخدم">[[قالب:اسم مستخدم]]</a> */
| | | label25 = Alma mater |
| function UsernameReplace() {
| | | data25 = {{{alma mater|{{{alma_mater|}}}}}} |
| if(window.disableUsernameReplace || mw.config.get('wgUserName') == null) return;
| |
| var un = $('span.insertusername');
| |
| for (var i=0;i<un.length;i++) {
| |
| var d = 0;
| |
| for(var j=0;j<un[i].childNodes.length;j++) {
| |
| if(un[i].childNodes[j].nodeType == 3 && d < 1) {
| |
| //find first text node and replace;
| |
| un[i].childNodes[j].nodeValue = mw.config.get('wgUserName');
| |
| d++;
| |
| }
| |
| }
| |
| }
| |
| } | |
| $(UsernameReplace);
| |
|
| |
|
| /* تعريب كلمة تحويل بالإنجليزية المدرجة في شريط أدوات التحرير
| | | label26 = Occupation |
| ** <a class="autolink" href="/wiki/phab:T26114">[[phab:T26114]]</a> */
| | | data26 = {{{occupation|}}} |
| (function () {
| | | class26 = role |
| var editor = mw.config.get('wgWikiEditorEnabledModules');
| |
| if (editor && editor.toolbar) {
| |
| $('#wpTextbox1').on('wikiEditor-toolbar-buildSection-advanced', function (event, section) {
| |
| try {
| |
| section.groups.insert.tools.redirect.action.options.pre = '#تحويل [[';
| |
| } catch (e) {
| |
| // Woopsie, die without a notice
| |
| }
| |
| });
| |
| }
| |
| })();
| |
|
| |
|
| /**
| | | label27 = Years active |
| * Redirect User:Name/skin.js and skin.css to the current skin's pages
| | | data27 = {{{years active|{{{years_active|{{{yearsactive|}}}}}}}}} |
| * (unless the 'skin' page really exists).
| |
| *
| |
| * Dependencies: mediawiki.util
| |
| *
| |
| * @source https://www.mediawiki.org/wiki/Snippets/Redirect_skin.js
| |
| * @revision 2016-04-13
| |
| */
| |
| if ( mw.config.get( 'wgArticleId' ) === 0 && mw.config.get( 'wgNamespaceNumber' ) === 2 ) {
| |
| mw.loader.using( 'mediawiki.util', function () {
| |
| var titleParts = mw.config.get( 'wgPageName' ).split( '/' );
| |
| // Make sure there was a part before and after the slash
| |
| // And that the latter is 'skin.js' or 'skin.css'
| |
| if ( titleParts.length == 2 ) {
| |
| var userSkinPage = titleParts[0] + '/' + mw.config.get( 'skin' );
| |
| if ( titleParts[1] === 'skin.js' ) {
| |
| location.href = mw.util.getUrl( userSkinPage + '.js' );
| |
| } else if ( titleParts[1] === 'skin.css' ) {
| |
| location.href = mw.util.getUrl( userSkinPage + '.css' );
| |
| }
| |
| }
| |
| } );
| |
| } | |
|
| |
|
| /* <a class="autolink" href="/wiki/قالب:مب">[[قالب:مب]]</a>
| | | label28 = Era |
| /**
| | | data28 = {{{era|}}} |
| * @source https://www.mediawiki.org/wiki/Snippets/Load_JS_and_CSS_by_URL
| | | class28 = category |
| * @revision 2017-05-16
| |
| */
| |
| mw.loader.using( ['mediawiki.util'], function () {
| |
| var extraCSS = mw.util.getParamValue( 'withCSS' ),
| |
| extraJS = mw.util.getParamValue( 'withJS' );
| |
|
| |
|
| if ( extraCSS ) {
| | | label29 = Employer |
| // WARNING: DO NOT REMOVE THIS "IF" - REQUIRED FOR SECURITY (against XSS/CSRF attacks)
| | | data29 = {{{employer|}}} |
| if ( /^MediaWiki:[^&<>=%#]*\.css$/.test( extraCSS ) ) {
| | | class29 = org |
| mw.loader.load( '/w/index.php?title=' + encodeURIComponent( extraCSS ) + '&action=raw&ctype=text/css', 'text/css' );
| |
| } else {
| |
| mw.notify( 'Only pages from the MediaWiki namespace are allowed.', { title: 'Invalid withCSS value' } );
| |
| }
| |
| }
| |
|
| |
|
| if ( extraJS ) {
| | | label30 = {{#if:{{{organisation|}}}|Organisation|Organization}} |
| // WARNING: DO NOT REMOVE THIS "IF" - REQUIRED FOR SECURITY (against XSS/CSRF attacks)
| | | data30 = {{{organisation|{{{organization|{{{organizations|}}}}}}}}} |
| if ( /^MediaWiki:[^&<>=%#]*\.js$/.test( extraJS ) ) {
| | | class30 = org |
| mw.loader.load( '/w/index.php?title=' + encodeURIComponent( extraJS ) + '&action=raw&ctype=text/javascript' );
| |
| } else {
| |
| mw.notify( 'Only pages from the MediaWiki namespace are allowed.', { title: 'Invalid withJS value' } );
| |
| }
| |
| }
| |
| });
| |
|
| |
|
| /* Enable nulledit=true with <a class="autolink" href="/wiki/User:Splarka/nulledit.js">[[User:Splarka/nulledit.js]]</a> */
| | | label31 = Agent |
| if (mw.config.get("wgAction") === "edit" && mw.util.getParamValue("nulledit") === "true") {
| | | data31 = {{{agent|}}} |
| $(function() {
| | | class31 = agent |
| document.getElementById("wpSave").click();
| |
| });
| |
| }
| |
|
| |
|
| //Help Abuse Filter to tag Recreated Pages which have delete log
| | | label32 = Known for |
| $(function () {
| | | data32 = {{{known for|{{{known_for|{{{known|}}}}}}}}} |
| if ($.inArray(mw.config.get('wgAction'), ['edit', 'submit']) !== -1 && $('.mw-warning-with-logexcerpt .mw-logline-delete').length !== 0) {
| |
| $('#editform input[type=submit]').click(function () { $('#wpSummary').val($('#wpSummary').val() + ""); });
| |
| }
| |
| }); | |
|
| |
|
| //وسم صفحات النقاش اليتيمة
| | | label33 = <div style="white-space:nowrap;">{{#if:{{{works|}}}|Works|{{#if:{{{credits|}}}|Notable credit(s)|{{#if:{{{label_name|}}}|Label(s)|Notable work}}}}}}</div> |
| //يعمل هذا السكربت بالتوازي مع مرشح رقم 80
| | | data33 = {{#if:{{{works|}}}|{{{works|}}}|{{#if:{{{credits|}}}|{{{credits}}}|{{#if:{{{label_name|}}}|{{{label_name}}}|{{{notable works|{{{notable_works|}}}}}}}}}}}} |
| //يفحص إذا لم يكن هناك صفحة رئيسية لصفحة النقاش
| |
| //ويتحقق أن الصفحة في النظاق الرئيسي
| |
| //يعمل السكربت فقط في حال كانت صفحة النقاش لصفحة غير موجودة
| |
| if (mw.config.get( 'wgNamespaceNumber' ) == 1
| |
| && mw.config.get( 'wgArticleId' ) ==0
| |
| && $("li#ca-nstab-main").hasClass ("new")){
| |
| $('#editform input[type=submit]').click(function () {
| |
| $('#wpSummary').val("وسم صفحات النقاش اليتيمة");
| |
| });
| |
| } | |
|
| |
|
| // منع أوسمة ويكي الحب العشوائية
| | | label34 = Style |
| if (typeof mw.config.get('wgUserRegistration') !== "undefined"){
| | | data34 = {{{style|}}} |
| if (mw.config.get('wgUserEditCount') < 150 && mw.config.get('wgUserRegistration') < 2592000) $("div.vectorTabs li#ca-wikilove").css("display","none");
| | | class34 = category |
| }
| |
|
| |
|
| //سكربت لتوقيع الرسائل غير الموقع للجدد
| | | label39 = Net worth |
| importScript('Mediawiki:Common.js/sign.js');
| | | data39 = {{{net worth|{{{net_worth|{{{networth|}}}}}}}}} |
|
| |
|
| /**
| | | label40 = Height |
| *سكربت مساعد لكشف إنشاء صفحات لمستخدمين غير مسجلين
| | | data40 = {{#if:{{{height_m|{{{height_cm|}}}}}}{{{height_ft|}}}{{{height_in|}}} | {{convinfobox|{{{height_m|{{{height_cm|}}}}}}|{{#if:{{{height_m|}}}|m|cm}}|{{{height_ft|}}}|ft|{{{height_in|}}}|in}}}}{{#if:{{{height|}}} | {{infobox person/height|{{{height|}}}}}}} |
| * يعمل السكربت بالتوازي مع مرشح رقم 149
| |
| * مثال
| |
| * <a class="autolink" href="/wiki/خاص:وصلة دائمة/27683606">[[خاص:وصلة دائمة/27683606]]</a>
| |
| */
| |
| if ( $('.mw-userpage-userdoesnotexist')[0] | |
| && (mw.config.get('wgNamespaceNumber') == 2 || mw.config.get('wgNamespaceNumber') == 3) ) {
| |
| $('#wpSave').click(function () {
| |
| $('#wpSummary').val($('#wpSummary').val() + " " + "صفحة مستخدم غير مسجل");
| |
| });
| |
| } | |
|
| |
|
| | | label42 = Television |
| | | data42 = {{{television|}}} |
|
| |
|
| if (Array.prototype.includes) { | | | label43 = {{#if:{{{office|}}}|Office|Title}} |
| | | data43 = {{{office|{{{title|}}}}}} |
| | | class43 = title |
|
| |
|
| /**
| | | label44 = Term |
| * لإخفاء رسالة التحذير التي تظهر عند تعديل صفحة بها
| | | data44 = {{{term|}}} |
| * تعديلات معلقة فقط للمحررين والمراجعين تلقائيا
| |
| */
| |
|
| |
| //التحقق إذا ما كان المستخدم يملك صلاحية محرر أو مراجع تلقائي
| |
| if (mw.config.get('wgUserGroups').includes ("editor")
| |
| ||
| |
| mw.config.get('wgUserGroups').includes ("autoreview")){ | |
| //إخفاء الرسالة
| |
| $(".flaggedrevs_editnotice").find (".حذف").hide();
| |
| } | |
|
| |
|
| /*
| | | label45 = Predecessor |
| *سكربت تجريبي لتتبع المساهمات
| | | data45 = {{{predecessor|}}} |
| *المنسوخة من مواقع أخرى
| |
| *ثم يقوم بوضع ملخص التعديل نسخ محتمل
| |
| */
| |
| if (!mw.config.get('wgUserGroups').includes ("editor")
| |
| &&
| |
| !mw.config.get('wgUserGroups').includes ("autoreview")
| |
| && | |
| mw.config.get('wgNamespaceNumber') === 0){
| |
| $("#wpTextbox1").one('paste', function(e) {
| |
| var pastedText = e.originalEvent.clipboardData.getData('text');
| |
| if (pastedText.length > 100 && !pastedText.includes ("[[") && !pastedText.includes ("{{") && !pastedText.includes ("http")){
| |
| $('#wpSave').click(function () {
| |
| $('#wpSummary').val($('#wpSummary').val()+" نسخ محتمل");
| |
| });
| |
| }
| |
| });
| |
| } | |
|
| |
|
| } | | | label46 = Successor |
| | | data46 = {{{successor|}}} |
|
| |
|
| // إظهار تبصرات تحرير أثناء تعديل: مقالات الأشخاص الأحياء، والمحتوى المتميز، وصفحات التوضيح
| | | label47 = Political party |
| importScript('MediaWiki:Defaulteditnotices.js');
| | | data47 = {{{party|}}} |
| | | class47 = org |
|
| |
|
| | | label48 = Movement |
| | | data48 = {{{movement|}}} |
| | | class48 = category |
|
| |
|
| // Can be removed when https://global-search.toolforge.org/?q=mwCustomEditButtons®ex=1&namespaces=&title= returns no results for wiki
| | | label49 = <span class="nowrap">Opponent(s)</span> |
| window.mwCustomEditButtons = [];
| | | data49 = {{{opponents|}}} |
|
| |
|
| function updateUserScriptWarning( msg, newMsg ) {
| | | label50 = Board member of |
| return function () {
| | | data50 = {{{boards|}}} |
| var userScript = '/wiki/Special:MyPage/' + mw.config.get('skin') + '.js';
| |
| var commonScript = '/wiki/Special:MyPage/common.js';
| |
| mw.notify(
| |
| $('<div>').html(
| |
| // please translate
| |
| 'One of the scripts you are running is broken and using a deprecated function <strong>' + msg + '</strong>. Please check your gadgets, <a href="' + userScript + '">skin scripts</a> and <a href="' + commonScript + '">user scripts</a>, to update the reference to' + newMsg + '.'
| |
| ),
| |
| { type: 'error' }
| |
| );
| |
| };
| |
| } | |
|
| |
|
| // Can be removed when https://global-search.toolforge.org/?q=%5B%5E%5C.%5DaddPortletLink®ex=1&namespaces=&title= returns zero ar.wikipedia results.
| | | label51 = Criminal charge(s) |
| window.addPortletLink = updateUserScriptWarning('addPortletLink', 'mw.util.addPortletLink');
| | | data51 = {{{criminal_charges|{{{criminal charge|{{{criminal_charge|}}}}}}}}} |
| // Can be removed when https://global-search.toolforge.org/?q=importScriptimportScriptURI®ex=1&namespaces=&title= returns zero ar.wikipedia results.
| |
|
| |
|
| window.importScriptimportScriptURI = updateUserScriptWarning('importScriptimportScriptURI', 'importScriptURI' );
| | | label52 = Criminal penalty |
| | | data52 = {{{criminal penalty|{{{criminal_penalty|}}}}}} |
| | |
| | | label53 = {{#if:{{{judicial status|{{{judicial_status|}}}}}}|Judicial status|Criminal status}} |
| | | data53 = {{#if:{{{judicial status|{{{judicial_status|}}}}}} | {{{judicial status|{{{judicial_status}}}}}} | {{{criminal status|{{{criminal_status|}}}}}}}} |
| | | class53 = category |
| | |
| | | label54 = <span class="nowrap">Spouse(s)</span> |
| | | data54 = {{{spouse|{{{spouses|{{{spouse(s)|}}}}}}}}} |
| | |
| | | label55 = <span class="nowrap">Partner(s)</span> |
| | | data55 = {{{partner|{{{domesticpartner|{{{domestic_partner|{{{partners|{{{partner(s)|}}}}}}}}}}}}}}} |
| | |
| | | label56 = Children |
| | | data56 = {{{children|}}} |
| | |
| | | label57 = Parent{{#if:{{{parents|}}}|(s)|{{#if:{{{father|}}}|{{#if:{{{mother|}}}|s|(s)}}|(s)}}}} |
| | | data57 = {{#if:{{{parents|}}}|{{{parents}}}|{{Unbulleted list|{{#if:{{{father|}}}|{{{father}}} (father)}}|{{#if:{{{mother|}}}|{{{mother}}} (mother)}}}}}} |
| | |
| | | label58 = Relatives |
| | | data58 = {{{relations|{{{relatives|}}}}}} |
| | |
| | | label59 = Family |
| | | data59 = {{{family|}}} |
| | |
| | | label60 = Call sign |
| | | data60 = {{{callsign|}}} |
| | |
| | | label61 = Awards |
| | | data61 = {{{awards|}}} |
| | |
| | | label62 = {{#if:{{{honours|}}}|Honours|Honors}} |
| | | data62 = {{{honours|{{{honors|}}}}}} |
| | |
| | | data64 = {{{misc|{{{module|}}}}}} |
| | | data65 = {{{misc2|{{{module2|}}}}}} |
| | | data66 = {{{misc3|{{{module3|}}}}}} |
| | | data67 = {{{misc4|{{{module4|}}}}}} |
| | | data68 = {{{misc5|{{{module5|}}}}}} |
| | | data69 = {{{misc6|{{{module6|}}}}}} |
| | |
| | | label70 = Website |
| | | data70 = {{{website|{{{homepage|{{{URL|{{{url|}}}}}}}}}}}} |
| | |
| | | header71 = {{#if:{{{signature|}}}|Signature}} |
| | | data72 = {{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size={{{signature_size|}}}|sizedefault=150px|alt={{{signature alt|{{{signature_alt|}}}}}}}} |
| | |
| | | header73 = {{#if:{{{footnotes|}}}|Notes}} |
| | | data74 = {{#if:{{{footnotes|}}}|<div style="text-align: left;">{{{footnotes}}}</div>}} |
| | |
| | }}<!-- |
| | -->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox person with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview = Page using [[Template:Infobox person]] with unknown parameter "_VALUE_"|ignoreblank=y |
| | | abovestyle | agent | alias | alma mater | alma_mater | alt | awards | baptised | baptized | birth_date | birth_name | birth_place | birthname | boards | body discovered | body_discovered | burial_coordinates | burial_place | callsign | caption | child | children | citizenship | credits | criminal charge | criminal penalty | criminal status | criminal_charge | criminal_charges | criminal_penalty | criminal_status | death cause | death_cause | death_date | death_place | disappeared_date | disappeared_place | disappeared_status | domestic_partner | domesticpartner | education | embed | employer | era | family | father | footnotes | height | height_cm | height_ft | height_in | height_m | homepage | honorific prefix | honorific suffix | honorific_prefix | honorific_suffix | honorific-prefix | honorific-suffix | honors | honours | image | image caption | image size | image_caption | image_size | image_upright | imagesize | judicial status | judicial_status | known | known for | known_for | label_name | landscape | misc | misc2 | misc3 | misc4 | misc5 | misc6 | module | module2 | module3 | module4 | module5 | module6 | monuments | mother | movement | name | nationality | native_name | native_name_lang | net worth | net_worth | networth | nickname | nocat_wdimage | notable works | notable_works | occupation | office | opponents | organisation | organization | organizations | other names | other_names | othername | parents | partner | partner | partner(s) | party | predecessor | pre-nominals | post-nominals | pronunciation | relations | relatives | resting place | resting place coordinates | resting_place | resting_place_coordinates | restingplace | restingplacecoordinates | siglum | signature | signature alt | signature_alt | signature_size | spouse | spouses | spouse(s) | status | style | successor | television | term | title | URL | url | website | works | years active | years_active | yearsactive | home_town}}<!-- |
| | -->{{#invoke:Check for deprecated parameters|check |
| | |category=[[Category:Pages using Infobox person with deprecated parameter _VALUE_|_VALUE_]] |
| | |ignoreblank=yes |
| | | home_town = |
| | }}<!-- |
| | -->{{Main other| |
| | {{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}|[[Category:Infobox person using numbered parameter]]}}<!-- |
| | -->{{#if:{{{box_width|}}}|[[Category:Infobox person using boxwidth parameter]]}}<!-- |
| | -->{{#if:{{{death_date|}}}{{{death_place|}}}|{{#if:{{{net worth|{{{net_worth|{{{networth|}}}}}}}}}|[[Category:Infobox person using certain parameters when dead]]}}}}<!-- |
| | -->{{#if:{{{influences|}}}{{{influenced|}}}|[[Category:Infobox person using influence]]}}<!-- |
| | -->{{#if:{{{ethnicity|}}}|[[Category:Infobox person using ethnicity]]}}<!-- |
| | -->{{#if:{{{religion|}}}|[[Category:Infobox person using religion]]}}<!-- |
| | -->{{#if:{{{denomination|}}}|[[Category:Infobox person using denomination]]}}<!-- |
| | -->{{#if:{{{residence|}}}|[[Category:Infobox person using residence]]}}<!-- |
| | -->{{#if:{{{pronunciation|}}}|[[Category:Biography template using pronunciation]]}}<!-- |
| | -->{{#if:{{{signature|}}}|[[Category:Biography with signature]]}}<!-- |
| | -->[[Category:Articles with hCards]] |
| | }}<includeonly>{{#ifeq:{{{child|{{{embed|}}}}}}|yes||{{Wikidata image|1={{{image|}}}|2={{{nocat_wdimage|}}}}}}}</includeonly><noinclude> |
| | {{documentation}}</noinclude> |