|
|
(13 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | <languages />
| |
− | {{userprofileFAQ header}}
| |
− | <br clear="{{dir|{{pagelang}}|left|right}}" />
| |
− | {{shortcut|User Profile FAQ}}
| |
− | <translate>
| |
− | ==The basics== <!--T:1-->
| |
| | | |
− | ===What are the differences between Cetbix ISMS, Cetbix ISMS-R, Cetbix ISMS-F and Cetbix ISMS-ICS?=== <!--T:2-->
| |
− |
| |
− | <!--T:3-->
| |
− | all the listed products are built on the Cetbix ISMS. This means, one has to use the Cetbix ISMS to be able to activate those other modules.
| |
− |
| |
− | === I want to use a MediaWiki instance to (blank). Am I allowed to? === <!--T:4-->
| |
− |
| |
− | <!--T:5-->
| |
− | MediaWiki is free software: this means that you may use it for any purpose without legal hindrance.</translate>
| |
− | <translate>
| |
− | <!--T:6-->
| |
− | Furthermore, its licensing conditions apply solely to the software itself.</translate>
| |
− | <translate>
| |
− | <!--T:7-->
| |
− | This means that although many wikis license their content under a permissive license, you are not obliged to license the content submitted to your wiki in any particular way.</translate>
| |
− | <translate>
| |
− | <!--T:8-->
| |
− | Of course, as a project founded to support sites like Wikipedia, we encourage you to license the texts you write under a free license, but, in short, you are not required to.
| |
− |
| |
− | <!--T:9-->
| |
− | If you wish to alter or amend the software itself, in general, you are permitted to, but there are some restrictions and you should consult [http://www.gnu.org/licenses/old-licenses/gpl-2.0.html the full text of the GNU GPL version 2 for details].</translate>
| |
− | <translate>
| |
− | <!--T:10-->
| |
− | Because MediaWiki is provided free of charge, there is no warranty, to the extent permitted by applicable law.
| |
− | </translate>
| |
− | {{anchor|installation|Installation_and_configuration}}
| |
− | {{anchor|manual|manua}}
| |
− | <translate>
| |
| ==Installation and configuration== <!--T:11--> | | ==Installation and configuration== <!--T:11--> |
| | | |
| ===Where do I download Cetbix ISMS?=== <!--T:12--> | | ===Where do I download Cetbix ISMS?=== <!--T:12--> |
| | | |
− | <!--T:13-->
| |
| Cetbix ISMS is a Software as a Service, therefore, no software is downloaded. Just register, login and start using. | | Cetbix ISMS is a Software as a Service, therefore, no software is downloaded. Just register, login and start using. |
− | <!--T:14-->
| |
− |
| |
| | | |
| ===How to install Cetbix ISMS?=== <!--T:15--> | | ===How to install Cetbix ISMS?=== <!--T:15--> |
− | | + | No installation is required. All you need to do is to register. Registration takes 30 to 40 seconds. |
− | <!--T:16-->
| |
− | No installation is required. All you need to do is to register. Registration takes 30 to 40 seconds..</translate> | |
− | <translate>
| |
− | <!--T:17-->
| |
− | Minimum requirement is a computer and an internet access.
| |
| | | |
| ===How do I install Cetbix on Premises?=== <!--T:18--> | | ===How do I install Cetbix on Premises?=== <!--T:18--> |
Line 60: |
Line 18: |
| ===How do I edit my profile?=== <!--T:218--> | | ===How do I edit my profile?=== <!--T:218--> |
| | | |
− | <!--T:219--> | + | ====Edit Name==== <!--T:219--> |
− | On your profile, click on your name, click on edit and scroll down to "Company Logo" and upload your logo.
| + | |
| <!--T:220--> | | <!--T:220--> |
| + | On your profile, click on your name, click on edit and edit your name. |
| | | |
− | | + | ====Company Logo==== <!--T:221--> |
− | <translate>
| |
− | <!--T:221--> | |
− | On your profile, click on your name, click on edit and edit your name.
| |
| | | |
| <!--T:222--> | | <!--T:222--> |
− | On your profile, click on your name, click on edit and scroll down to "Company Logo" and upload your logo.
| |
− |
| |
− | ====Edit Name==== <!--T:223-->
| |
− |
| |
− | <!--T:224-->
| |
− | On your profile, click on your name, click on edit and edit your name.
| |
− |
| |
− | ====Company Logo==== <!--T:227-->
| |
− |
| |
− | <!--T:228-->
| |
| On your profile, click on your name, click on edit and scroll down to "Company Logo" and upload your logo. | | On your profile, click on your name, click on edit and scroll down to "Company Logo" and upload your logo. |
| | | |
Line 102: |
Line 48: |
| Log into your profile and click on Users->Add Users | | Log into your profile and click on Users->Add Users |
| | | |
− | ===How do I see all the users I have added?=== <!--T:237--> | + | ===Can I add or sync new user(s) from Active Directory?=== <!--T:237--> |
| + | |
| + | Log into your profile and click on Users->Add Users -> AD -> and follow the next steps. |
| + | |
| + | Click on the Menu API to see how it is done. |
| + | |
| + | |
| + | ===How do I see all the users I have added?=== <!--T:238--> |
| + | |
| + | Log into your profile and click on Users-> All Users |
| + | |
| + | ===How do I edit the users I have added?=== <!--T:238--> |
| + | |
| + | Log into your profile and click on Users-> All Users |
| + | Click on the edit icon to edit the user details |
| + | |
| + | ===How do I add an image to the users profile?=== <!--T:238--> |
| | | |
| Log into your profile and click on Users-> All Users | | Log into your profile and click on Users-> All Users |
| | | |
− | ===How do I add assign a user?=== <!--T:238--> | + | ===How do I upload user documents?=== <!--T:238--> |
| + | |
| Log into your profile and click on Users-> All Users | | Log into your profile and click on Users-> All Users |
| | | |
− | Now click on the green icon in front of the user you want to assign to a particular task, asset or location.
| + | ===How do I add assign a user?=== <!--T:239--> |
| + | *Log into your profile and click on Users-> All Users |
| | | |
− | A user can be assigned to an asset (or more assets), a location or locations.
| + | *Now click on the green icon in front of the user you want to assign to a particular task, asset or location. |
− |
| |
| | | |
− | ===How do I assign a user to a group?=== <!--T:239-->
| + | *A user can be assigned to an asset (or more assets), a location or locations. |
| | | |
− | ====Group 1==== <!--T:240--> | + | ===How do I assign a user to a group?=== <!--T:240--> |
| + | |
| + | ====Group 1==== <!--T:241--> |
| ...... | | ...... |
| | | |
− | ====Group 2==== <!--T:241--> | + | ====Group 2==== <!--T:242--> |
| ...... | | ...... |
− | ====Group 3==== <!--T:242--> | + | ====Group 3==== <!--T:243--> |
| ...... | | ...... |
− | ====Group 4==== <!--T:243--> | + | ====Group 4==== <!--T:244--> |
− | ====Location==== <!--T:244--> | + | ====Location==== <!--T:245--> |
| The location radio box is checked if you prefer to assign a user to a particular location. | | The location radio box is checked if you prefer to assign a user to a particular location. |
| | | |
− | ==Location== <!--T:245--> | + | ===How do I delete a user?=== <!--T:246--> |
| + | *Log into your profile and click on Users-> All Users |
| + | *Now click on the red (X) icon in front of the user you want to delete. |
| | | |
| + | ==Location== <!--T:247--> |
| | | |
− | ===How do I activate the multi-location function?=== <!--T:246--> | + | |
| + | ===How do I activate the multi-location function?=== <!--T:248--> |
| Under your profile, click on location -> Add New Plan | | Under your profile, click on location -> Add New Plan |
| | | |
| | | |
− | ===How do I add new location?=== <!--T:247--> | + | ===How do I add new location?=== <!--T:249--> |
| Under your profile, click on location ->Add New Location | | Under your profile, click on location ->Add New Location |
| | | |
| | | |
− | ===How do I see all the locations I have added? === <!--T:248--> | + | ===How do I see all the locations I have added? === <!--T:250--> |
| Under your profile, click on location ->All Location List | | Under your profile, click on location ->All Location List |
| | | |
− | ==Questionnaires== <!--T:249--> | + | ==Questionnaires== <!--T:251--> |
− | ===How do I set our entity questionnaires, if we do not want to use the default situation-awareness questionnaires?=== <!--T:250--> | + | ===How do I set our entity questionnaires, if we do not want to use the default situation-awareness questionnaires?=== <!--T:252--> |
− | ====Step 1 - Add a heading:==== <!--T:251--> | + | ====Step 1 - Add a heading:==== <!--T:253--> |
| | | |
| *Under your profile, click on Self assessment ->Add Heading and add a new heading. | | *Under your profile, click on Self assessment ->Add Heading and add a new heading. |
Line 151: |
Line 120: |
| *Check the "Active" box. | | *Check the "Active" box. |
| | | |
− | ====Step 2 - Add a question==== <!--T:252--> | + | ====Step 2 - Add a question==== <!--T:254--> |
| Click on "Questing Listing -> This will show you all your questions. | | Click on "Questing Listing -> This will show you all your questions. |
| | | |
| Now click on "Add" to add a new question. | | Now click on "Add" to add a new question. |
| | | |
− | ====Step 3 - Adding a question==== <!--T:253--> | + | ====Step 3 - Adding a question==== <!--T:255--> |
| * Select the "heading" | | * Select the "heading" |
| * Select the "impact" | | * Select the "impact" |
Line 170: |
Line 139: |
| * Check the "Active" box to make the question visible to users. | | * Check the "Active" box to make the question visible to users. |
| | | |
− | ==Language== <!--T:254--> | + | ==Language== <!--T:256--> |
− | ===How do I change the interface language?=== <!--T:255--> | + | ===How do I change the interface language?=== <!--T:257--> |
| Currently, we support only English, German, French and Spanish. | | Currently, we support only English, German, French and Spanish. |
| * On your profile, click on the right top corner and select your language from the drop down. | | * On your profile, click on the right top corner and select your language from the drop down. |
Line 178: |
Line 147: |
| ===How do I change the interface language for all user?=== <!--T:256--> | | ===How do I change the interface language for all user?=== <!--T:256--> |
| This can not be changed globally. Each user has to do the changes when they login. | | This can not be changed globally. Each user has to do the changes when they login. |
− |
| |
− |
| |
− | <!--T:282-->
| |
− | ''For a little more control see: [[User:Subfader/Hide_page_tabs]]''
| |
− |
| |
− | <!--T:283-->
| |
− | Edit [[MediaWiki:Common.css]] on your wiki, and add this:</translate>
| |
− |
| |
− | <syntaxhighlight lang="css">li#ca-edit { display: none; }</syntaxhighlight>
| |
− |
| |
− | <translate>
| |
− | <!--T:284-->
| |
− | See the page source for the various #ca-* ids used in the content tabs.
| |
− | </translate>
| |
− |
| |
− | {{note|1=<translate><!--T:285--> This will only work for Monobook and derived skins such as Modern and Vector (the default skin), and doesn't actually stop people from editing.</translate> <translate><!--T:286--> To do that, see <tvar|1>{{ll|Manual:User rights}}</>.</translate>}}
| |
− |
| |
− | <translate>
| |
− | ===How do I add/remove tabs throughout my wiki?=== <!--T:287-->
| |
− |
| |
− | <!--T:288-->
| |
− | See <tvar|1>{{ll|Manual:User group CSS and JavaScript}}</> or write your own extension (See: <tvar|2>{{ll|Manual:Hooks/SkinTemplateNavigation}}</>):
| |
− |
| |
− | <!--T:289-->
| |
− | For example, to remove the talk tab and then add a tab that always goes to the main page you would save this code in</translate> <code>extensions/AR-Tabs.php</code>:
| |
− |
| |
− | {{MW 1.21|and after}}
| |
− | <syntaxhighlight lang="php">
| |
− | <?php
| |
− | if( !defined( 'MEDIAWIKI' ) ){
| |
− | die( "This is not a valid access point.\n" );
| |
− | }
| |
− |
| |
− | $wgHooks['SkinTemplateNavigation'][] = 'replaceTabs';
| |
− | function replaceTabs( &$skin, &$links) {
| |
− | // Remove the talk action
| |
− | unset( $links['namespaces']['talk'] );
| |
− | $maintitle = Title::newFromText( wfMessage( 'mainpage' )->inContentLanguage()->text() );
| |
− | // Add an additional link
| |
− | $links['namespaces']['main'] = array(
| |
− | 'class' => false, // false or 'selected', defines whether the tab should be highlighted
| |
− | 'text' => wfMessage( 'sitetitle' )->text(), // what the tab says
| |
− | 'href' => $maintitle->getFullURL(), // where it links to
| |
− | 'context' => 'main',
| |
− | );
| |
− | return true;
| |
− | }
| |
− | </syntaxhighlight>
| |
− | <translate>
| |
− | <!--T:292-->
| |
− | and then add
| |
− | </translate>
| |
− |
| |
− | <syntaxhighlight lang="php">require_once("extensions/AR-Tabs.php");</syntaxhighlight>
| |
− | <translate>
| |
− | <!--T:293-->
| |
− | to the bottom of LocalSettings.php
| |
− |
| |
− | ====How do I remove a tab on only one page?==== <!--T:294-->
| |
− | </translate>
| |
− | {{MW 1.9|and after}}
| |
− | <translate>
| |
− | <!--T:296-->
| |
− | For example, to remove the Discussion (talk) page tab from the Main Page, on the [[MediaWiki:Common.css]] page add:</translate>
| |
− | <syntaxhighlight lang="css">
| |
− | body.page-Main_Page li#ca-talk { display: none !important; }
| |
− | </syntaxhighlight>
| |
− |
| |
− | <translate>
| |
− | <!--T:297-->
| |
− | To modify <tvar|1>[[MediaWiki:Common.css]]</> you must be an <tvar|2>{{ll|Manual:interface administrator|nsp=0}}</>.
| |
− | </translate>
| |
− |
| |
− | :''<translate><!--T:672--> See also:</translate> {{ll|Manual:Hide page tabs}}''
| |
− |
| |
− | <translate>
| |
− | ====How do I remove a tab on all pages==== <!--T:299-->
| |
− | </translate>
| |
− |
| |
− | {{MW 1.9|and after}}
| |
− | <translate>
| |
− | <!--T:301-->
| |
− | For example, to remove the Discussion (talk) page tab on all wikipages, on the [[MediaWiki:Common.css]] page add:
| |
− | </translate>
| |
− |
| |
− | <syntaxhighlight lang="css">
| |
− | #ca-talk { display:none!important; }
| |
− | </syntaxhighlight>
| |
− |
| |
− | <translate>
| |
− | <!--T:302-->
| |
− | Other tabs to remove are '''#ca-history''', '''#ca-viewsource''', '''#ca-view''' (Read tab), '''#ca-nstab-main''' (Page tab).</translate>
| |
− |
| |
− | <translate>
| |
− | <!--T:303-->
| |
− | Other drop down menu items you can remove are '''#ca-watch''', '''#ca-move''', '''#ca-delete'''.</translate>
| |
− |
| |
− | <translate>
| |
− | <!--T:304-->
| |
− | To modify <tvar|1>[[MediaWiki:Common.css]]</> you must be an <tvar|2>{{ll|Manual:interface administrator|nsp=0}}</>.
| |
− |
| |
− | ===How do I remove the "Talk for this IP" link at the top right (e.g. when <tvar|1>{{ll|Manual:$wgDisableAnonTalk|$wgDisableAnonTalk}}</> is true)?=== <!--T:309-->
| |
− |
| |
− | <!--T:679-->
| |
− | One option is to hide the link using the following CSS in the wiki page ''MediaWiki:Common.css'' in your wiki:
| |
− | </translate>
| |
− |
| |
− | <syntaxhighlight lang="css">
| |
− | #p-personal #pt-anonuserpage {
| |
− | display: none;
| |
− | }
| |
− | </syntaxhighlight>
| |
− |
| |
− | <translate>
| |
− | <!--T:680-->
| |
− | Another option is, inside your LocalSettings.php file, to use the PersonalUrls hook to remove the link to the talk page of anonymous users:</translate>
| |
− |
| |
− | <syntaxhighlight lang=php>
| |
− | $wgHooks['PersonalUrls'][] = 'lfRemoveAnonUserpageLink';
| |
− | function lfRemoveAnonUserpageLink( &$personal_urls, $title ) {
| |
− | unset( $personal_urls['anonuserpage'] );
| |
− | return true;
| |
− | }
| |
− | </syntaxhighlight>
| |
− |
| |
− | <translate>
| |
− | ===How do I remove the "Create an Account or Login" link at the top right of the screen?=== <!--T:311-->
| |
− |
| |
− | <!--T:312-->
| |
− | To remove the login / create account links from the personal_urls you can use this code in your {{manual|LocalSettings.php}} to hook in and remove them:
| |
− | </translate>
| |
− |
| |
− | <syntaxhighlight lang=php>
| |
− | $wgHooks['PersonalUrls'][] = 'lfRemoveLoginLink';
| |
− | function lfRemoveLoginLink( &$personal_urls, $title ) {
| |
− | unset( $personal_urls['login'] );
| |
− | unset( $personal_urls['anonlogin'] );
| |
− | unset( $personal_urls['createaccount'] );
| |
− | return true;
| |
− | }
| |
− | </syntaxhighlight>
| |
− |
| |
− | <translate>
| |
− | ===How can I suppress actions and special pages?=== <!--T:313-->
| |
− | </translate>
| |
− |
| |
− | {{note|1=<translate><!--T:314--> MediaWiki is not designed for this kind of usage!</translate> <translate><!--T:315--> It should be noted that the following 'answer' is a hack that only 'works' with the Apache webserver.</translate> <translate><!--T:316--> Note also that this system is not foolproof, it's just one step further than hiding the links (see above).</translate>}}
| |
− |
| |
− | <translate>
| |
− | <!--T:317-->
| |
− | Suppressing actions and special pages can be useful when you want to create the illusion of a static website via a particular URL or VirtualHost, but also have an 'internal' view that is a true wiki.</translate>
| |
− | <translate>
| |
− | <!--T:318-->
| |
− | i.e. if you have an inward facing 'view' of your wiki that users can edit, and an outward facing 'view' that should appear like a static website (no history, no discussion, etc., etc.).
| |
− |
| |
− | <!--T:319-->
| |
− | After hiding all the appropriate links (see above), if you are using the Apache web server, you can disable actions and special pages using the following [http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html rewrite rules]:</translate>
| |
− |
| |
− | <pre>
| |
− | # Lock down the site (disable MediaWiki commands)
| |
− |
| |
− | RewriteEngine On
| |
− |
| |
− | #RewriteLog /tmp/rewrite.log
| |
− |
| |
− | #RewriteLogLevel 9
| |
− |
| |
− | ## See https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Parameters_to_index.php#Actions
| |
− |
| |
− | RewriteCond %{QUERY_STRING} (.*action=.*)
| |
− | RewriteRule .* http://www.my.domain.com?
| |
− |
| |
− | RewriteCond %{REQUEST_URI} !^/index.php/Special:Search
| |
− | RewriteCond %{REQUEST_URI} ^(.*Special:.*)
| |
− | RewriteRule .* http://www.my.domain.com?
| |
− |
| |
− | ## Catch a trick...
| |
− | RewriteCond %{QUERY_STRING} ^(.*Special:.*)
| |
− | RewriteRule .* http://www.my.domain.com?
| |
− | </pre>
| |
− |
| |
− | <translate>
| |
− | <!--T:320-->
| |
− | Above, a request for <tvar|1><code><nowiki>'http://www.my.domain.com/wiki/Page_name?action=edit'</nowiki></code></>, for example, will be simply rewritten to <tvar|2><code><nowiki>'http://www.my.domain.com'</nowiki></code></>.</translate>
| |
− | <translate>
| |
− | <!--T:322-->
| |
− | Similarly any page in the Special namespace (with the exception of Special:Search) will be rewritten to <tvar|1><code><nowiki>'http://www.my.domain.com'</nowiki></code></>.</translate>
| |
− | <translate>
| |
− | <!--T:323-->
| |
− | '''Remember''', this is only a hack, and isn't intended as a solution for a secure CMS.
| |
− |
| |
− | <!--T:324-->
| |
− | Note that you will need to adjust the above rules to match your specific URL naming schema.
| |
− |
| |
− | <!--T:325-->
| |
− | Other issues to consider when trying to lock down a site like this is the API and POST requests for the wiki content (rather than GET).
| |
− |
| |
− | === How do I edit error messages? === <!--T:326-->
| |
− |
| |
− | <!--T:327-->
| |
− | [[Special:Allmessages]] contains a complete list of messages (error or otherwise), that can be edited.</translate>
| |
− |
| |
− | <translate>
| |
− | ===How do I change the footer?=== <!--T:328-->
| |
− | </translate>
| |
− |
| |
− | :''<translate><!--T:691--> See:</translate> {{ll|Manual:Footer}}, {{ll|Manual:Configuration settings#Copyright|<translate><!--T:692--> Manual:Configuration settings#Copyright</translate>}}''
| |
− |
| |
− | {{Anchor|powered-by-mw-image}}
| |
− | <translate>
| |
− | ===How can I edit / remove the Powered by MediaWiki image (and possible other images) from the footer?=== <!--T:330-->
| |
− |
| |
− | <!--T:331-->
| |
− | You can hide the Powered by MediaWiki image by adding the following to your wiki's [[MediaWiki:Common.css]]:
| |
− | </translate>
| |
− |
| |
− | <syntaxhighlight lang="css">
| |
− | #footer-poweredbyico { display: none; }
| |
− | </syntaxhighlight>
| |
− |
| |
− | <translate>
| |
− | <!--T:335-->
| |
− | If you want to remove it completely, you can use {{wg|FooterIcons}} to remove it using this in your {{manual|LocalSettings.php}}:
| |
− | </translate>
| |
− | <syntaxhighlight lang=php>unset( $wgFooterIcons['poweredby'] );</syntaxhighlight>
| |
− |
| |
− |
| |
− | Note that this will also remove ''other'' powered-by icons, e.g. also the one coming from BlueSpice.
| |
− |
| |
− | <translate>
| |
− | <!--T:337-->
| |
− | If you wish to change the icon images, urls, alt text, or add new icons please see {{wg|FooterIcons}}' documentation.
| |
− |
| |
− | ===How do I add a reply link to default signature tildes (<tvar|1><nowiki>~~~~</nowiki></>) template?=== <!--T:338-->
| |
− |
| |
− | <!--T:339-->
| |
− | You can customize signatures in [[MediaWiki:Signature]] / [[MediaWiki:Signature-anon]].
| |
− |
| |
− | <!--T:340-->
| |
− | For example, changing the entries to <code><nowiki>[[{{ns:user}}:$1|$2]] ([[{{ns:user_talk}}:$1|talk]])</nowiki></code> will put a link to users' talk pages and <code><nowiki>[[{{ns:user}}:$1|$2]] ([{{fullurl:{{ns:user_talk}}:$1|action=edit§ion=new}} Reply])</nowiki></code> would give a more direct link.
| |
− |
| |
− | <!--T:341-->
| |
− | Users can change their signature in their preferences.
| |
− |
| |
− | ===How can I change what the <title> of each page is? Where do I make changes?=== <!--T:342-->
| |
− |
| |
− | <!--T:343-->
| |
− | Most of the text that you want to change can be found in the namespace of MediaWiki.
| |
− |
| |
− | <!--T:344-->
| |
− | In order to change titles, texts, announcements, etc., go to [[Special:AllMessages]], where you will see the text associated with the pages you wish to change.</translate>
| |
− | <translate>
| |
− | <!--T:345-->
| |
− | You need to log in as an administrator to edit the protected entries in the MediaWiki namespace.
| |
− |
| |
− | <!--T:346-->
| |
− | If you want to change the title in your browser, you need to edit [[MediaWiki:Pagetitle]].</translate>
| |
− | <translate>
| |
− | <!--T:347-->
| |
− | Go there and edit it just like you would any other page in your wiki.
| |
− |
| |
− | <!--T:348-->
| |
− | In recent versions of MediaWiki, [[MediaWiki:Pagetitle]] is <tvar|1><nowiki>$1 - {{SITENAME}}</nowiki></> by default. If <tvar|2><nowiki>{{SITENAME}}</nowiki></> is producing the wrong text for you, you need to set <tvar|3>{{ll|Manual:$wgSitename|$wgSitename}}</> in your <tvar|4>LocalSettings.php</>.</translate>
| |
− |
| |
− | <translate>
| |
− | <!--T:352-->
| |
− | Don't forget to clear your browser cache after you change your settings.
| |
− |
| |
− | ===Does MediaWiki automatically capitalize the first letter of $wgSitename?=== <!--T:353-->
| |
− |
| |
− | <!--T:354-->
| |
− | Yes.</translate>
| |
− | <translate>
| |
− | <!--T:355-->
| |
− | This can be changed using the <tvar|CapitalLinks>{{ll|Manual:$wgCapitalLinks|$wgCapitalLinks}}</> configuration setting.
| |
− |
| |
− | ===How do I make external links open in a new window?=== <!--T:356-->
| |
− | </translate>
| |
− |
| |
− | :''<translate><!--T:357--> See <tvar|1>{{ll|Manual:$wgExternalLinkTarget}}</></translate>''
| |
− |
| |
− | <translate>
| |
− | ===How can I suppress MediaWiki from formatting URLs, tags, etc?=== <!--T:358-->
| |
− |
| |
− | <!--T:359-->
| |
− | Put "<tvar|nowiki>{{tag|nowiki|pair|content=}}</>" tags around the URL or tag.
| |
− |
| |
− | <!--T:360-->
| |
− | ''Example:''</translate>
| |
− | <nowiki>svn co <nowiki>http://svn.example.com/myproject/</nowiki></nowiki>
| |
− |
| |
− | <translate>
| |
− | <!--T:361-->
| |
− | ''Produces:''</translate><br/>
| |
− | svn co <nowiki>http://svn.example.com/myproject/</nowiki>
| |
− |
| |
− | <translate>
| |
− | ===How can I force users to preview before they save?=== <!--T:362-->
| |
− | </translate>
| |
− |
| |
− | : ''<translate><!--T:706--> See:</translate> {{ll|Manual:Force preview}}, {{ll|Extension:ForcePreview}}''
| |
− |
| |
− | <translate>
| |
− | ===How do I add more buttons on the edit page?=== <!--T:364-->
| |
− | </translate>
| |
− |
| |
− | :''<translate><!--T:707--> See:</translate> {{ll|Manual:Custom edit buttons}}''
| |
− |
| |
− | <translate>
| |
− | ===How can I get more special characters or tags clickable on the edit page?=== <!--T:366-->
| |
− |
| |
− | <!--T:367-->
| |
− | For adding more selectable special characters, etc., below the edit field, see <tvar|1>{{ll|Extension:CharInsert}}</>.
| |
− |
| |
− | === How can I use a different skin (e.g. Wikipedia's old Monobook skin) on my wiki? === <!--T:368-->
| |
− | </translate>
| |
− | {{MW 1.16|and after}}
| |
− | <translate>
| |
− | <!--T:681-->
| |
− | While the Vector skin is the default skin for all installations made with MediaWiki 1.17 and newer, the Monobook skin has been the default before.</translate>
| |
− | <translate>
| |
− | <!--T:371-->
| |
− | See <tvar|1>{{ll|Manual:$wgDefaultSkin}}</> for more information on configuring your default skin.
| |
− |
| |
− | === How do I disable external links from showing in the printable version of a page? === <!--T:373-->
| |
− |
| |
− | <!--T:374-->
| |
− | Edit the page [[MediaWiki:Print.css]] on your wiki and add the following code there:</translate>
| |
− |
| |
− | <syntaxhighlight lang="css">
| |
− | #content a.external.text:after,
| |
− | #content a.external.autonumber:after {
| |
− | content: none;
| |
− | }
| |
− | </syntaxhighlight>
| |
− |
| |
− | <translate>
| |
− | <!--T:375-->
| |
− | This will override the styles defined in the CSS files coming with the MediaWiki source code.</translate>
| |
− | <translate>
| |
− | <!--T:376-->
| |
− | For more information, see <tvar|1>{{ll|Manual:CSS}}</>.</translate>
| |
− |
| |
− | <translate>
| |
− | <!--T:377-->
| |
− | If instead you want to have the external links ''underlined'' in the printable version, then also add the following code:</translate>
| |
− |
| |
− | <syntaxhighlight lang="css">
| |
− | #content a.external {
| |
− | text-decoration: underline !important;
| |
− | }
| |
− | </syntaxhighlight>
| |
− |
| |
− | <translate>
| |
− | ===How do I change the text of the article (page name) tab of my wiki's main page?=== <!--T:378-->
| |
− | </translate>
| |
− |
| |
− | {{anchor|How do I change the text of the tab of my wikis main page?}}
| |
− | <translate>
| |
− | <!--T:380-->
| |
− | To change the text of the tab, as one example used in Wikipedia, you first open the page "<tvar|1><code>MediaWiki:Mainpage-nstab</code></>".
| |
− |
| |
− | <!--T:381-->
| |
− | After you've done that, click Edit and type in the edit box the text you want to be seen later on the main page - that's it.</translate>
| |
− | <translate>
| |
− | <!--T:382-->
| |
− | Don't forget to save the page as well.
| |
− |
| |
− | ==Basic usage== <!--T:383-->
| |
− |
| |
− | ===How do I edit a page?=== <!--T:384-->
| |
− |
| |
− | <!--T:385-->
| |
− | To edit a page, simply click the '''edit''' link that appears on each page.</translate>
| |
− | <translate>
| |
− | <!--T:386-->
| |
− | Using the default Vector skin, this is in the form of a tab at the top of the page.</translate>
| |
− | <translate>
| |
− | <!--T:387-->
| |
− | A form will appear, containing the existing markup.</translate>
| |
− | <translate>
| |
− | <!--T:388-->
| |
− | When you have finished making modifications, click the '''Save''' button to commit your changes.
| |
− | </translate>
| |
− |
| |
− | :''<translate><!--T:673--> See also:</translate> {{ll|Help:Editing pages}}''
| |
− |
| |
− | <translate>
| |
− | ===How do I create a new page?=== <!--T:390-->
| |
− |
| |
− | <!--T:391-->
| |
− | There are several ways to create a new page:
| |
− |
| |
− | <!--T:392-->
| |
− | *Create a link to the page on another page, then click on the red link which appears</translate>
| |
− | <translate>
| |
− | <!--T:393-->
| |
− | *Browse to the intended location of the page, e.g. <code><nowiki>http://www.example.com/index.php?title=New_page</nowiki></code> and click on the "'''Edit'''", "'''Create'''" or "'''Create source'''" link.</translate>
| |
− | <translate>
| |
− | <!--T:394-->
| |
− | On some wikis, a failed search for a page will contain a link which allows you to edit that page.
| |
− | </translate>
| |
− |
| |
− | :''<translate><!--T:674--> See also:</translate> {{ll|Help:Starting a new page}}''
| |
− |
| |
− | <translate>
| |
− | ===How do I delete an old version of a page?=== <!--T:396-->
| |
− |
| |
− | <!--T:397-->
| |
− | Old versions of page data are retained in the database and can be accessed via the page history features.</translate>
| |
− | <translate>
| |
− | <!--T:398-->
| |
− | This is useful for reviewing changes and correcting or reverting undesirable ones, but in some cases, administrators might want to make this information unavailable, for legal reasons, or to reduce the size of the database.
| |
− |
| |
− | <!--T:399-->
| |
− | *Administrators can delete an old revision of a page by deleting the page, and then selectively undeleting revisions to be kept</translate>
| |
− | <translate>
| |
− | <!--T:401-->
| |
− | *For newer MediaWikis (1.14+), you can enable the core [[RevisionDelete]] feature that allows privileged users to remove single revisions from page histories.</translate>
| |
− | <translate>
| |
− | <!--T:402-->
| |
− | *The <tvar|1><code>maintenance/{{ll|Manual:deleteOldRevisions.php|deleteOldRevisions.php}}</code></> [[<tvar|2>Special:MyLanguage/Manual:Maintenance scripts</>|maintenance script]] can mass-delete all old revisions of pages and their associated text records.
| |
− | </translate>
| |
− |
| |
− | :''<translate><!--T:675--> See also:</translate> {{ll|Manual:Removing embarrassment}}''
| |
− |
| |
− | <translate>
| |
− | ===How do I use oversight/delete revisions in the page history?=== <!--T:404-->
| |
− | </translate>
| |
− |
| |
− | :''<translate><!--T:676--> See:</translate> {{ll|RevisionDelete}}''
| |
− |
| |
− | <translate>
| |
− | <!--T:406-->
| |
− | You can also delete a page, and then restore only the revisions you want.
| |
− |
| |
− | ===Are there any editing tutorials available?=== <!--T:407-->
| |
− |
| |
− | <!--T:408-->
| |
− | There are several editing tutorials available, mostly on Wikimedia sister projects, such as Wikipedia.</translate>
| |
− | <translate>
| |
− | <!--T:409-->
| |
− | There are also markup references, etc. available on ''Meta''.
| |
− |
| |
− | <!--T:410-->
| |
− | *The page [[Help:Editing pages]] on this site</translate>
| |
− | <translate>
| |
− | <!--T:411-->
| |
− | *[[m:Help:Editing|Editing]] help content on ''Meta''</translate>
| |
− | <translate>
| |
− | <!--T:412-->
| |
− | *The ''[[:en:Wikipedia:How to edit a page|How to edit a page]]'' guide on the English Wikipedia
| |
− |
| |
− | ===How do I view the printable form of a page?=== <!--T:413-->
| |
− |
| |
− | <!--T:414-->
| |
− | MediaWiki includes stylesheets which automatically style a page appropriately when it is printed; using the print or print preview function within your browser ought to render the page in a printable form.
| |
− |
| |
− | <!--T:415-->
| |
− | You can also view this printable form using the ''printable version'' link in the sidebar under ''Toolbox'' or ''Print/export'' if using the <tvar|1>{{ll|Extension:Collection|nsp=0}}</> extension.
| |
− |
| |
− | === How do I use templates? === <!--T:416-->
| |
− | </translate>
| |
− |
| |
− | :''<translate><!--T:417--> See <tvar|1>{{ll|Help:Templates}}</></translate>''
| |
− |
| |
− | <translate>
| |
− | ===Can I use media (images, video, audio, etc.) from [[<tvar|1>m:Special:MyLanguage/Wikimedia Commons</>|Wikimedia Commons]] in my installed version of MediaWiki?=== <!--T:418-->
| |
− |
| |
− | <!--T:419-->
| |
− | Yes, this is encouraged through the use of <tvar|1>{{ll|Manual:$wgUseInstantCommons}}</>.
| |
− | </translate>
| |
− |
| |
− | :''<translate><!--T:677--> See also:</translate> {{ll|InstantCommons}}''
| |
− |
| |
− | <translate>
| |
− | ===How do I use a template as a signature?=== <!--T:421-->
| |
− |
| |
− | <!--T:422-->
| |
− | When you look at your preferences, you see a check box for "raw signature."</translate>
| |
− | <translate>
| |
− | <!--T:423-->
| |
− | But the field will only take a certain number of characters.</translate>
| |
− | <translate>
| |
− | <!--T:424-->
| |
− | What if you want more?
| |
− |
| |
− | <!--T:425-->
| |
− | You will need to create two pages, possibly in your userspace.</translate>
| |
− |
| |
− | #<translate><!--T:426--> Create the first page (FIRST PAGE)</translate>
| |
− | # <translate><!--T:427--> Go to your preferences, check "raw signature" and put <tvar|1><nowiki>{{FIRST PAGE}}</nowiki></> in the signature.</translate> {{int|saveprefs}}
| |
− | #<translate><!--T:429--> Create a second page (SECOND PAGE) (possibly a sub-page of the first)</translate>
| |
− | #<translate><!--T:430--> Go back to the first page (FIRST PAGE) and do <tvar|1><nowiki>{{SECOND PAGE}}</nowiki></></translate>
| |
− | #<translate><!--T:431--> Go to the second page (SECOND PAGE) and place the code you wish to have for your signature.</translate>
| |
− |
| |
− | <translate>
| |
− | <!--T:432-->
| |
− | If you don't have this structure, you will still be inserting all your signature code into the raw code wherever your signature is used, because the software will insert "SUBST" in your preferences.</translate>
| |
− | <translate>
| |
− | <!--T:433-->
| |
− | You may not mind this, in which case you only need one page.</translate>
| |
− | <translate>
| |
− | <!--T:434-->
| |
− | If you want the raw code to only display <tvar|1><nowiki>{{FIRST PAGE}}</nowiki></>, which looks a lot cleaner, then you need to use the two-page structure.
| |
− |
| |
− | === How do I add the sandbox functionality to my installation of the wiki? === <!--T:435-->
| |
− |
| |
− | <!--T:436-->
| |
− | In wiki terms, a ''sandbox'' is simply a "play pen"; a page which users can mess about in.</translate>
| |
− | <translate>
| |
− | <!--T:437-->
| |
− | This is an ordinary page created in the normal manner, and can be located wherever you like.</translate>
| |
− | <translate>
| |
− | <!--T:438-->
| |
− | There is no special sandbox functionality built into MediaWiki.
| |
− |
| |
− | <!--T:439-->
| |
− | Users often inquire about the Wikipedia sandboxes, which seem to be self-emptying.</translate>
| |
− | <translate>
| |
− | <!--T:440-->
| |
− | This is not quite correct; there are a number of volunteers who run [[Manual:Bots|bots]] to clean these up and return them to a certain state at regular time intervals.
| |
− |
| |
− | === How do I add a "Sandbox" link to personal tools (top right)? === <!--T:441-->
| |
− |
| |
− | <!--T:714-->
| |
− | You need to install the <tvar|1>{{ll|Extension:SandboxLink|nsp=0}}</> extension.</translate>
| |
− | <translate>
| |
− | === How do I make my wiki serve all languages? === <!--T:444-->
| |
− |
| |
− | <!--T:445-->
| |
− | To make your wiki multilingual and a tool for translation, allowing translation of pages and of the custom interface (like the sidebar), use the <tvar|1>{{ll|Extension:Translate|Translate}}</> extension; there's [[Help:Extension:Translate|extensive documentation]].
| |
− | </translate>
| |
− |
| |
− | {{anchor|Wiki importing}}
| |
− | <translate>
| |
− | ==Wiki importing== <!--T:446-->
| |
− |
| |
− | ===Importing from MediaWiki XML dumps=== <!--T:447-->
| |
− | </translate>
| |
− |
| |
− | :''<translate><!--T:708--> See:</translate> {{ll|Manual:Importing XML dumps}}''
| |
− |
| |
− | <translate>
| |
− | ===Importing from other types of wiki software=== <!--T:449-->
| |
− | </translate>
| |
− |
| |
− | {{outdated}}
| |
− |
| |
− | <translate>
| |
− | <!--T:452-->
| |
− | There is some documentation about importing in the UPGRADE file distributed with MediaWiki.
| |
− |
| |
− | <!--T:453-->
| |
− | To follow on from those, this is how at least one individual imported pages from usemod to MediaWiki:
| |
− |
| |
− | <!--T:454-->
| |
− | Because MediaWiki does not automatically link to [[w:CamelCase|CamelCase]] style links, you will need to add brackets <nowiki> [[ ]] </nowiki> to all your links.</translate>
| |
− | <translate>
| |
− | <!--T:455-->
| |
− | You can do this with the following:
| |
− |
| |
− | <!--T:456-->
| |
− | First, obtain ImportStage1.txt (or whatever you want to call it) from the importUseModWiki.php script ( use > to pipe the output to a file )
| |
− |
| |
− | <!--T:457-->
| |
− | Second, do</translate>
| |
− |
| |
− | <pre>
| |
− | sed '/Importing/!s/\ [A-Z]\w*[a-z]\w*[A-Z]\w*[a-zA-Z]/\ \[\[&\]\] /g'
| |
− | ImportStage1.txt > ImportStage2.txt
| |
− | </pre>
| |
− |
| |
− | <translate>
| |
− | <!--T:458-->
| |
− | This should create proper links in place of your CamelCase links.
| |
− |
| |
− | <!--T:459-->
| |
− | '''This doesn't''' work so well for SubPage links - someone care to fix?
| |
− |
| |
− | <!--T:460-->
| |
− | Then,</translate>
| |
− |
| |
− | <pre>
| |
− | sed 's/upload\:\w*\.\w*/http\:\/\/aberwiki\.org\/uploads\/& /g'
| |
− | ImportStage2.txt > ImportStage3.txt
| |
− | </pre>
| |
− |
| |
− | <translate>
| |
− | <!--T:461-->
| |
− | This fixes your upload links.</translate>
| |
− | <translate>
| |
− | <!--T:462-->
| |
− | Change the replace text so it fills in your url such as <nowiki>http://www.yourwiki.org/uploads/filename</nowiki>
| |
− |
| |
− | <!--T:463-->
| |
− | You are now ready to import ImportStage3.txt into your database with a command such as</translate>
| |
− |
| |
− | <pre>
| |
− | mysql -u<mysqluser> -p<yourpass> <db name> < ImportStage3.txt
| |
− | </pre>
| |
− |
| |
− | {{note|1=<translate><!--T:464--> If your <code>importUseModWiki.php</code> outputs an XML file instead of SQL statements, this probably means you have a rather new version of MediaWiki.</translate> <translate><!--T:465--> In such a case, you can import the XML file -- see [[Importing a Wikipedia database dump into MediaWiki]], towards the bottom of the page ('Import XML').</translate> <translate><!--T:466--> Don't forget to rebuild all the tables -- that page also explains how to do that.</translate>}}
| |
− |
| |
− | <translate>
| |
− | ===Importing from other types of files=== <!--T:467-->
| |
− |
| |
− | <!--T:468-->
| |
− | There are a variety of tools available to help convert content from HTML (and other formats) to MediaWiki markup.</translate>
| |
− |
| |
− | ; <translate><!--T:469--> Developer and SysAdmin tools</translate>
| |
− | <translate>
| |
− | <!--T:470-->
| |
− | * [http://search.cpan.org/dist/HTML-WikiConverter-MediaWiki HTML::WikiConverter::MediaWiki] - a Perl module for converting from HTML to MediaWiki markup.</translate>
| |
− | <translate>
| |
− | <!--T:471-->
| |
− | * [[meta:Wikificator|Wikificator]] - a JavaScript MediaWiki extension that converts XHTML to MediaWiki markup.</translate>
| |
− | <translate>
| |
− | <!--T:472-->
| |
− | * The <tvar|1>{{ll|Manual:Edit.php|Edit.php}}</> and <tvar|2>{{ll|Manual:importImages.php|importImages.php}}</> [[<tvar|3>Special:MyLanguage/Manual:Maintenance scripts</>|maintenance scripts]] can be used to import text and images into MediaWiki.</translate>
| |
− |
| |
− | ; <translate><!--T:473--> End-user tools</translate>
| |
− | <translate>
| |
− | <!--T:475-->
| |
− | * [[w:User:Cacycle/wikEd|wikEd]] - a text editor for MediaWiki that can import HTML (including Microsoft Word-generated HTML.)</translate>
| |
− |
| |
− | ;<translate><!--T:476--> Instructions</translate>
| |
− | <translate>
| |
− | <!--T:477-->
| |
− | *[http://xpt.sourceforge.net/techdocs/language/wiki/wikimedia/wkm07-MediaWikiImport/ar01s04.html Brief notes on converting from Microsoft .chm help files to MediaWiki]</translate>
| |
− | <translate>
| |
− | <!--T:478-->
| |
− | *[http://openwetware.org/wiki/Converting_documents_to_mediawiki_markup#Word_Documents Notes on converting from Microsoft Office formats to MediaWiki]
| |
− |
| |
− | ===MediaWiki auto importing script=== <!--T:479-->
| |
− |
| |
− | <!--T:480-->
| |
− | Taken from [http://xpt.sourceforge.net/tools/wiki_import/ wiki_import - MediaWiki auto import script]:
| |
− |
| |
− | ====Description==== <!--T:481-->
| |
− |
| |
− | <!--T:482-->
| |
− | The script is designed to import a whole folder of files into MediaWiki, with the folder directory tree mapped as wiki category hierarchy.
| |
− |
| |
− | ====Features==== <!--T:483-->
| |
− |
| |
− | <!--T:484-->
| |
− | *economic, build wiki site from existing knowledge base collection without "double-entry"</translate>
| |
− | <translate>
| |
− | <!--T:485-->
| |
− | *persistent, map folder directory tree as wiki category hierarchy</translate>
| |
− | <translate>
| |
− | <!--T:486-->
| |
− | *sophisticated, import/handle all well-known file types automatically</translate>
| |
− | <translate>
| |
− | <!--T:487-->
| |
− | *complete, cover every applicable scenario, even the case when you need to control access to individual wiki pages</translate>
| |
− | <translate>
| |
− | <!--T:488-->
| |
− | *versatile, highly customizable
| |
− |
| |
− | ====Quick Help==== <!--T:489-->
| |
− | </translate>
| |
− |
| |
− | wiki_import.sh $ $Revision: 1.1 $
| |
− |
| |
− | <translate>
| |
− | <!--T:490-->
| |
− | mediawiki automatic file import script
| |
− |
| |
− | <!--T:491-->
| |
− | Usage:</translate> wiki_import.sh [OPTIONS]...
| |
− |
| |
− | <translate>
| |
− | <!--T:492-->
| |
− | The script is designed to import a whole folder of files into mediawiki, with
| |
− | the folder directory tree mapped as wiki category hierarchy.
| |
− |
| |
− | <!--T:493-->
| |
− | The specification of the file-to-import is passed from standard input.
| |
− |
| |
− | <!--T:494-->
| |
− | Options:</translate>
| |
− | -s, --sect=n <translate><!--T:495--> the root category section of the wiki of the imported article (mandatory)</translate>
| |
− | -1, --header <translate><!--T:496--> include standard header (category hierarchy path & notice)</translate>
| |
− | -l, --link <translate><!--T:497--> link to actual file on the web site</translate>
| |
− | -f, --footer <translate><!--T:498--> include standard footer (article category)</translate>
| |
− | -R, --res[=p] <translate><!--T:499--> add restricted tag in the footer as</translate>
| |
− | '{{<Res Param|Root Category> Restricted}}' (default=`$_opt_sect')
| |
− |
| |
− | <translate><!--T:500--> Configuration Options:</translate>
| |
− | -p, --php=fn <translate><!--T:501--> mediawiki import php script specification</translate>
| |
− | -r, --root=n <translate><!--T:502--> the root category name for the whole wiki site</translate>
| |
− | -m, --max=n <translate><!--T:503--> max_allowed_packet for mysqld to import</translate>
| |
− | -u, --user=n <translate><!--T:504--> wiki user used for the import</translate>
| |
− | -a, --arch=p <translate><!--T:505-->
| |
− | the root url that linked-to archive files based on
| |
− |
| |
− | <!--T:506-->
| |
− | Examples:</translate>
| |
− |
| |
− | echo ./path/to/file.ext | wiki_import.sh -1 -l -f -s 'Customer Support' -R
| |
− |
| |
− | <translate>
| |
− | <!--T:507-->
| |
− | For the rest of details, check out [http://xpt.sourceforge.net/tools/wiki_import/ wiki_import].
| |
− | </translate>
| |
− |
| |
− | {{anchor|Templates imported from other wikis (such as Wikipedia) don't work for me}}
| |
− | <translate>
| |
− | === Templates imported from other wikis (such as Wikipedia) don't work for me === <!--T:508-->
| |
− |
| |
− | <!--T:509-->
| |
− | You probably need to install some extensions used on the source wiki, such as <tvar|3>{{ll|Extension:Scribunto|Scribunto}}</>, <tvar|4>{{ll|Extension:TemplateStyles|TemplateStyles}}</>, <tvar|1>{{ll|Extension:ParserFunctions|ParserFunctions}}</> or sometimes <tvar|2>{{ll|Extension:Cite|Cite}}</>.</translate>
| |
− | <translate>
| |
− | <!--T:510-->
| |
− | Also, make sure that you copied all [[Manual:Interface/Stylesheets|site CSS]] and [[Manual:Interface/JavaScript|JavaScript]] required by the template.
| |
− |
| |
− | ==Customising further== <!--T:511-->
| |
− |
| |
− | ===I want to have multiple wikis, but only require registration once=== <!--T:512-->
| |
− |
| |
− | <!--T:513-->
| |
− | *If you're starting from scratch or you're switching from one wiki to multiple, you can use <tvar|1>{{ll|Manual:$wgSharedDB|$wgSharedDB}}</> and <tvar|2>{{ll|Manual:$wgSharedTables|$wgSharedTables}}</> to have all wikis share the user table of the "main" wiki.</translate> <translate><!--T:514--> You can share other tables as well, as long as they don't contain any data dependent on non-shared tables or data specific to one wiki.</translate> <translate><!--T:515--> See [[Manual:Shared database]] for examples and more information.</translate>
| |
− | <translate>
| |
− | <!--T:516-->
| |
− | *If your wikis are already established and you want to switch to a single sign-on, you can use the <tvar|1>{{ll|Extension:CentralAuth|CentralAuth}}</> extension.</translate> <translate><!--T:517--> It has a few more features than a shared user table, but it's more difficult to configure and it's tailored toward a Wikimedia-style setup.</translate> <translate><!--T:518-->
| |
− | However, it is easier than attempting to completely merge multiple user tables into one.
| |
− |
| |
− | ===How can I allow use of HTML tags?=== <!--T:519-->
| |
− |
| |
− | <!--T:520-->
| |
− | See <tvar|1>{{ll|Manual:$wgRawHtml}}</> as well as <tvar|2>{{ll|Manual:$wgGroupPermissions}}{{int|and}}{{int|word-separator}}{{ll|Manual:Preventing access}}</>.
| |
− | </translate>
| |
− |
| |
− | {{caution|1=<translate><!--T:522--> This can be easily abused to attack users</translate>}}
| |
− |
| |
− | <translate>
| |
− | <!--T:523-->
| |
− | See <tvar|1>{{ll|Extension:Secure HTML}}</> and <tvar|2>{{ll|Extension:HTMLets}}</> for ways to make this safer.
| |
− |
| |
− | ===How do I fix problems or add features to MediaWiki?=== <!--T:524-->
| |
− |
| |
− | <!--T:525-->
| |
− | The basic steps to improving MediaWiki (that is, [[How to become a MediaWiki hacker|becoming a MediaWiki developer]]) are:
| |
− |
| |
− | <!--T:526-->
| |
− | * Install [[Special:MyLanguage/Gerrit|Git]]</translate>
| |
− | <translate>
| |
− | <!--T:527-->
| |
− | * Download the Git "clone" of the MediaWiki source code</translate>
| |
− | <translate>
| |
− | <!--T:528-->
| |
− | * Get a server, a database, and PHP running on your computer (this can be annoying, so please ask for help if something isn't working)</translate>
| |
− | <translate>
| |
− | <!--T:529-->
| |
− | * Get MediaWiki running on your computer off that Git checkout (can be annoying as well, so, ditto)</translate>
| |
− | <translate>
| |
− | <!--T:530-->
| |
− | * Fix the problem or add the feature you were thinking of</translate>
| |
− | <translate>
| |
− | <!--T:531-->
| |
− | * Edit the source code of the relevant file(s) to fix the problem</translate>
| |
− | <translate>
| |
− | <!--T:532-->
| |
− | * Follow [[Gerrit/Tutorial]]
| |
− |
| |
− | === How do I run a bot? === <!--T:533-->
| |
− | </translate>
| |
− |
| |
− | :''<translate><!--T:709--> See:</translate> {{ll|Manual:Bots}}''
| |
− | <translate>
| |
− | <!--T:535-->
| |
− | You might want to use the <tvar|1>{{ll|Manual:Pywikibot|Pywikibot}}</> framework.
| |
− |
| |
− | === How do I change noindex nofollow === <!--T:536-->
| |
− |
| |
− | <!--T:537-->
| |
− | Set <tvar|code><code>{{ll|Manual:$wgNoFollowLinks|$wgNoFollowLinks}} = false;</code></> in <tvar|1>{{ll|Manual:LocalSettings.php|LocalSettings.php}}</>
| |
− |
| |
− | === How do I create a small [[w:en:Wiki_farm|wiki farm]]? === <!--T:538-->
| |
− | </translate>
| |
− |
| |
− | :''<translate><!--T:710--> See:</translate> {{ll|Manual:Wiki family}}''
| |
− |
| |
− | <translate>
| |
− | === How do I add [[w:Meta element|meta tags]]? === <!--T:540-->
| |
− |
| |
− | <!--T:541-->
| |
− | The OutputPage class includes an addMeta method which can be used to add meta tags.</translate>
| |
− | <translate>
| |
− | <!--T:542-->
| |
− | The [[RequestContext]] can be used to get the relevant OutputPage object.
| |
− |
| |
− | <!--T:543-->
| |
− | To add further Meta tags just add further lines as last lines of the function addMetaTags() like:</translate>
| |
− |
| |
− | $out->addMeta ( 'description', 'This is a meta description.' );
| |
− |
| |
− | <translate>
| |
− | ==Why...?== <!--T:544-->
| |
− |
| |
− | ===…is the Help namespace empty?=== <!--T:545-->
| |
− |
| |
− | <!--T:546-->
| |
− | The Help namespace currently ships in a blank state.</translate>
| |
− | <translate>
| |
− | <!--T:547-->
| |
− | It's up to you how much or how little help you give to your site visitors and whether this relates to other aspects of your site.</translate>
| |
− | <translate>
| |
− | <!--T:548-->
| |
− | Obviously you can easily link your visitors to help resources elsewhere.</translate>
| |
− |
| |
− | <translate>
| |
− | <!--T:549-->
| |
− | We don't currently have a clean, internationalised set of help pages under a free license.</translate>
| |
− | <translate>
| |
− | <!--T:550-->
| |
− | However, if you want to copy in some help information onto your site, about how to use a wiki (a MediaWiki powered wiki) you are free to copy the <tvar|1>{{ll|Help:Contents}}</> from this wiki.</translate>
| |
− | <translate>
| |
− | <!--T:551-->
| |
− | This set of pages have been deliberately created for this purpose, with wiki-neutral information, and no license restrictions.</translate>
| |
− | <translate>
| |
− | <!--T:552-->
| |
− | See [[Project:PD help]]. More help is available at the Meta-Wiki [[m:Help:Contents|MediaWiki Handbook]].
| |
− |
| |
− | ===…are some of my images not showing up after an upgrade?=== <!--T:553-->
| |
− |
| |
− | <!--T:554-->
| |
− | Several users have reported that, following an upgrade or a moving of their wiki, several images fail to be shown inline.</translate>
| |
− | <translate>
| |
− | <!--T:555-->
| |
− | The files exist, and the image description pages show a MIME type of <tvar|1><code>unknowncode>/unknown</code></> and, in some cases, a warning about potentially dangerous files.
| |
− |
| |
− | <!--T:556-->
| |
− | To fix this, run the <tvar|1><code>maintenance/rebuildImages.php</code></> script from the command line.</translate>
| |
− | <translate>
| |
− | <!--T:557-->
| |
− | This will set MIME information for each file in the database.
| |
− |
| |
− | <!--T:683-->
| |
− | Recent versions of MediaWiki implement [[<tvar|ResponsiveImages>Special:MyLanguage/Manual:$wgResponsiveImages</>|responsive images]].</translate>
| |
− | <translate>
| |
− | <!--T:684-->
| |
− | Due to [[<tvar|bug>phab:T181987</>|a bug]], if the server locale is set to one that uses commas instead of dots for representing a decimal point, images may not render on some browsers/devices.</translate>
| |
− | <translate>
| |
− | <!--T:685-->
| |
− | This can be confirmed by inspecting a thumbnail of a medium or big image on a page with the browser tools, looking at the HTML code, and see if the <tvar|1><code>srcset</code></> attribute contains commas instead of dots when representing the <tvar|2><code>1.5x</code></> value.
| |
− |
| |
− | ===…are all PNG files not being turned into thumbnails?=== <!--T:558-->
| |
− |
| |
− | <!--T:559-->
| |
− | After upgrading to a more recent version of PHP, it is possible a different MimeMagic.php function is being used to detect file MIME types, particularly the built-in PHP function mime_content_type, which fails to detect PNG files.</translate>
| |
− | <translate>
| |
− | <!--T:560-->
| |
− | Search the web for <tvar|1>''mime_content_type png''</> for information on fixing this bug at the PHP level, possibly by editing your magic.mime file.
| |
− |
| |
− | <!--T:561-->
| |
− | See [[<tvar|1>#"File is corrupt or has an invalid extension"</>|here]] for more info.
| |
− |
| |
− | ===…can't I download MediaWiki {{padright:{{#expr:{{MW stable branch number}}+.01}}|4}}?=== <!--T:567-->
| |
− |
| |
− | <!--T:568-->
| |
− | MediaWiki {{padright:{{#expr:{{MW stable branch number}}+.01}}|4}} is in a development state at present, and has not been packaged into a general release.</translate>
| |
− | <translate>
| |
− | <!--T:569-->
| |
− | The code can be [[<tvar|1>Special:MyLanguage/Download from Git</>|downloaded from Git]] if desired.</translate>
| |
− | <translate>
| |
− | <!--T:570-->
| |
− | Or, if you want the latest development version packaged as an archive, get it at {{MW alpha branch link}} (GitHub).
| |
− |
| |
− | ===…doesn't this work? It works on Wikipedia!=== <!--T:571-->
| |
− |
| |
− | <!--T:572-->
| |
− | Wikipedia and other Wikimedia web sites use the current version of the code in development; at present, this is MediaWiki {{CURRENTVERSION}}, pulled from the current development branch.</translate>
| |
− | <translate>
| |
− | <!--T:573-->
| |
− | Coupled with the use of several extensions, this means that functionality between these wikis and your particular setup may differ.
| |
− |
| |
− | <!--T:574-->
| |
− | *To obtain the current development code, read [[<tvar|1>Special:MyLanguage/Download from Git</>|Download from Git]]</translate>
| |
− | <translate>
| |
− | <!--T:575-->
| |
− | *To check what version a Wikimedia wiki is running, as well as what extensions are installed, visit the [[Special:Version]] page for that wiki</translate>
| |
− | <translate>
| |
− | <!--T:715-->
| |
− | * You may also be missing several <tvar|1>{{ll|Manual:Extensions|nsp=0}}</> that are installed on Wikipedia, see [[<tvar|2>#Templates imported from other wikis (such as Wikipedia) don't work for me</>|#Templates imported from other wikis (such as Wikipedia) don't work for me]]
| |
− |
| |
− | ===…do I get a '''403 Forbidden''' error after setting permissions on my Fedora system?=== <!--T:576-->
| |
− |
| |
− | <!--T:577-->
| |
− | Fedora Core enables <tvar|1>{{ll|SELinux}}</> by default.</translate>
| |
− | <translate>
| |
− | <!--T:578-->
| |
− | Instructions for setting SELinux permissions for MediaWiki [[<tvar|1>Special:MyLanguage/SELinux</>|are available]].
| |
− |
| |
− | ===…do I get ''Installing some external dependencies (e.g. via composer) is required''?=== <!--T:686-->
| |
− |
| |
− | <!--T:687-->
| |
− | Many web hotels only handle zip archives, and we only provide gz compressed tar archives, thus the archives has to be recompressed before uploading.</translate>
| |
− | <translate>
| |
− | <!--T:688-->
| |
− | This should not be much of a hurdle, but it seems like some archive tools occasionally fails to include all files in large archives.</translate>
| |
− | <translate>
| |
− | <!--T:689-->
| |
− | When this happen the vendor folder is left out, leaving the user with the rather non-explanatory error message.
| |
− |
| |
− | <!--T:690-->
| |
− | Use a command line tool when recompressing the tar archive into a zip archive.
| |
− |
| |
− | ===…do I get logged out constantly?=== <!--T:579-->
| |
− |
| |
− | <!--T:580-->
| |
− | This is probably related to cookies or session data. See [[m:Help:Logging in#Log in problems|Log in problems]] for information.
| |
− |
| |
− | <!--T:682-->
| |
− | If this is happening constantly to all users, it probably means that caching is misconfigured. Setting <tvar|1><code>$wgSessionCacheType = CACHE_DB;</code></> can be used to determine if caching is the cause of the problem. If that solves the problem, you should still investigate what is wrong with your caching configuration.
| |
− | </translate>
| |
− | <translate>
| |
− | ===…is it a good idea to keep user accounts?=== <!--T:583-->
| |
− | </translate>
| |
− | {{outdated|1=<translate><!--T:716--> Manual edits to rev_user fields in the database; MediaWiki uses the <tvar|1>{{ll|Manual:actor table|actor}}</> table now</translate>}}
| |
− | <translate>
| |
− | <!--T:584-->
| |
− | At many times you just want to remove a user account out of the wiki either because it belonged to a spammer account or you just feel like it.</translate>
| |
− | <translate>
| |
− | <!--T:585-->
| |
− | The appropriate choice is to block the account or rename it if needed.</translate>
| |
− | <translate>
| |
− | <!--T:586-->
| |
− | Here is why:
| |
− |
| |
− | <!--T:587-->
| |
− | ''Do I just remove this row from the [[User table]]?''
| |
− |
| |
− | <!--T:588-->
| |
− | [[mailarchive:wikitech-l/2007-June/031566.html|Rob Church posted the following]] regarding this issue on the wikitech-l mailing list:
| |
− | </translate>
| |
− |
| |
− | {{quote|text=
| |
− | <translate>
| |
− | <!--T:589-->
| |
− | If the user has made edits, then removing rows from the user table
| |
− | cause theoretical loss of referential integrity.</translate> <translate><!--T:590-->
| |
− | Now, to be honest
| |
− | with you, I can't think of any conditions where this would cause an
| |
− | actual problem; "undefined behaviour" is the phrase we use.
| |
− |
| |
− | <!--T:591-->
| |
− | What I'd suggest doing, to be on the safe side, is running a couple of
| |
− | quick updates against the database:
| |
− | </translate>
| |
− |
| |
− | :<syntaxhighlight lang="sql">UPDATE revision SET rev_user = 0 WHERE rev_user = <current_user_id></syntaxhighlight>
| |
− | :<syntaxhighlight lang="sql">UPDATE archive SET ar_user = 0 WHERE ar_user = <current_user_id></syntaxhighlight>
| |
− |
| |
− | <translate>
| |
− | <!--T:592-->
| |
− | What this will do is cause MediaWiki to treat the revisions as having
| |
− | been made anonymously when generating things like page histories,
| |
− | which should eliminate any problems caused by these routines
| |
− | attempting to check user details from other tables.
| |
− |
| |
− | <!--T:593-->
| |
− | If the user has caused log entries, i.e. rows in the logging table, or
| |
− | uploaded images, then the situation becomes trickier, as you'll have
| |
− | to start mopping up all the rows everywhere and it could become a bit
| |
− | of a mess, so if the user's done anything other than edit, I would
| |
− | strongly recommend just blocking them indefinitely.
| |
− |
| |
− | <!--T:594-->
| |
− | If the username is offensive or undesirable, then you could consider
| |
− | renaming it using the <tvar|1>{{ll|Extension:Renameuser|RenameUser}}</> extension.
| |
− | </translate>
| |
− | }}
| |
− |
| |
− | <translate>
| |
− | <!--T:595-->
| |
− | Another option is to give Admins the [[Manual:User_rights|'hideuser']] right, and indefinitely block the user with the ''Hide username from edits and lists'' option selected.
| |
− |
| |
− | <!--T:596-->
| |
− | <tvar|1>{{ll|Extension:UserMerge}}</> is also useful.
| |
− |
| |
− | ===…is the number of pages so low on Special:Statistics?=== <!--T:699-->
| |
− |
| |
− | <!--T:700-->
| |
− | [[<tvar|1>phab:source/mediawiki/browse/master/includes/DefaultSettings.php</>|By default]], <tvar|2>{{ll|Manual:$wgArticleCountMethod|<code>$wgArticleCountMethod</code>}}</> is set to <tvar|3><code>link</code></>.</translate>
| |
− | <translate>
| |
− | <!--T:701-->
| |
− | This means the number of "Content pages" on the <tvar|1>[[Special:Statistics]]</> page only counts pages which include at least one internal link.</translate>
| |
− | <translate>
| |
− | <!--T:702-->
| |
− | This can be changed by setting <tvar|1><code>$wgArticleCountMethod</code></> to <tvar|2><code>any</code></>.</translate>
| |
− | <translate>
| |
− | <!--T:703-->
| |
− | Afterwards, run <tvar|1>{{ll|Manual:UpdateArticleCount.php|<code>updateArticleCount.php</code>}}</> and/or <tvar|2>{{ll|Manual:InitSiteStats.php|<code>initSiteStats.php</code>}}</>.</translate>
| |
− | <translate>
| |
− | <!--T:704-->
| |
− | (On Wikimedia websites, <tvar|1><code>initSiteStats.php</code></> is run on the 1st and 15th of each month.)</translate>
| |
− | <translate>
| |
− | <!--T:705-->
| |
− | There might still be wrong behavior, see for example <tvar|1>[[phab:T212706]]</>.
| |
− |
| |
− | ==Anti-spam== <!--T:597-->
| |
− |
| |
− | ===Where do I get the spam blacklist from and how do I install it?=== <!--T:598-->
| |
− |
| |
− | <!--T:599-->
| |
− | The [[<tvar|1>m:Spam blacklist</>|spam blacklist]] extension can be found in [[<tvar|2>Special:MyLanguage/Download from Git</>|Git]], just like all other officially supported extensions.</translate>
| |
− | <translate>
| |
− | <!--T:600-->
| |
− | For installation and configuration instructions, consult the <tvar|1>{{git file|project=mediawiki/extensions/SpamBlacklist|file=README|branch=HEAD|text=README}}</> file and <tvar|2>{{ll|Extension:SpamBlacklist}}</> over here.
| |
− |
| |
− | ===How do I use $wgSpamRegex to block more than one string?=== <!--T:601-->
| |
− |
| |
− | <!--T:602-->
| |
− | <tvar|1>{{ll|Manual:$wgSpamRegex|$wgSpamRegex}}</> is a powerful filter for page content.</translate>
| |
− | <translate>
| |
− | <!--T:603-->
| |
− | Adding multiple items to the regex, however, can be awkward.</translate>
| |
− | <translate>
| |
− | <!--T:604-->
| |
− | Consider this snippet:
| |
− | </translate>
| |
− |
| |
− | <syntaxhighlight lang="php">
| |
− | $wgSpamRegexLines[] = 'display\s*:\s*none';
| |
− | $wgSpamRegexLines[] = 'overflow\s*:\s*auto';
| |
− | [...]
| |
− | $wgSpamRegex = '/(' . implode( '|', $wgSpamRegexLines ) . ')/i';
| |
− | </syntaxhighlight>
| |
− |
| |
− | <translate>
| |
− | <!--T:605-->
| |
− | This example code allows convenient addition of additional items to the regex without fiddling about each time.</translate>
| |
− | <translate>
| |
− | <!--T:606-->
| |
− | It also demonstrates two popular filters, which block some of the most common spam attacks.
| |
− | </translate>
| |
− |
| |
− | :''<translate><!--T:711--> See also:</translate>'' {{ll|Extension:SpamRegex}}
| |
− |
| |
− | <translate>
| |
− | ===Are there additional ways to fight spam?=== <!--T:608-->
| |
− |
| |
− | <!--T:609-->
| |
− | See '''[[Manual:Combating spam]]''' for an overview of anti-spam measures such as Captcha, content filtering and restricting edition.
| |
− |
| |
− | ==Anti-vandalism== <!--T:610-->
| |
− |
| |
− | <!--T:611-->
| |
− | See '''[[Manual:Combating vandalism]]''' for hints and suggestions on how to deal with wiki vandalism.
| |
− |
| |
− | ==Where now?== <!--T:612-->
| |
− |
| |
− | ===I've found a bug or have a feature request. Where do I post it?=== <!--T:613-->
| |
− |
| |
− | <!--T:614-->
| |
− | Bugs and feature requests should be posted on <tvar|1>{{ll|Phabricator}}</>.</translate>
| |
− | <translate>
| |
− | <!--T:615-->
| |
− | See [[Special:MyLanguage/How to report a bug|How to report a bug]].
| |
− |
| |
− | ===I'm getting a strange error. What now?=== <!--T:616-->
| |
− |
| |
− | <!--T:617-->
| |
− | *See if it is covered by <tvar|1>{{ll|Manual:Errors and Symptoms}}</></translate>
| |
− | <translate>
| |
− | <!--T:618-->
| |
− | *Try to find out more about the problem, see <tvar|1>{{ll|Manual:How to debug}}</></translate>
| |
− | <translate>
| |
− | <!--T:619-->
| |
− | *See the [[<tvar|1>#Still no luck. Where can I ask for help?</>|section below]] for information on how to contact [[developers]] and other knowledgable users.
| |
− |
| |
− | === I tried that but it didn't work === <!--T:621-->
| |
− | </translate>
| |
− |
| |
− | :<translate><!--T:622--> ''I had a problem, I came to this page and it told me how to fix it.</translate> <translate><!--T:623-->
| |
− | But it didn't work, the problem is still there!!!!''
| |
− |
| |
− | <!--T:624-->
| |
− | Nine times out of ten this is because you didn't [[<tvar|1>#How do I purge a cached page?</>|clear your cache]].</translate>
| |
− | <translate>
| |
− | <!--T:625-->
| |
− | The simple test for this is to request a page that hasn't been requested before.</translate>
| |
− | <translate>
| |
− | <!--T:626-->
| |
− | Select the part of the URL in the address bar that contains the page title (e.g. Main_Page).</translate>
| |
− | <translate>
| |
− | <!--T:627-->
| |
− | Twiddle your fingers on the keyboard for a while, hit enter.</translate>
| |
− | <translate>
| |
− | <!--T:628-->
| |
− | Check if the problem is on that page too.
| |
− |
| |
− | <!--T:629-->
| |
− | MediaWiki uses both a server-side cache and a client-side cache, so clearing your browser cache is often not enough.</translate>
| |
− | <translate>
| |
− | <!--T:630-->
| |
− | See the [[<tvar|1>#How do I purge a cached page?</>|relevant entry above]] for more details.
| |
− |
| |
− | <!--T:631-->
| |
− | Here are some other things to check:</translate>
| |
− | <translate>
| |
− | <!--T:632-->
| |
− | * Were you editing the right file? Try inserting some garbage into the file you edited, does it break anything?</translate>
| |
− | <translate>
| |
− | <!--T:633-->
| |
− | ** A great debugging tool in this case is to create a file called phpinfo.php, containing only <tvar|1><code><?php phpinfo() ?></code></>.</translate> <translate><!--T:634--> Upload it into your web directory and invoke it with your browser.</translate> <translate><!--T:635--> Check the document root and the path to php.ini.</translate>
| |
− | <translate>
| |
− | <!--T:636-->
| |
− | * Were you editing the right part of the file?</translate> <translate><!--T:637--> Did you create a duplicate entry in php.ini?</translate> <translate><!--T:638--> Add new settings to the end of LocalSettings.php, not to the beginning.</translate>
| |
− | <translate>
| |
− | <!--T:639-->
| |
− | * If you created a .htaccess, are you sure AllowOverrides is on?</translate> <translate><!--T:640-->
| |
− | Ask your hosting provider.
| |
− |
| |
− | ===I have a question not answered here. Where do I go next?=== <!--T:641-->
| |
− |
| |
− | <!--T:642-->
| |
− | If you've exhausted the FAQ above, please try the following:
| |
− |
| |
− | <!--T:643-->
| |
− | *Check the [[Project:Help|other sources of help]] on this site</translate>
| |
− | <translate>
| |
− | <!--T:644-->
| |
− | *[[Special:Search|Search]] the rest of this site</translate>
| |
− | <translate>
| |
− | <!--T:646-->
| |
− | *Search the web</translate>
| |
− | <translate>
| |
− | <!--T:647-->
| |
− | *[[How to become a MediaWiki hacker|Dig into the source]]</translate>
| |
− | <translate>
| |
− | <!--T:648-->
| |
− | *See the [[<tvar|1>#Still no luck. Where can I ask for help?</>|section below]] for information on how to contact developers and other knowledgeable users.</translate>
| |
− |
| |
− | {{anchor|Still no luck. Where can I ask for help?}}
| |
− |
| |
− | <translate>
| |
− | ===Still no luck. Where can I ask for help?=== <!--T:649-->
| |
− |
| |
− | <!--T:650-->
| |
− | *Post a message at [[Project:Support desk]]</translate>
| |
− | <translate>
| |
− | <!--T:651-->
| |
− | *Email the [[mail:mediawiki-l|mediawiki-l mailing list]] (try and [http://dir.gmane.org/gmane.org.wikimedia.mediawiki search the archive] first).</translate>
| |
− | <translate>
| |
− | <!--T:652-->
| |
− | *Ask the [[developers]] in our [[MediaWiki on IRC|IRC channel]].
| |
− |
| |
− | ===Recommended reading=== <!--T:653-->
| |
− |
| |
− | <!--T:654-->
| |
− | *[http://www.catb.org/~esr/faqs/smart-questions.html Asking smart questions]</translate>
| |
− | <translate>
| |
− | <!--T:655-->
| |
− | *[http://www.chiark.greenend.org.uk/~sgtatham/bugs.html Effective bug reporting]</translate>
| |
− | <translate>
| |
− | <!--T:656-->
| |
− | *[http://workaround.org/getting-help-on-irc Getting help on IRC]</translate>
| |
− | <translate>
| |
− | <!--T:657-->
| |
− | *[[Books about MediaWiki]]
| |
− | </translate>
| |
− |
| |
− | [[Category:Manual{{#translation:}}]]
| |
− | [[Category:Configure{{#translation:}}]]
| |