Index: tags/extensions/SubPageList/REL_0_5/SubPageList.i18n.magic.php |
— | — | @@ -0,0 +1,80 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Internationalization file for magic words in the SubPageList extension. |
| 5 | + * |
| 6 | + * @file SubPageList.i18n.magic.php |
| 7 | + * @ingroup SPL |
| 8 | + * |
| 9 | + * @licence GNU GPL v3 or later |
| 10 | + * |
| 11 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 12 | + */ |
| 13 | + |
| 14 | +$magicWords = array(); |
| 15 | + |
| 16 | +/** English (English) */ |
| 17 | +$magicWords['en'] = array( |
| 18 | + 'splist' => array( 0, 'splist' ), |
| 19 | + 'subpages' => array( 0, 'subpages' ), |
| 20 | +); |
| 21 | + |
| 22 | +/** Arabic (العربية) */ |
| 23 | +$magicWords['ar'] = array( |
| 24 | + 'splist' => array( 0, 'قائمة_صف' ), |
| 25 | + 'subpages' => array( 0, 'صفحات_فرعية' ), |
| 26 | +); |
| 27 | + |
| 28 | +/** Bulgarian (Български) */ |
| 29 | +$magicWords['bg'] = array( |
| 30 | + 'subpages' => array( 0, 'подстраници' ), |
| 31 | +); |
| 32 | + |
| 33 | +/** Breton (Brezhoneg) */ |
| 34 | +$magicWords['br'] = array( |
| 35 | + 'subpages' => array( 0, 'ispajennoù' ), |
| 36 | +); |
| 37 | + |
| 38 | +/** German (Deutsch) */ |
| 39 | +$magicWords['de'] = array( |
| 40 | + 'splist' => array( 0, 'unterseitenliste' ), |
| 41 | + 'subpages' => array( 0, 'unterseiten' ), |
| 42 | +); |
| 43 | + |
| 44 | +/** Macedonian (Македонски) */ |
| 45 | +$magicWords['mk'] = array( |
| 46 | + 'splist' => array( 0, 'пссписок' ), |
| 47 | + 'subpages' => array( 0, 'потстраници' ), |
| 48 | +); |
| 49 | + |
| 50 | +/** Nedersaksisch (Nedersaksisch) */ |
| 51 | +$magicWords['nds-nl'] = array( |
| 52 | + 'splist' => array( 0, 'splieste' ), |
| 53 | +); |
| 54 | + |
| 55 | +/** Dutch (Nederlands) */ |
| 56 | +$magicWords['nl'] = array( |
| 57 | + 'splist' => array( 0, 'splijst' ), |
| 58 | + 'subpages' => array( 0, 'subpaginas', 'subpagina\'s' ), |
| 59 | +); |
| 60 | + |
| 61 | +/** Polish (Polski) */ |
| 62 | +$magicWords['pl'] = array( |
| 63 | + 'subpages' => array( 0, 'podstrony' ), |
| 64 | +); |
| 65 | + |
| 66 | +/** Serbian (Cyrillic script) (Српски (ћирилица)) */ |
| 67 | +$magicWords['sr-ec'] = array( |
| 68 | + 'splist' => array( 0, 'подсписак', 'под_списак' ), |
| 69 | + 'subpages' => array( 0, 'подстранице', 'подстране' ), |
| 70 | +); |
| 71 | + |
| 72 | +/** Serbian (Latin script) (Srpski (latinica)) */ |
| 73 | +$magicWords['sr-el'] = array( |
| 74 | + 'splist' => array( 0, 'podspisak', 'pod_spisak' ), |
| 75 | + 'subpages' => array( 0, 'podstranice', 'podstrane' ), |
| 76 | +); |
| 77 | + |
| 78 | +/** Simplified Chinese (中文(简体)) */ |
| 79 | +$magicWords['zh-hans'] = array( |
| 80 | + 'subpages' => array( 0, '子页面' ), |
| 81 | +); |
\ No newline at end of file |
Property changes on: tags/extensions/SubPageList/REL_0_5/SubPageList.i18n.magic.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 82 | + native |
Index: tags/extensions/SubPageList/REL_0_5/INSTALL |
— | — | @@ -0,0 +1,57 @@ |
| 2 | +These is the install file for the SubPageList extension. |
| 3 | + |
| 4 | +Extension page on mediawiki.org: http://www.mediawiki.org/wiki/Extension:SubPageList |
| 5 | +Latest version of the install file: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SubPageList/INSTALL?view=co |
| 6 | + |
| 7 | + |
| 8 | +== Download == |
| 9 | + |
| 10 | +You can find the current version of SubPageList on the [https://code.google.com/p/subpagelist/downloads/list Google Code download page], |
| 11 | +as well as a [https://code.google.com/p/subpagelist/downloads/list?can=1 list of legacy downloads]. |
| 12 | + |
| 13 | +You can also get the code directly from SVN. Tags can be obtained via |
| 14 | + |
| 15 | + svn checkout <nowiki>http://svn.wikimedia.org/svnroot/mediawiki/tags/extensions/SubPageList/REL_version</nowiki> |
| 16 | + |
| 17 | +Where 'version' is the version number of the tag, such as 0_1 (see the [http://svn.wikimedia.org/svnroot/mediawiki/tags/extensions/SubPageList/ available tags]). |
| 18 | +The latest code can be obtained from trunk: |
| 19 | + |
| 20 | + svn checkout <nowiki>http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/SubPageList/</nowiki> |
| 21 | + |
| 22 | +SubPageList requires [[Extension:Validator|Validator]] 0.4.2 or above in order to work. A compatible |
| 23 | +copy of Validator always comes bundled with the regular releases, and is automatically loaded by SubPageList, |
| 24 | +so you do not need to worry about it when using one of these. If you are getting the code from SVN, make |
| 25 | +sure you also get a copy of Validator ([[Extension:Validator#Download|see here for instructions]]). |
| 26 | + |
| 27 | +== Installation == |
| 28 | + |
| 29 | +Once you have downloaded the code, place the ''SubPageList'' and ''Validator'' directories within your |
| 30 | +MediaWiki 'extensions' directory. Then add the following code to your [[Manual:LocalSettings.php|LocalSettings.php]] file: |
| 31 | + |
| 32 | +<source lang="php"> |
| 33 | +# SubPageList |
| 34 | +require_once( "$IP/extensions/SubPageList/SubPageList.php" ); |
| 35 | +</source> |
| 36 | + |
| 37 | +== Configuration == |
| 38 | + |
| 39 | +Configuration of SubPageList is done by adding simple PHP statements to your [[Manual:LocalSettings.php|LocalSettings.php]] |
| 40 | +file. These statements need to be placed AFTER the inclusion of SubPageList. The options are listed below and their default |
| 41 | +is set in the [http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SubPageList/SubPageList.settings.php?view=markup SubPageList settings file]. |
| 42 | +You should NOT modify the settings file, but can have a look at it to get an idea of how to use the settings, in case the below descriptions do not suffice. |
| 43 | + |
| 44 | +As of version 0.3, you can choose to automatically refresh subpage lists |
| 45 | +that are on the base page of subpages you add, move or delete, or on one |
| 46 | +of the subpages of the base page. This behaviour is off by default as it |
| 47 | +can produce extra load on your server, but can be turned on with this code: |
| 48 | + |
| 49 | +$egSPLAutorefresh = true; |
| 50 | + |
| 51 | +=== General subpage settings === |
| 52 | + |
| 53 | +MediaWiki itself has some support for subpages, which causes back links |
| 54 | +to be displayed on subpages to their parent pages. To enable this you |
| 55 | +need to set [[Manual:$wgNamespacesWithSubpages|wgNamespacesWithSubpages]], |
| 56 | +which is a per namespace setting, like shown below: |
| 57 | + |
| 58 | +$wgNamespacesWithSubpages[NS_MAIN] = 1; |
Property changes on: tags/extensions/SubPageList/REL_0_5/INSTALL |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 59 | + native |
Index: tags/extensions/SubPageList/REL_0_5/RELEASE-NOTES |
— | — | @@ -0,0 +1,48 @@ |
| 2 | +These are the release notes for the SubPageList extension. |
| 3 | + |
| 4 | +Extension page on mediawiki.org: http://www.mediawiki.org/wiki/Extension:SubPageList |
| 5 | +Latest version of the release notes: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SubPageList/RELEASE-NOTES?view=co |
| 6 | + |
| 7 | + |
| 8 | +=== Version 0.5 === |
| 9 | +2011-12-27 |
| 10 | + |
| 11 | +* Added compatibility with MediaWiki 1.18 and 1.19. |
| 12 | +* Dropped compatibility with MediaWiki 1.15. |
| 13 | +* Added #subpagecount parser hook. |
| 14 | +* Fixed invalid HTML for ul and ol formats (bug 32131). |
| 15 | + |
| 16 | +=== Version 0.4 === |
| 17 | +2011-07-27 |
| 18 | + |
| 19 | +* Added parameters for better output control: element, class, intro, |
| 20 | + outro, default, separator, template, links. |
| 21 | +* Added ability to list pages in a namespace. |
| 22 | +* Fixed compatibility with MediaWiki 1.18. |
| 23 | + |
| 24 | +=== Version 0.3 === |
| 25 | +2011-03-05 |
| 26 | + |
| 27 | +* Added $egSPLAutorefresh option. |
| 28 | +* Fix to display of the first list item. |
| 29 | +* Fixed inverted behaviour of the kidsonly parameter. |
| 30 | +* Fixed query issue when using PostGres. |
| 31 | + |
| 32 | +=== Version 0.2 === |
| 33 | +2011-01-24 |
| 34 | + |
| 35 | +* Fixed escaping issue when using the parser function. |
| 36 | +* Fixed bug in pathstyle and sortby parameters. |
| 37 | +* Added parameter descriptions. |
| 38 | + |
| 39 | +=== Version 0.1 === |
| 40 | +2010-12-31 |
| 41 | + |
| 42 | +* Copied the code of SubPageList3 and ... |
| 43 | +** Modified code to make use of Validator for parameter handling. |
| 44 | +** Rewrote most code of the SubPageList class. |
| 45 | +** Fixed namespace bug. |
| 46 | +** Fixed several minor layout issues. |
| 47 | +** Added alias file. |
| 48 | +** Added COPYING, INSTALL, README and RELEASE-NOTES. |
| 49 | +** Cleaned up and corrected formatting. |
Property changes on: tags/extensions/SubPageList/REL_0_5/RELEASE-NOTES |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 50 | + native |
Index: tags/extensions/SubPageList/REL_0_5/SubPageList.i18n.php |
— | — | @@ -0,0 +1,514 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * Internationalization file for the SubPageList extension. |
| 6 | + * |
| 7 | + * @file SubPageList.i18n.php |
| 8 | + * @ingroup SPL |
| 9 | + * |
| 10 | + * @licence GNU GPL v3 or later |
| 11 | + * |
| 12 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 13 | + */ |
| 14 | + |
| 15 | +$messages = array(); |
| 16 | + |
| 17 | +/** English |
| 18 | + * @author Jeroen De Dauw |
| 19 | + */ |
| 20 | +$messages['en'] = array( |
| 21 | + 'spl-desc' => 'Adds a <code><nowiki><splist /></nowiki></code> tag that enables you to list subpages', |
| 22 | + |
| 23 | + 'spl-nosubpages' => 'Page "$1" has no subpages to list.', |
| 24 | + 'spl-noparentpage' => 'Page "$1" does not exist.', |
| 25 | + 'spl-nopages' => 'Namespace "$1" does not have pages.', |
| 26 | + |
| 27 | + 'spl-subpages-par-sort' => 'The direction to sort in. Allowed values: "asc" and "desc".', |
| 28 | + 'spl-subpages-par-sortby' => 'What to sort the subpages by. Allowed values: "title" or "lastedit".', |
| 29 | + 'spl-subpages-par-format' => 'The subpage list can be displayed in several formats. Allowed values: "ol" — ordered (numbered) list, "ul" — unordered (bulleted) lists, "list" — plain lists (for example comma-separated list).', |
| 30 | + 'spl-subpages-par-page' => 'The page to show the subpages for, or namespace name (including trailing colon) to show pages in. Defaults to the current page.', |
| 31 | + 'spl-subpages-par-showpage' => 'Indicates if the page itself should be shown in the list or not.', |
| 32 | + 'spl-subpages-par-pathstyle' => 'The style of the path for subpages in the list. Allowed values: "fullpagename" — full page name (including namespace), "pagename" — page name (without namespace), "subpagename" — relative page name starting from the page we list subpages for, "none" — just the trailing part of the name after last slash.', |
| 33 | + 'spl-subpages-par-kidsonly' => 'Allows showing only direct subpages.', |
| 34 | + 'spl-subpages-par-limit' => 'The maximum number of pages to list.', |
| 35 | + 'spl-subpages-par-element' => 'The HTML element enclosing the list (including "intro" and "outro" or "default" texts). Allowed values: "div", "p", "span".', |
| 36 | + 'spl-subpages-par-class' => 'The value for "class" attribute of HTML element enclosing the list.', |
| 37 | + 'spl-subpages-par-intro' => 'The text to output before the list, if the list is not empty.', |
| 38 | + 'spl-subpages-par-outro' => 'The text to output after the list, if the list is not empty.', |
| 39 | + 'spl-subpages-par-default' => 'The text to output instead of the list, if the list is empty. If empty, error message will rendered (such as "Page has no subpages to list"). If dash ("-"), result will be completely empty.', |
| 40 | + 'spl-subpages-par-separator' => 'The text to output between two list items in case of "list" (and its alias "bar") format. Has no effect in other formats.', |
| 41 | + 'spl-subpages-par-template' => 'The name of template. The template is applied to every item of the list. An item is passed as the first (unnamed) argument. Note that template does not cancel list formatting. Formatting ("ul", "ol", "list") is applied to the template\'s result.', |
| 42 | + 'spl-subpages-par-links' => 'If true, list items are rendered as links. If false, list items are rendered as plain text. The latter is especially helpful for passing items into templates for further processing.', |
| 43 | +); |
| 44 | + |
| 45 | +/** Message documentation (Message documentation) |
| 46 | + * @author Hamilton Abreu |
| 47 | + * @author Purodha |
| 48 | + */ |
| 49 | +$messages['qqq'] = array( |
| 50 | + 'spl-subpages-par-format' => 'I believe, that the brackettet words should not be translated. --[[User:Purodha|Purodha Blissenbach]] 00:04, 21 January 2011 (UTC)', |
| 51 | + 'spl-subpages-par-pathstyle' => 'The parameters "fullpagename", "pagename", "subpagename" and "none" should not be translated!', |
| 52 | +); |
| 53 | + |
| 54 | +/** Belarusian (Taraškievica orthography) (Беларуская (тарашкевіца)) |
| 55 | + * @author EugeneZelenko |
| 56 | + * @author Jim-by |
| 57 | + * @author Renessaince |
| 58 | + * @author Wizardist |
| 59 | + */ |
| 60 | +$messages['be-tarask'] = array( |
| 61 | + 'spl-desc' => 'Дадае тэг <code><nowiki><splist /></nowiki></code>, які выводзіць сьпіс падстаронак', |
| 62 | + 'spl-nosubpages' => 'Старонка «$1» ня мае падстаронак для сьпісу.', |
| 63 | + 'spl-noparentpage' => 'Старонка «$1» не існуе.', |
| 64 | + 'spl-nopages' => 'Прастора назваў «$1» ня ўтрымлівае старонак.', |
| 65 | + 'spl-subpages-par-sort' => 'Напрамак сартаваньня. Дапушчальныя значэньні: "asc" і "desc".', |
| 66 | + 'spl-subpages-par-sortby' => 'Ключ сартаваньня падстаронак. Дапушчальныя значэньні: "title" ці "lastedit".', |
| 67 | + 'spl-subpages-par-format' => 'Сьпіс падстаронак можа быць паказаны ў некалькіх фарматах. Дапушчальныя значэньні: "ol" — нумараваныя сьпісы, "ul" — маркіраваныя сьпісы і "list" — простыя сьпісы (напрыклад, падзеленыя коскамі).', |
| 68 | + 'spl-subpages-par-page' => "Старонка, для якой паказваць сьпіс падстаронак, альбо прастора назваў (улучна з заключным двухкроп'ем), у якой паказваць старонкі. Па змоўчваньні цяперашняя старонка.", |
| 69 | + 'spl-subpages-par-showpage' => 'Паказвае, ці павінна паказвацца старонка ў сьпісе.', |
| 70 | + 'spl-subpages-par-pathstyle' => 'Стыль шляху для падстаронак у сьпісе. Дапушчальныя значэньні: "fullpagename" — поўная назва старонкі (разам з прасторай назваў); "pagename" — назва старонкі (без прасторы назваў); "subpagename" — адносная назва старонкі, пачынаючы са старонкі, для якой пералічваюцца падстаронкі; "none" — толькі заключная частка назвы пасьля апошняй нахільнай рыскі.', |
| 71 | + 'spl-subpages-par-kidsonly' => 'Паказваць толькі прамыя падстаронкі.', |
| 72 | + 'spl-subpages-par-limit' => 'Максымальная колькасьць старонак для паказу.', |
| 73 | + 'spl-subpages-par-element' => 'Элемэнт HTML, які агортвае сьпіс (разам з тэкстамі "intro" і "outro" або "default"). Дапушчальныя значэньні: "div", "p", "span".', |
| 74 | + 'spl-subpages-par-class' => 'Значэньне атрыбуту «class» агортваючага сьпіс элемэнту HTML.', |
| 75 | + 'spl-subpages-par-intro' => 'Тэкст для вываду перад сьпісам, калі той не пусты.', |
| 76 | + 'spl-subpages-par-outro' => 'Тэкст для вываду пасьля сьпісу, калі той не пусты.', |
| 77 | + 'spl-subpages-par-default' => 'Тэкст для вываду замест сьпісу, калі той пусты. Калі не зададзены, будзе згенэраванае паведамленьне пра памылку (кшталту «Старонка ня мае падстаронак для сьпісу»). Калі ж зададзены злучок («-»), выводзіцца пустое значэньне.', |
| 78 | + 'spl-subpages-par-separator' => 'Тэкст для вываду паміж двума элемэнтамі сьпісу ў фарматах «list» і «bar». Для іншых фарматаў ня мае эфэкту.', |
| 79 | + 'spl-subpages-par-template' => 'Назва шаблёну. Шаблён ужываецца для кожнага элемэнту сьпісу. Элемэнт перадаецца як першы (безназоўны) аргумэнт. Заўважце, што шаблён не скасоўвае фарматаваньне сьпісу. Фарматаваньне («ul», «ol», «list») ўжываецца да вынікаў шаблёну.', |
| 80 | + 'spl-subpages-par-links' => 'Калі сапраўдна, элемэнты сьпісу выводзяцца як спасылкі. Калі несапраўдна, выводзяцца як звычайны тэкст. Апошняе асабліва зручна для перадачы элемэнтаў у шаблёны для далейшай апрацоўкі.', |
| 81 | +); |
| 82 | + |
| 83 | +/** Breton (Brezhoneg) |
| 84 | + * @author Fulup |
| 85 | + * @author Y-M D |
| 86 | + */ |
| 87 | +$messages['br'] = array( |
| 88 | + 'spl-desc' => 'Ouzhpennañ a ra ur valizenn <code><nowiki><splist /></nowiki></code> a dalvez da rollañ an ispajennoù', |
| 89 | + 'spl-nosubpages' => 'N\'eus ispajenn ebet da rollañ evit ar bajenn "$1".', |
| 90 | + 'spl-subpages-par-sort' => 'Tu an urzhiañ. Tu zo da lakaat an talvoudennoù : "krsk" ha "digrsk".', |
| 91 | + 'spl-subpages-par-sortby' => 'Penaos urzhiañ an ispajennoù dre. Talvoudennoù aotreet : "title\' pe "lastedit".', |
| 92 | + 'spl-subpages-par-format' => 'Gallout a ra ar roll ispajennoù bezañ diskwelet dre furmadoù disheñvel : rolloù niverennet (ol), rolloù padennek (ul) pe rolloù dispartiet dre skejoù (roll).', |
| 93 | + 'spl-subpages-par-page' => 'Ar bajenn da welet an ispajennoù. Ar bajenn red eo an hini dre ziouer.', |
| 94 | + 'spl-subpages-par-showpage' => 'Merkañ a ra ha rankout a ra ar bajenn bezañ war ar roll pe get.', |
| 95 | + 'spl-subpages-par-pathstyle' => 'Stil hent ispajennoù ar roll.', |
| 96 | + 'spl-subpages-par-kidsonly' => 'Aotren a ra diskouez hepken an ispajennoù eeun', |
| 97 | + 'spl-subpages-par-limit' => 'Niver brasañ a bajennoù da rollañ.', |
| 98 | +); |
| 99 | + |
| 100 | +/** Bosnian (Bosanski) |
| 101 | + * @author CERminator |
| 102 | + */ |
| 103 | +$messages['bs'] = array( |
| 104 | + 'spl-desc' => 'Dodaje <code><nowiki><splist /></nowiki></code> oznaku koja vam omogućuje da pregledate podstranice', |
| 105 | + 'spl-nosubpages' => '$1 nema podstranica za prikaz.', |
| 106 | + 'spl-subpages-par-sort' => 'Smijer za redanje.', |
| 107 | +); |
| 108 | + |
| 109 | +/** German (Deutsch) |
| 110 | + * @author Kghbln |
| 111 | + * @author Purodha |
| 112 | + */ |
| 113 | +$messages['de'] = array( |
| 114 | + 'spl-desc' => 'Ergänzt das Tag <code><nowiki><splist /></nowiki></code> zur Anzeige einer Liste von Unterseiten', |
| 115 | + 'spl-nosubpages' => 'Seite „$1“ verfügt über keine auflistbaren Unterseiten.', |
| 116 | + 'spl-noparentpage' => 'Seite „$1“ ist nicht vorhanden.', |
| 117 | + 'spl-nopages' => 'Im Namensraum „$1“ befinden sich keine Seiten.', |
| 118 | + 'spl-subpages-par-sort' => 'Sortierreihenfolge für die Unterseiten. Mögliche Werte: „asc“ (aufsteigend) und „desc“ (absteigend)', |
| 119 | + 'spl-subpages-par-sortby' => 'Sortierkriterium für die Unterseiten. Mögliche Werte: „titel“ (Titel) und „lastedit“ (letzte Bearbeitung)', |
| 120 | + 'spl-subpages-par-format' => 'Die Liste der Unterseiten kann in verschiedenen Formaten angezeigt werden. Mögliche Werte: „ol“ (sortierte nummerierte Liste), „ul“ (unsortierte Aufzählung) oder „list“ (einfache Liste, bspw. eine kommagetrennte Liste).', |
| 121 | + 'spl-subpages-par-page' => 'Die Seite für welche die Unterseiten oder der Namensraum (einschließlich eines anschließenden Doppelpunkts) für den die enthaltenen Seiten angezeigt werden sollen. Standardmäßig ist dies die aktuelle Seite.', |
| 122 | + 'spl-subpages-par-showpage' => 'Gibt an, ob die Seite selbst in der Liste ihrer Unterseiten angezeigt werden soll oder nicht.', |
| 123 | + 'spl-subpages-par-pathstyle' => 'Anzeigestil für die Pfade in der Liste angezeigten Unterseiten. Mögliche Werte: „fullpagename“ (Seitenname einschließlich des Namensraums), „pagename“ (Seitenname ausschließlich des Namensraums), „subpagename“ (Seitenname der Unterseiten der aktuellen Seite) und „none“ (lediglich der auf den letzten Schrägstrich folgende Teil des Seitennamens).', |
| 124 | + 'spl-subpages-par-kidsonly' => 'Ermöglicht ausschließlich die Anzeige der direkten Unterseiten.', |
| 125 | + 'spl-subpages-par-limit' => 'Die Höchstzahl der aufzulistenden Unterseiten.', |
| 126 | + 'spl-subpages-par-element' => 'Das HTML-Element, das die Liste umschließen soll (einschließlich der Texte „intro“, „outro“ oder „standard“). Mögliche Werte: „div“, „p“, „span“.', |
| 127 | + 'spl-subpages-par-class' => 'Der Wert für das Attribut „class“ des HTML-Elements, das die Liste umschließt.', |
| 128 | + 'spl-subpages-par-intro' => 'Der vor der Liste auszugebende Text („intro“), sofern sie nicht leer ist.', |
| 129 | + 'spl-subpages-par-outro' => 'Der nach der Liste auszugebende Text („outro“), sofern sie nicht leer ist.', |
| 130 | + 'spl-subpages-par-default' => 'Der anstatt einer Liste auszugebende Text („standard“), sofern sie leer ist. Sofern sie leer ist, wird also eine Fehlermeldung, wie bspw. „Zu dieser Seite gibt es keine Unterseiten.“ ausgegeben. Wenn ein Bindestrich („-“) angegeben wird, wird die Ergebnisausgabe vollkommen leer sein.', |
| 131 | + 'spl-subpages-par-separator' => 'Der zwischen den Listenelementen auszugebende Text, sofern die Anzeigeformate „list“ oder „bar“ genutzt wird. Er wird nicht bei anderen Formaten ausgegeben.', |
| 132 | + 'spl-subpages-par-template' => 'Der Name der Vorlage. Die Vorlage wird auf jedes Listenelement angewendet. Ein Listenelement wird als erstes (unbezeichnetes) Argument an die Vorlage übergeben. Es ist zu beachten, dass die Vorlage nicht die Listenformatierung verändert. Die Formatierungsmöglichkeiten „ul“, „ol“ und „list“ werden also auf das in der Vorlage ausgegebene Ergebnis angewendet.', |
| 133 | + 'spl-subpages-par-links' => 'Sofern aktiviert werden die Listenelemente als Links dargestellt. Sofern deaktiviert, werden die Listenelement im Textformat ausgegeben. Letztere Einstellung ist besonders dann hilfreich, wenn man die Ausgabeergebnisse an die Vorlage zur weiteren Verarbeitung weitergibt.', |
| 134 | +); |
| 135 | + |
| 136 | +/** French (Français) |
| 137 | + * @author Gomoko |
| 138 | + * @author Hashar |
| 139 | + * @author Seb35 |
| 140 | + * @author Sherbrooke |
| 141 | + * @author Toliño |
| 142 | + */ |
| 143 | +$messages['fr'] = array( |
| 144 | + 'spl-desc' => 'Ajoute une balise <nowiki><splist /></nowiki> qui permet de lister les sous-pages', |
| 145 | + 'spl-nosubpages' => 'La page « $1 » n’a pas de sous-pages à lister.', |
| 146 | + 'spl-noparentpage' => 'La page « $1 » n’existe pas.', |
| 147 | + 'spl-nopages' => 'L’espace de nom « $1 » n’a pas de pages.', |
| 148 | + 'spl-subpages-par-sort' => 'Le sens de tri. Valeurs permises: "asc" et "desc".', |
| 149 | + 'spl-subpages-par-sortby' => 'Selon quoi trier les sous-pages. Valeurs permises: "title" ou "lastedit".', |
| 150 | + 'spl-subpages-par-format' => 'La liste des sous-pages peut être affichée selon différents formats. Valeurs permises: "ol" - listes ordonnées (numérotées), "ul" - listes non ordonnées (à puces), "list" - listes simples (par exemple liste séparée par des virgules).', |
| 151 | + 'spl-subpages-par-page' => "La page pour afficher les sous-pages, ou l'espace de nommage (y compris le deux-points final) dont les pages sont à afficher. Par défaut, la page courante.", |
| 152 | + 'spl-subpages-par-showpage' => 'Indique si la page elle-même doit figurer dans la liste ou non.', |
| 153 | + 'spl-subpages-par-pathstyle' => 'Le style de chemin pour les sous-pages dans la liste. Valeurs permises: "fullpagename" - nom complet de la page (y compris l\'espace de noms), "pagename" - nom de la page (sans l\'espace de noms), "subpagename" - nom relatif de la page en démarrant de la page depuis laquelle nous listons les sous-pages, "none" - uniquement la dernière partie du nom, après le dernier slash.', |
| 154 | + 'spl-subpages-par-kidsonly' => "Permet de n'afficher que les sous-pages immédiates.", |
| 155 | + 'spl-subpages-par-limit' => 'La quantité maximale de pages à lister.', |
| 156 | + 'spl-subpages-par-element' => 'L\'élément HTML englobant la liste (y compris les textes "intro" et "outro" ou "default"). Valeurs permises: "div", "p", "span".', |
| 157 | + 'spl-subpages-par-class' => "La valeur pour l'attribut HTML « class » encadrant la liste.", |
| 158 | + 'spl-subpages-par-intro' => "Le texte à renvoyer avant la liste, si celle-ci n'est pas vide.", |
| 159 | + 'spl-subpages-par-outro' => "Le texte à renvoyer après la liste, si celle-ci n'est pas vide.", |
| 160 | + 'spl-subpages-par-default' => 'La texte à renvoyer à la place de la liste, si celle-ci est vide. S\'il est vide, un message d\'erreur sera renvoyé (comme "La page n\'a aucune sous-page à lister"). S\'il est mis à un tiret ("-"), le résultat sera complètement vide.', |
| 161 | + 'spl-subpages-par-separator' => 'Le texte à renvoyer entre deux éléments de la liste, dans le cas d\'un format "list" (et son alias "bar"). N\'a pas d\'effet dans les autres formats.', |
| 162 | + 'spl-subpages-par-template' => 'Le nom du modèle. Le modèle est appliqué à chaque élément de la liste. Un élément est passé comme premier argument (non nommé). Remarquez que le modèle n\'annule pas le formatage de la liste. Le formatage ("ul", "ol", "list") est appliqué au résultat du modèle.', |
| 163 | + 'spl-subpages-par-links' => "S'il est vrai, les éléments de liste sont rendus comme des liens. S'il est faux, les éléments de liste sont rendus comme du texte simple. Ce dernier est particulièrement utile pour passer des éléments dans les modèles pour un traitement ultérieur.", |
| 164 | +); |
| 165 | + |
| 166 | +/** Franco-Provençal (Arpetan) |
| 167 | + * @author ChrisPtDe |
| 168 | + */ |
| 169 | +$messages['frp'] = array( |
| 170 | + 'spl-nosubpages' => 'Pâge « $1 » at gins de sot-pâge a ènumèrar.', |
| 171 | + 'spl-noparentpage' => 'Pâge « $1 » ègziste pas.', |
| 172 | + 'spl-nopages' => 'L’èspâço de noms « $1 » contint gins de pâge.', |
| 173 | + 'spl-subpages-par-sort' => "La dirèccion de tri. Valors pèrmêses : « asc » (''crèssent'') et « desc » (''dècrèssent'').", |
| 174 | +); |
| 175 | + |
| 176 | +/** Galician (Galego) |
| 177 | + * @author Toliño |
| 178 | + */ |
| 179 | +$messages['gl'] = array( |
| 180 | + 'spl-desc' => 'Engade unha etiqueta <code><nowiki><splist /></nowiki></code> que permite poñer as subpáxinas nunha lista', |
| 181 | + 'spl-nosubpages' => 'A páxina "$1" non ten subpáxinas que poñer nunha lista.', |
| 182 | + 'spl-noparentpage' => 'A páxina "$1" non existe.', |
| 183 | + 'spl-nopages' => 'O espazo de nomes "$1" non ten páxinas.', |
| 184 | + 'spl-subpages-par-sort' => 'A dirección de ordenación. Valores permitidos: "asc" e "desc".', |
| 185 | + 'spl-subpages-par-sortby' => 'O criterio de ordenación das subpáxinas. Valores permitidos: "title" ou "lastedit"', |
| 186 | + 'spl-subpages-par-format' => 'A lista de subpáxinas pódese mostrar en varios formatos. Valores permitidos: "ol", listas ordenadas (numeradas); "ul", listas desordenadas (con asteriscos); e "list", listas simples (por exemplo, separadas por comas).', |
| 187 | + 'spl-subpages-par-page' => 'A páxina na que mostrar as subpáxinas ou o espazo de nomes (incluídos os dous puntos) no que mostrar as páxinas. A páxina actual é a predeterminada.', |
| 188 | + 'spl-subpages-par-showpage' => 'Indica se a páxina en si debería figurar ou non na lista.', |
| 189 | + 'spl-subpages-par-pathstyle' => 'O estilo da ruta de acceso ás subpáxinas da lista. Valores permitidos: "fullpagename", nome completo da páxina (incluído o espazo de nomes); "pagename", nome da páxina (sen o espazo de nomes); "subpagename", nome relativo da páxina comezando a partir daquela da que se van poñer as subpáxinas nunha lista; e "none", unicamente a parte do nome despois da última barra inclinada.', |
| 190 | + 'spl-subpages-par-kidsonly' => 'Permite mostrar só as subpáxinas directas.', |
| 191 | + 'spl-subpages-par-limit' => 'O número máximo de páxinas a poñer nunha lista.', |
| 192 | + 'spl-subpages-par-element' => 'O elemento HTML que engloba a lista (incluíndo os textos "intro" e "outro" ou "default"). Valores permitidos: "div", "p" e "span".', |
| 193 | + 'spl-subpages-par-class' => 'O valor para o atributo "class" do elemento HTML que engloba a lista.', |
| 194 | + 'spl-subpages-par-intro' => 'O texto que mostrar antes da lista, se esta non está baleira.', |
| 195 | + 'spl-subpages-par-outro' => 'O texto que mostrar despois da lista, se esta non está baleira.', |
| 196 | + 'spl-subpages-par-default' => 'O texto que mostrar no canto da lista, se esta está baleira. Nesta caso, aparecerá unha mensaxe de erro (como "A páxina non ten subpáxinas que poñer nunha lista"). Se o valor fose un guión ("-"), o resultado sería completamente baleiro.', |
| 197 | + 'spl-subpages-par-separator' => 'O texto que mostrar entre dous elementos da lista en caso dun formato "list" (e o seu idéntico "bar"). Non ten efecto sobre outros formatos.', |
| 198 | + 'spl-subpages-par-template' => 'O nome do modelo. O modelo aplícase a cada elemento da lista. Un elemento é tratado como o primeiro argumento (sen nome). Nótese que o modelo non cancelar o formato da lista. O formato ("ul", "ol", "list") aplícase ao resultado do modelo.', |
| 199 | + 'spl-subpages-par-links' => 'Se fose verdadeiro, os elementos da lista preséntanse como ligazóns. En caso de ser falso, os elementos da lista móstranse como texto simple. Isto último é especialmente útil para presentar elementos nos modelos para procesalos posteriormente.', |
| 200 | +); |
| 201 | + |
| 202 | +/** Hebrew (עברית) |
| 203 | + * @author Amire80 |
| 204 | + */ |
| 205 | +$messages['he'] = array( |
| 206 | + 'spl-desc' => 'הוספת התג <code><nowiki><splist /></nowiki></code> ליצירת רשימת דפי־משנה', |
| 207 | + 'spl-nosubpages' => 'לדף "$1" אין דפי משנה שאפשר להציג ברשימה.', |
| 208 | + 'spl-subpages-par-sort' => 'באיזה כיוון למיין.', |
| 209 | + 'spl-subpages-par-sortby' => 'לפי מה למיין את דפי־המשנה.', |
| 210 | + 'spl-subpages-par-format' => 'רשימת דפי־המשנה יכולה להיות מוצגת במספר עיצובים. רשימה ממוספרת (ol), רשימת תבליטים (ul), ורשימה מופרדת בפסיקים (list).', |
| 211 | + 'spl-subpages-par-page' => 'על איזה דף להציג את דפי־המשנה. בררת המחדל: הדף הנוכחי.', |
| 212 | + 'spl-subpages-par-showpage' => 'מציין אם הדף עצמו צריך להיות מוצג ברשימה או לאו.', |
| 213 | + 'spl-subpages-par-pathstyle' => 'סגנון הנתיב אל דפי־המשנה ברשימה.', |
| 214 | + 'spl-subpages-par-kidsonly' => 'מאפשר להראות רק דפי־משנה ישירים.', |
| 215 | + 'spl-subpages-par-limit' => 'המספר המרבי של דפים להציג.', |
| 216 | +); |
| 217 | + |
| 218 | +/** Upper Sorbian (Hornjoserbsce) |
| 219 | + * @author Michawiki |
| 220 | + */ |
| 221 | +$messages['hsb'] = array( |
| 222 | + 'spl-desc' => 'Přidawa element code><nowiki><splist /></nowiki></code>, kotryž ći zmóžnja podstrony nalistować', |
| 223 | + 'spl-nosubpages' => 'Strona "$1" nima podstrony za lisćinu.', |
| 224 | + 'spl-subpages-par-sort' => 'Sortěrowanski porjad. Dowolene hódnoty: "asc" (postupowacy) a "desc" (spadowacy).', |
| 225 | + 'spl-subpages-par-sortby' => 'Sortěrowanski kriterij podstronow. Dowolene hódnoty: "title" (titul) abo "lastedit" (poslednja změna)', |
| 226 | + 'spl-subpages-par-format' => 'Lisćina podstronow hodźi so we wšelakich formatach zwobraznić. Dowolene hódnoty: "ol" - (čisłowana lisćina), "ul" - naličenje (nječisłowana lisćina), "list" - jednora lisćina (za na př. lisćinu z přez komu dźělenymi zapiskami).', |
| 227 | + 'spl-subpages-par-page' => 'Strona, za kotruž maja so podstrony pokazać, abo mjenowy rum (inkluziwnje dwudypka), w kotrymž strony maja so pokazać. Standard je aktualna strona.', |
| 228 | + 'spl-subpages-par-showpage' => 'Podawa, hač strona sama měła so w lisćinje pokazać abo nic.', |
| 229 | + 'spl-subpages-par-pathstyle' => 'Stil šćežki za podstrony w lisćinje. Dowolene hódnoty: "fullpagename" — mjeno strony inkluziwnje mjenoweho ruma, "pagename" — mjeno strony bjez mjenoweho ruma, "subpagename" — relatiwne mjeno strony započinajo ze stronu, za kotruž so podstrony nalistuja, "none" — jenož tón dźěl mjena, kotryž poslednjej nakósnej smužce slěduje.', |
| 230 | + 'spl-subpages-par-kidsonly' => 'Móže jenož direktne podstrony pokazać.', |
| 231 | + 'spl-subpages-par-limit' => 'Maksimalna ličba stronow, kotrež maja so nalsitować.', |
| 232 | +); |
| 233 | + |
| 234 | +/** Interlingua (Interlingua) |
| 235 | + * @author McDutchie |
| 236 | + */ |
| 237 | +$messages['ia'] = array( |
| 238 | + 'spl-desc' => 'Adde un etiquetta <code><nowiki><splist /></nowiki></code> que permitte listar subpaginas', |
| 239 | + 'spl-nosubpages' => 'Le pagina "$1" non ha subpaginas a listar.', |
| 240 | + 'spl-noparentpage' => 'Le pagina "$1" non existe.', |
| 241 | + 'spl-nopages' => 'Le spatio de nomines "$1" non ha paginas.', |
| 242 | + 'spl-subpages-par-sort' => 'Le direction in le qual ordinar. Valores permittite: "asc" e "desc".', |
| 243 | + 'spl-subpages-par-sortby' => 'Criterio secundo le qual ordinar le subpaginas. Valores permittite: "title" (titulo) o "lastedit" (ultime modification).', |
| 244 | + 'spl-subpages-par-format' => 'Le lista de subpaginas pote esser presentate in plure formatos. Valores permittite: "ol" — lista ordinate (con numeros), "ul" — lista non ordinate (con punctos), "list" — lista simple (p.ex. un lista separate per commas).', |
| 245 | + 'spl-subpages-par-page' => 'Le pagina del qual presentar le subpaginas, o le nomine del spatio de nomines (incluse le duo punctos final) del qual presentar le paginas. Le predefinition es le pagina actual.', |
| 246 | + 'spl-subpages-par-showpage' => 'Indica si le pagina mesme debe figurar in le lista o non.', |
| 247 | + 'spl-subpages-par-pathstyle' => 'Le stilo del cammino pro subpaginas in le lista. Valores permittite: "fullpagename" — nomine complete del pagina (incluse le spatio de nomines), "pagename" — nomine del pagina (sin spatio de nomines), "subpagename" — nomine relative del pagina, comenciante al pagina del qual nos lista le subpaginas, "none" — solmente le parte final del nomine post le ultime barra oblique.', |
| 248 | + 'spl-subpages-par-kidsonly' => 'Permitte monstrar solmente subpaginas directe.', |
| 249 | + 'spl-subpages-par-limit' => 'Le numero maxime de paginas a listar.', |
| 250 | + 'spl-subpages-par-element' => 'Le elemento HTML que circumfere le lista (incluse le textos "intro" e "outro" o "default"). Valores permittite: "div", "p", "span".', |
| 251 | + 'spl-subpages-par-class' => 'Le valor del attributo "class" del elemento HTML que circumfere le lista.', |
| 252 | + 'spl-subpages-par-intro' => 'Le texto a presentar ante le lista, si le lista non es vacue.', |
| 253 | + 'spl-subpages-par-outro' => 'Le texto a presentar post le lista, si le lista non es vacue.', |
| 254 | + 'spl-subpages-par-default' => 'Le texto a presentar in loco del lista, si le lista es vacue. Si vacue, un message de error essera rendite (como "Le pagina non ha subpaginas a listar"). Si es un lineetta ("-"), le resultato essera completemente vacue.', |
| 255 | + 'spl-subpages-par-separator' => 'Le texto a presentar inter duo elementos del lista in caso del formatos "list" o "bar". Non ha effecto in altere formatos.', |
| 256 | + 'spl-subpages-par-template' => 'Le nomine del patrono. Le patrono es applicate a cata elemento del lista. Un elemento es passate como le prime argumento (sin nomine). Nota que le patrono non cancella le formatation del lista. Le formatation ("ul", "ol", "list") es applicate al resultato del patrono.', |
| 257 | + 'spl-subpages-par-links' => 'Si ver, le elementos del lista es rendite como ligamines. Si false, le elementos del lista es rendite como texto simple. Iste ultime option es particularmente utile pro passar elementos a in patronos pro ulterior processamento.', |
| 258 | +); |
| 259 | + |
| 260 | +/** Indonesian (Bahasa Indonesia) |
| 261 | + * @author IvanLanin |
| 262 | + */ |
| 263 | +$messages['id'] = array( |
| 264 | + 'spl-desc' => 'Memberikan tag <code><nowiki><splist /></nowiki></code> yang memungkinkan Anda untuk melihat daftar subhalaman', |
| 265 | + 'spl-nosubpages' => '$1 tidak memiliki subhalaman untuk ditampilkan.', |
| 266 | + 'spl-subpages-par-sort' => 'Arah urutan.', |
| 267 | + 'spl-subpages-par-sortby' => 'Cara pengurutan subhalaman.', |
| 268 | + 'spl-subpages-par-format' => 'Daftar subhalaman dapat ditampilkan dalam berbagai format, yaitu daftar bernomor (ol), daftar butir (ul), dan daftar dipisahkan koma (list).', |
| 269 | + 'spl-subpages-par-page' => 'Halaman yang akan ditampilkan subhalamannya. Setelan bawaan: halaman saat ini.', |
| 270 | + 'spl-subpages-par-showpage' => 'Menunjukkan apakah halaman itu sendiri harus ditampilkan atau tidak dalam daftar.', |
| 271 | + 'spl-subpages-par-pathstyle' => 'Gaya jalur subhalaman dalam daftar.', |
| 272 | + 'spl-subpages-par-kidsonly' => 'Hanya tampilkan subhalaman langsung.', |
| 273 | + 'spl-subpages-par-limit' => 'Jumlah halaman maks. yang ditampilkan.', |
| 274 | +); |
| 275 | + |
| 276 | +/** Japanese (日本語) |
| 277 | + * @author Schu |
| 278 | + */ |
| 279 | +$messages['ja'] = array( |
| 280 | + 'spl-desc' => 'サブページの一覧を表示可能にする <code><nowiki><splist /></nowiki></code> タグを追加します。', |
| 281 | +); |
| 282 | + |
| 283 | +/** Colognian (Ripoarisch) |
| 284 | + * @author Purodha |
| 285 | + */ |
| 286 | +$messages['ksh'] = array( |
| 287 | + 'spl-desc' => 'Deiht dä Befähl <code><nowiki><splist /></nowiki></code> en et Wiki, för Ongersigge aanzezeije.', |
| 288 | + 'spl-nosubpages' => 'Di Sigg „$1“ hät kein Ongersigge zom Opleßte.', |
| 289 | + 'spl-noparentpage' => 'En Sigg „$1“ jidd_et nit.', |
| 290 | + 'spl-subpages-par-sort' => 'Wieröm zoteet wääde sull.', |
| 291 | + 'spl-subpages-par-sortby' => 'Noh wat de Ongersigge zoteet wääde sulle.', |
| 292 | + 'spl-subpages-par-format' => 'De Leß met de Ongersigge kann ongerscheidlijje Jeschtalte han: met Nummere (ol) met Punkte (ul) un alles ein eine Reih met Kommas dozwesche (list)', |
| 293 | + 'spl-subpages-par-page' => 'De Sigg, woh de Ongersigge vun jezeich wääde sulle. Wam_mer nix säät, es dat de Sigg, di jraad jezeich weed.', |
| 294 | + 'spl-subpages-par-showpage' => 'Jitt aan, ov de Sigg selver och en dä Leß met dä iehre Ongersigge aanjezeisch wääde sull, udder nit.', |
| 295 | + 'spl-subpages-par-pathstyle' => 'Dä Stil vun de Aanzeije vun däm Pad vun de Ongersigge en dä Leß. |
| 296 | +Zohjelohße es: |
| 297 | +<code lang="en">fullpagename</code> — Dä janze Name vun dä Sigg mem Appachtemang. |
| 298 | +<code lang="en">pagename</code> — Dä janze Name vun dä Sigg der ohne et Appachtemang. |
| 299 | +<code lang="en">subpagename</code> — Bloß der Deil vum Name henger dä Sigg, woh mer Ongersigge vun opleste donn. |
| 300 | +<code lang="en">none</code> — Blos et Engk vum Name henger_em läzde schrääje Schtresch.', |
| 301 | + 'spl-subpages-par-kidsonly' => 'Määt et müjjelesch, bloß de diräkte Ongersigge opzeleßte.', |
| 302 | + 'spl-subpages-par-limit' => 'De jrüüßte Zahl Sigge för opzeleste.', |
| 303 | +); |
| 304 | + |
| 305 | +/** Luxembourgish (Lëtzebuergesch) |
| 306 | + * @author Robby |
| 307 | + */ |
| 308 | +$messages['lb'] = array( |
| 309 | + 'spl-desc' => 'Setzt den <code><nowiki><splist /></nowiki></code>-Tag fir Ënnersäiten ze weisen derbäi', |
| 310 | + 'spl-nosubpages' => 'D\'Säit "$1" huet keng Ënnersäite fir ze weisen.', |
| 311 | + 'spl-noparentpage' => 'D\'Säit "$1" gëtt et net.', |
| 312 | + 'spl-nopages' => 'Am Nummraum "$1" gëtt et keng Säiten.', |
| 313 | + 'spl-subpages-par-sort' => 'Reiefolleg wéi zortéiert soll ginn. Erlaabte Wäerter: "asc" an "desc".', |
| 314 | + 'spl-subpages-par-sortby' => 'Wourop d\'Ënnersäiten zortéiert ginn. Erlaabte Wäerter: "titel" oder "lescht Ännerung".', |
| 315 | + 'spl-subpages-par-format' => 'D\'Lëscht vun den Ënnersäite kann a verschiddene Formater gewise ginn. Erlaabte Wäerter: "ol" Numeréiert Lëschten, "ul" Lëschte mat Punkten, "list" ganz Lëschten (z. Bsp. "comma seperated" Lëscht).', |
| 316 | + 'spl-subpages-par-page' => "D'Säit fir déi Ënnersäite gewise solle ginn, oder Numm vum Nummraum (inklusiv den Doppelpunkt) an deem Säite solle gewise ginn. Als Standard ass dat déi aktuell Säit.", |
| 317 | + 'spl-subpages-par-showpage' => "Gëtt un ob d'Säit selwer an der Lëscht gewise soll ginn oder net.", |
| 318 | + 'spl-subpages-par-pathstyle' => 'Styl vum Wee (path) fir Ënnersäiten an der Lëscht. Erlaabte Wäerter: "fullpagename" - Kompletten Numm vun der Säit (inklusiv den Nummraum), "pagename" - Numm vun der säit (ouni Nummraum), "subpagename" - Relative Numm vun der Säit ugefaang vun de Säit fir déi mir Ënnersäiten opzielen, "none" - just deen Deel vum Numm deen no dem lescht Slash kënnt.', |
| 319 | + 'spl-subpages-par-kidsonly' => 'Erlaabt fir nëmmen direkt Ënnersäiten ze weisen.', |
| 320 | + 'spl-subpages-par-limit' => "D'Maximalzuel vu Säiten déi gewise ginn.", |
| 321 | + 'spl-subpages-par-intro' => 'Den Text virun der Lëscht, wann se net eidel ass.', |
| 322 | + 'spl-subpages-par-outro' => 'Den Text hannert der Lëscht, wann se net eidel ass.', |
| 323 | + 'spl-subpages-par-default' => 'Den Text deen gewise amplaz vun der Lëscht gëtt, wann d\'Lëscht eidel ass. Wann se eidel ass, gëtt e Feeler-Message generéiert (esou wéi "D\'Säit huet keng Ënnersäiten"). Wann et e bindestrich ass ("-"), ass d\'Resultat komplett eidel.', |
| 324 | + 'spl-subpages-par-template' => 'Den Numm vun der Schabloun. D\'Schabloun gëtt fir all Element vun der Lëscht benotzt. Een Element gëtt als éischt (ongenannt) Argument un D\'Schabloun viruginn. Denkt drun datt d\'Schabloun de Format vun der Lëscht net ännert. D\'Formatéierung ("ul", "ol", "list") gëtt op d\'Resultat vun der Schabloun applizéiert.', |
| 325 | + 'spl-subpages-par-links' => "Wann et aktivéiert ass ginn d'Elementer vun der Lëscht als Linken duergestallt. Wann et net aktivéiert ass ginn d'Elementer vun der Lëscht als normalen Text duergestallt. Déi lescht Optioun ass besonnesch nëtzlech fir Elementer a Schablounen anzebannen an duerno weider ze verschaffen.", |
| 326 | +); |
| 327 | + |
| 328 | +/** Macedonian (Македонски) |
| 329 | + * @author Bjankuloski06 |
| 330 | + */ |
| 331 | +$messages['mk'] = array( |
| 332 | + 'spl-desc' => 'Додава ознака <code><nowiki><splist /></nowiki></code> што овозможува наведување на потстраници во список', |
| 333 | + 'spl-nosubpages' => 'Страницата „$1“ нема потстраници за наведување.', |
| 334 | + 'spl-noparentpage' => 'Страницата „$1“ не постои.', |
| 335 | + 'spl-nopages' => 'Именскиот простор „$1“ нема страници.', |
| 336 | + 'spl-subpages-par-sort' => '!Насока на подредување. Допуштени вредности: „asc“ и „desc“.', |
| 337 | + 'spl-subpages-par-sortby' => 'По што да се подредат потстраниците. Допуштени вредности: „title“ or „lastedit“.', |
| 338 | + 'spl-subpages-par-format' => 'Списокот на потстраници може да се прикаже во неколку формати. Допуштени вредности: „ol“ — подреден список (со бројки), „ul“ — неподредени списоци (потточки), „list“ прости списоци (на пр. список одделем со запирки).', |
| 339 | + 'spl-subpages-par-page' => 'За која страница да се прикажат потстраниците, или називот на именскиот простор (вклучувајќи ги двете точки на крајот). По основно - тековната страница.', |
| 340 | + 'spl-subpages-par-showpage' => 'Назначува дали во списокот да се прикаже и самата страница.', |
| 341 | + 'spl-subpages-par-pathstyle' => 'Стилот на патеката за потстраниците во списокот. Допуштени вредности: „fullpagename“ — полно име на страницата (вклучувајќи го именскиот простор), „pagename“ — име на страницата (без именски простор), „subpagename“ — релативно име на страницата почнувајќи од страницата за која наведуваме потстраници, „none“ — само последниот дел од името што се наоѓа по последната коса црта.', |
| 342 | + 'spl-subpages-par-kidsonly' => 'Овозможува приказ само на директни потстраници.', |
| 343 | + 'spl-subpages-par-limit' => 'Максималниот број на страници за наведување во списокот.', |
| 344 | + 'spl-subpages-par-element' => 'HTML-елементот што го опколува списокот (вклучувајќи ги текстовите во „intro“ и „outro“ или пак „default“). Допуштени вредности: „div“, „p“, „span“.', |
| 345 | + 'spl-subpages-par-class' => 'Вредноста за атрибутот „class“ на HTML-елементот што го обиколува списокот.', |
| 346 | + 'spl-subpages-par-intro' => 'Текстот пред сисокот, ако списокот не е празен.', |
| 347 | + 'spl-subpages-par-outro' => 'Текстот по сисокот, ако списокот не е празен.', |
| 348 | + 'spl-subpages-par-default' => 'Текстот за приказ наместо списокот, ако списокот е празен. Ако е празна, ќе се појави порака за грешка (како „Страницата нема потстраници“). Ако има цртичка („-“), резултатот ќе биде сосем празен.', |
| 349 | + 'spl-subpages-par-separator' => 'Текстот помеѓу две ставки во списокот за форматите „list“ или „bar“. Не дејствува на другите формати.', |
| 350 | + 'spl-subpages-par-template' => 'Името на шаблонот. Шаблонот се применува врз секоја ставка во списокот. Како прв (неименуван) аргумент се зема ставка. Имајте предвид дека шаблонот не го поништува форматирањето на списокот. Врз резултатот на шаблонот се применува форматирање („ul“, „ol“, „list“).', |
| 351 | + 'spl-subpages-par-links' => 'Ако е точно, ставките во списокот се прикажуваат како врски. Ако е неточно, тогаш ставките се прикажуваат како прост текст. Второспоменатото е особено корисно за доставка на ставки во шаблони за понатамошна обработка.', |
| 352 | +); |
| 353 | + |
| 354 | +/** Norwegian (bokmål) (Norsk (bokmål)) |
| 355 | + * @author Nghtwlkr |
| 356 | + */ |
| 357 | +$messages['nb'] = array( |
| 358 | + 'spl-desc' => 'Legger til et <code><nowiki><splist /></nowiki></code>-element som lar deg liste opp undersider', |
| 359 | + 'spl-nosubpages' => '$1 har ingen undersider å liste opp.', |
| 360 | + 'spl-subpages-par-sort' => 'Retningen du vil sortere i.', |
| 361 | + 'spl-subpages-par-sortby' => 'Hva du vil sortere undersidene etter.', |
| 362 | + 'spl-subpages-par-format' => 'Undersidelisten kan vises i flere format. Nummererte lister (ol), punktlister (ul) og kommaseparerte lister (list).', |
| 363 | + 'spl-subpages-par-page' => 'Siden undersidene skal vises for. Standard er den gjeldende siden.', |
| 364 | + 'spl-subpages-par-showpage' => 'Indikerer om selve siden skal vises i listen eller ikke.', |
| 365 | + 'spl-subpages-par-pathstyle' => 'Stilen på banen for undersidene i listen.', |
| 366 | + 'spl-subpages-par-kidsonly' => 'Tillater kun å vise direkte undersider.', |
| 367 | + 'spl-subpages-par-limit' => 'Maksimum antall sider å liste opp.', |
| 368 | +); |
| 369 | + |
| 370 | +/** Dutch (Nederlands) |
| 371 | + * @author McDutchie |
| 372 | + * @author SPQRobin |
| 373 | + * @author Siebrand |
| 374 | + */ |
| 375 | +$messages['nl'] = array( |
| 376 | + 'spl-desc' => "Voegt het label <code><nowiki><splist /></nowiki></code> toe dat het mogelijk maakt een lijst met subpagina's weer te geven", |
| 377 | + 'spl-nosubpages' => 'Pagina "$1" heeft geen subpagina\'s.', |
| 378 | + 'spl-noparentpage' => 'Pagina "$1" bestaat niet.', |
| 379 | + 'spl-nopages' => 'Naamruimte "$1" heeft geen pagina\'s.', |
| 380 | + 'spl-subpages-par-sort' => 'De richting voor de sorteervolgorde. Toegestande waarden: "asc" (oplopend") en "desc" (aflopend).', |
| 381 | + 'spl-subpages-par-sortby' => 'Hoe de subpagina\'s te sorteren. Toegestane waarden: "title" (paginanaam) en "lastedit" (laatste bewerking).', |
| 382 | + 'spl-subpages-par-format' => 'De lijst met subpagina\'s kan op verschillende manieren weergegeven worden. Als genummerde lijst ("ol"), ongenummerde lijst ("ul") en als door komma\'s gescheiden lijst ("list"), bijvoorbeeld een door komma\'s gescheiden lijst.', |
| 383 | + 'spl-subpages-par-page' => "De pagina waarvoor subpagina's weergegeven moeten worden of een naamruimtenaam (inclusief de dubbele punt als achtervoegsel). Dit is standaard de huidige pagina.", |
| 384 | + 'spl-subpages-par-showpage' => 'Geeft aan of de pagina zelf weergegeven moet worden in de lijst of niet.', |
| 385 | + 'spl-subpages-par-pathstyle' => 'De stijl van het pad voor subpagina\'s in de lijst. Toegestane waarden: "fullpagename": volledige paginanaam, inclusief naamruimte, "pagename": paginanaam zonder naamruimte, "subpagename": relatieve paginanaam vanaf de pagina waarvoor subpagina\'s worden weergegeven, "none": alleen het achtervoegsel van de naam na de laatste slash.', |
| 386 | + 'spl-subpages-par-kidsonly' => "Maakt het mogelijk om alleen subpagina's van het eerste niveau weer te geven.", |
| 387 | + 'spl-subpages-par-limit' => "Het maximale aantal weer te geven pagina's.", |
| 388 | + 'spl-subpages-par-element' => 'Het HTML-element dat de lijst omsluit (inclusief "intro" en "outro" of "default" teksten). Toegestane waarden: "div", "p", "span".', |
| 389 | + 'spl-subpages-par-class' => 'De waarde voor het "class"-attribuut van het HTML-element waarin de lijst is omsloten.', |
| 390 | + 'spl-subpages-par-intro' => 'De uit te voeren tekst vóór de lijst als de lijst niet leeg is.', |
| 391 | + 'spl-subpages-par-outro' => 'De uit te voeren tekst na de lijst, als de lijst niet leeg is.', |
| 392 | + 'spl-subpages-par-default' => 'De weer te geven tekst in plaats van de lijst als de lijst leeg is. Als dit leeg is, wordt een foutmelding gegeven, zoals "Er zijn geen weer te geven subpagina\'s". Bij gebruik van het teken "-" is het resultaat volledig leeg.', |
| 393 | + 'spl-subpages-par-separator' => 'De uit te voeren tekst tussen twee lijstelementen voor een "list" (lijstweergave) of "bar" (balkweergave). Dit heeft geen effect op andere weergaven.', |
| 394 | + 'spl-subpages-par-template' => 'De naam van het sjabloon. Het sjabloon wordt toegepast op ieder element in de lijst. Een element wordt doorgegeven als het eerste (onbenoemde) argument. Let op dat het sjabloon de lijstopmaak niet verwijdert; de opmaak ("ul", "ol" of "list") wordt toegepast op het resultaat van het sjabloon.', |
| 395 | + 'spl-subpages-par-links' => 'Lijstelementen worden opgemaakt als verwijzingen als waar. Lijstelementen zijn platte tekst als onwaar. De laatste optie is handig bij het doorgeven van elementen aan sjablonen voor verdere verwerking.', |
| 396 | +); |
| 397 | + |
| 398 | +/** Polish (Polski) |
| 399 | + * @author Woytecr |
| 400 | + */ |
| 401 | +$messages['pl'] = array( |
| 402 | + 'spl-desc' => 'Dodaje tag <code><nowiki><splist /></nowiki></code> pozwalający na wstawienie listy podstron', |
| 403 | +); |
| 404 | + |
| 405 | +/** Piedmontese (Piemontèis) |
| 406 | + * @author Borichèt |
| 407 | + * @author Dragonòt |
| 408 | + */ |
| 409 | +$messages['pms'] = array( |
| 410 | + 'spl-desc' => 'A gionta un sìmbol <code><nowiki><splist /></nowiki></code> che at abìlita a listé le sot-pagine', |
| 411 | + 'spl-nosubpages' => "La pàgina $1 a l'ha gnun-e sot-pàgine da listé.", |
| 412 | + 'spl-subpages-par-sort' => 'La diression për ordiné. Valor përmëttù: «asc» e «desc».', |
| 413 | + 'spl-subpages-par-sortby' => 'Criteri për ordiné le pagine. Valor përmëttù :«tìtol» o «ùltima modìfica».', |
| 414 | + 'spl-subpages-par-format' => "La lista dle sot-pàgine a peul esse mostrà an vàire formà. Valor përmëttù: «ol» - lista ordinà (numerà), «ul» lista nen ordinà (a pont), «lista» - lista sempia (për esempi, lista separà da 'd vìrgole).", |
| 415 | + 'spl-subpages-par-page' => 'La pàgina dont smon-e le sot-pàgine. o lë spassi nominal. Për stàndard la pagina corenta.', |
| 416 | + 'spl-subpages-par-showpage' => 'A ìndica se la pagina midema a dev esse mostrà ant la lista o nò.', |
| 417 | + 'spl-subpages-par-pathstyle' => "Lë stit dël përcors për le sot-pàgine ant la lista. Valor përmëttù: «nòmcompletpàgina» - nòm complet ëd la pàgina (spassi nominal comprèis), «nòmpàgina» - nàm ëd la pàgina (sensa spassi nominal), «nòmsotpàgina» nòm relativ ëd la pàgina an ancaminand da la pàgina dont i smonoma le sot-pàgine, «gnun» - mach la part dël nòm apress l'ùltima bara.", |
| 418 | + 'spl-subpages-par-kidsonly' => 'A përmëtt ëd mostré mach le sot-pàgine direte.', |
| 419 | + 'spl-subpages-par-limit' => 'Ël nùmer màssim ëd pàgine da listé.', |
| 420 | +); |
| 421 | + |
| 422 | +/** Portuguese (Português) |
| 423 | + * @author Hamilton Abreu |
| 424 | + */ |
| 425 | +$messages['pt'] = array( |
| 426 | + 'spl-desc' => 'Acrescenta um elemento <code><nowiki><splist /></nowiki></code> que permite listar subpáginas', |
| 427 | + 'spl-nosubpages' => 'A página $1 não tem subpáginas para listar.', |
| 428 | + 'spl-noparentpage' => 'A página "$1" não existe.', |
| 429 | + 'spl-nopages' => 'O espaço nominal "$1" não tem páginas.', |
| 430 | + 'spl-subpages-par-sort' => 'A direcção da ordenação. Valores permitidos: "asc" e "desc".', |
| 431 | + 'spl-subpages-par-sortby' => 'O critério de ordenação. Valores permitidos: "title" (titulo) ou "lastedit" (última edição).', |
| 432 | + 'spl-subpages-par-format' => 'A lista de subpáginas pode ser apresentada em vários formatos. Valores permitidos: "ol"— listas ordenadas (numeradas), "ul" — listas não ordenadas (com marcadores) e "list" — listas simples (por exemplo, lista separada por vírgulas).', |
| 433 | + 'spl-subpages-par-page' => 'A página cujas subpáginas serão mostradas, ou o nome do espaço nominal (incluindo o sinal de dois pontos) do qual mostrar as páginas. Por omissão, será a página corrente.', |
| 434 | + 'spl-subpages-par-showpage' => 'Indica se a própria página deve ser mostrada na lista ou não.', |
| 435 | + 'spl-subpages-par-pathstyle' => 'O estilo do caminho para as subpáginas na lista. Valores permitidos: "fullpagename" — nome completo da página (incluindo o espaço nominal), "pagename" — nome da página (sem o espaço nominal), "subpagename" — nome relativo da página, começando a partir da página cujas subpáginas vão ser mostradas e "none" — somente a parte do nome após a última barra "/".', |
| 436 | + 'spl-subpages-par-kidsonly' => 'Permite mostrar só subpáginas directas.', |
| 437 | + 'spl-subpages-par-limit' => 'O número máximo de páginas listadas.', |
| 438 | + 'spl-subpages-par-element' => 'O elemento HTML que encapsula a lista (incluindo os textos "intro" e "outro" ou "default"). Valores permitidos: "div", "p" e "span".', |
| 439 | + 'spl-subpages-par-class' => 'O valor do atributo "class" do elemento HTML que encapsula a lista.', |
| 440 | + 'spl-subpages-par-intro' => 'O texto a apresentar antes da lista, se a lista não estiver vazia.', |
| 441 | + 'spl-subpages-par-outro' => 'O texto a apresentar após a lista, se a lista não estiver vazia.', |
| 442 | + 'spl-subpages-par-default' => 'O texto a apresentar em vez da lista, se a lista não estiver vazia. Se vazio, será apresentada uma mensagem de erro (como "A página não tem nenhuma subpágina para listar"). Se o valor for ("-"), o resultado estará completamente vazio.', |
| 443 | + 'spl-subpages-par-separator' => 'O texto a apresentar entre duas entradas da lista no caso dos formatos "list" ou "bar". Não tem efeito nos outros formatos.', |
| 444 | + 'spl-subpages-par-template' => 'O nome da predefinição. A predefinição é aplicada a cada entrada da lista. Uma entrada é passada como o primeiro argumento (anónimo). Note que a predefinição não cancela a formatação da lista. A formatação ("ul", "ol", ou "list") é aplicada ao resultado da predefinição.', |
| 445 | + 'spl-subpages-par-links' => 'Se verdadeiro, as entradas da lista são apresentadas na forma de links. Se falso, as entradas da lista são apresentadas como texto simples. Esta última opção é especialmente útil para passar entradas a uma predefinição, para processamento posterior.', |
| 446 | +); |
| 447 | + |
| 448 | +/** Russian (Русский) |
| 449 | + * @author Renessaince |
| 450 | + * @author Van de Bugger |
| 451 | + * @author Александр Сигачёв |
| 452 | + */ |
| 453 | +$messages['ru'] = array( |
| 454 | + 'spl-desc' => 'Добавляет тег <code><nowiki><splist /></nowiki></code>, выводящий список подстраниц', |
| 455 | + 'spl-nosubpages' => 'Страница «$1» не имеет подстраниц.', |
| 456 | + 'spl-noparentpage' => 'Страница «$1» не существует.', |
| 457 | + 'spl-nopages' => 'Пространство имён «$1» не содержит страниц.', |
| 458 | + 'spl-subpages-par-sort' => 'Направление сортировки. Допустимые значения: «asc» — сортировка по возрастанию, «desc» — по убыванию.', |
| 459 | + 'spl-subpages-par-sortby' => 'Ключ сортировки: «title» — сортировать по названию страниц, «lastedit» — по дате последней правки.', |
| 460 | + 'spl-subpages-par-format' => 'Список подстраниц может быть показан в нескольких форматах. Допустимые значения: «ol» — нумерованный список, «ul» — маркированный список, «list» — линейный список (например, через запятые).', |
| 461 | + 'spl-subpages-par-page' => 'Страница для которой показывать список подстраниц, или имя пространства имён (включая конечное двоеточие). По умолчанию текущая страница.', |
| 462 | + 'spl-subpages-par-showpage' => 'Указывает, должна ли отображаться сама страница.', |
| 463 | + 'spl-subpages-par-pathstyle' => 'Стиль пути для подстраниц в списке. Допустимые значения: «fullpagename» — полное название страницы (включая пространство имён), "pagename" — имя страницы (полное но без пространства имён), "subpagename" — "относительное" имя страницы, начиная со страницы, для которой показывается список, "none" — только часть имени следующая за последней косой чертой.', |
| 464 | + 'spl-subpages-par-kidsonly' => 'Показывать только прямые подстраницы.', |
| 465 | + 'spl-subpages-par-limit' => 'Максимальное количество страниц в список.', |
| 466 | + 'spl-subpages-par-element' => 'Элемент HTML, включающий весь список (вместе с текстами «intro» и «outro» или «default»). Допустимые значения: «div», «p», «span».', |
| 467 | + 'spl-subpages-par-class' => 'Значение атрибута «class» элемента HTML.', |
| 468 | + 'spl-subpages-par-intro' => 'Текст для вывод перед списком, если список не пуст.', |
| 469 | + 'spl-subpages-par-outro' => 'Текст для вывода после списка, если список не пуст.', |
| 470 | + 'spl-subpages-par-default' => 'Текст для вывода вместо списка, если список пуст.', |
| 471 | + 'spl-subpages-par-separator' => 'Текст для вывода между двумя элементами списка для форматов "list" или "bar". Не имеет значения для других форматов.', |
| 472 | + 'spl-subpages-par-template' => 'Имя шаблона. Шаблон применяется к каждому элементу списка. Элемент передаётся в шаблон как первый (неименованный) аргумент. Заметьте, что шаблон не отменяет форматирование списка. Форматирование ("ul", "ol", "list") применяется к результатам шаблона.', |
| 473 | + 'spl-subpages-par-links' => 'Если истина, элементы списка выводятся как ссылки. Если ложь, элементы списка выводятся как простой текст, это особенно удобно, если применяется совместно с шаблоном.', |
| 474 | +); |
| 475 | + |
| 476 | +/** Serbian (Cyrillic script) (Српски (ћирилица)) |
| 477 | + * @author Rancher |
| 478 | + */ |
| 479 | +$messages['sr-ec'] = array( |
| 480 | + 'spl-subpages-par-limit' => 'Највећи број страница за приказивање.', |
| 481 | +); |
| 482 | + |
| 483 | +/** Serbian (Latin script) (Srpski (latinica)) */ |
| 484 | +$messages['sr-el'] = array( |
| 485 | + 'spl-subpages-par-limit' => 'Najveći broj stranica za prikazivanje.', |
| 486 | +); |
| 487 | + |
| 488 | +/** Tagalog (Tagalog) |
| 489 | + * @author AnakngAraw |
| 490 | + */ |
| 491 | +$messages['tl'] = array( |
| 492 | + 'spl-desc' => 'Nagdaragdag ng isang tatak na <code><nowiki><splist /></nowiki></code> na nagbibigay ng kakayahan sa iyo na magtala ng kabahaging mga pahina', |
| 493 | + 'spl-nosubpages' => 'Walang maitatalang kabahaging mga pahina ang $1.', |
| 494 | + 'spl-subpages-par-sort' => 'Ang patutunguhan kung saan gagawa ng paghihiwa-hiwalay.', |
| 495 | + 'spl-subpages-par-sortby' => 'Kung ano ang pagbabatayan ng paghihiwa-hiwalay ng kabahaging mga pahina.', |
| 496 | + 'spl-subpages-par-format' => 'Ang talaan ng kabahaging pahina ay maaaring ipakita sa pamamagitan ng ilang mga anyo. Mga talaang may bilang (ol), mga talaang may punglo at mga talaang pinaghihiwa-hiwalay ng kuwit (talaan).', |
| 497 | + 'spl-subpages-par-page' => 'Ang pahinang pagpapakitaan ng kabahaging mga pahina. Likas na nakatakdang pumunta sa pangkasalukuyang pahina.', |
| 498 | + 'spl-subpages-par-showpage' => 'Nagpapahiwatig kung ang pahina mismo ay dapat na ipakita sa loob ng talaan o hindi.', |
| 499 | + 'spl-subpages-par-pathstyle' => 'Ang estilo ng landas para sa kabahaging mga pahina sa loob ng talaan.', |
| 500 | + 'spl-subpages-par-kidsonly' => 'Nagpapahintulot na magpakita lamang ng tuwirang kabahaging mga pahina.', |
| 501 | + 'spl-subpages-par-limit' => 'Ang pinakamataas na bilang ng mga pahinang itatala.', |
| 502 | +); |
| 503 | + |
| 504 | +/** Ukrainian (Українська) |
| 505 | + * @author Renessaince |
| 506 | + * @author Тест |
| 507 | + */ |
| 508 | +$messages['uk'] = array( |
| 509 | + 'spl-desc' => 'Додає тег <code><nowiki><splist /></nowiki></code>, який виводить список підсторінок', |
| 510 | + 'spl-nosubpages' => 'Сторінка "$1" не має підсторінок для складання списку.', |
| 511 | + 'spl-subpages-par-sort' => 'Напрямок сортування. Допущальни значення: "asc" і "desc".', |
| 512 | + 'spl-subpages-par-page' => 'Сторінка, для якої показати підсторінки. За умовчанням — поточна сторінка.', |
| 513 | + 'spl-subpages-par-limit' => 'Максимальна кількість сторінок у списку.', |
| 514 | +); |
| 515 | + |
Property changes on: tags/extensions/SubPageList/REL_0_5/SubPageList.i18n.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 516 | + native |
Index: tags/extensions/SubPageList/REL_0_5/SubPageList.settings.php |
— | — | @@ -0,0 +1,26 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * File defining the settings for the SubPageList extension. |
| 6 | + * More info can be found at http://www.mediawiki.org/wiki/Extension:SubPageList#Settings |
| 7 | + * |
| 8 | + * NOTICE: |
| 9 | + * Changing one of these settings can be done by copieng or cutting it, |
| 10 | + * and placing it in LocalSettings.php, AFTER the inclusion of SubPageList. |
| 11 | + * |
| 12 | + * @file SubPageList.settings.php |
| 13 | + * @ingroup SPL |
| 14 | + * |
| 15 | + * @licence GNU GPL v3 or later |
| 16 | + * |
| 17 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 18 | + */ |
| 19 | + |
| 20 | +if ( !defined( 'MEDIAWIKI' ) ) { |
| 21 | + die( 'Not an entry point.' ); |
| 22 | +} |
| 23 | + |
| 24 | +# Automatically invalidate the cache of "base pages" when creating, moving or deleting a subpage? |
| 25 | +# This covers most cases where people expect automatisc refresh of the sub page list. |
| 26 | +# However note that this will not update lists displaying subpages from pages different then themselves. |
| 27 | +$egSPLAutorefresh = false; |
Property changes on: tags/extensions/SubPageList/REL_0_5/SubPageList.settings.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 28 | + native |
Index: tags/extensions/SubPageList/REL_0_5/COPYING |
— | — | @@ -0,0 +1,682 @@ |
| 2 | +The license text below "----" applies to all files within this distribution, other |
| 3 | +than those that are in a directory which contains files named "LICENSE" or |
| 4 | +"COPYING", or a subdirectory thereof. For those files, the license text contained in |
| 5 | +said file overrides any license information contained in directories of smaller depth. |
| 6 | +Alternative licenses are typically used for software that is provided by external |
| 7 | +parties, and merely packaged with this software for convenience. |
| 8 | +---- |
| 9 | + |
| 10 | + GNU GENERAL PUBLIC LICENSE |
| 11 | + Version 3, 29 June 2007 |
| 12 | + |
| 13 | + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
| 14 | + Everyone is permitted to copy and distribute verbatim copies |
| 15 | + of this license document, but changing it is not allowed. |
| 16 | + |
| 17 | + Preamble |
| 18 | + |
| 19 | + The GNU General Public License is a free, copyleft license for |
| 20 | +software and other kinds of works. |
| 21 | + |
| 22 | + The licenses for most software and other practical works are designed |
| 23 | +to take away your freedom to share and change the works. By contrast, |
| 24 | +the GNU General Public License is intended to guarantee your freedom to |
| 25 | +share and change all versions of a program--to make sure it remains free |
| 26 | +software for all its users. We, the Free Software Foundation, use the |
| 27 | +GNU General Public License for most of our software; it applies also to |
| 28 | +any other work released this way by its authors. You can apply it to |
| 29 | +your programs, too. |
| 30 | + |
| 31 | + When we speak of free software, we are referring to freedom, not |
| 32 | +price. Our General Public Licenses are designed to make sure that you |
| 33 | +have the freedom to distribute copies of free software (and charge for |
| 34 | +them if you wish), that you receive source code or can get it if you |
| 35 | +want it, that you can change the software or use pieces of it in new |
| 36 | +free programs, and that you know you can do these things. |
| 37 | + |
| 38 | + To protect your rights, we need to prevent others from denying you |
| 39 | +these rights or asking you to surrender the rights. Therefore, you have |
| 40 | +certain responsibilities if you distribute copies of the software, or if |
| 41 | +you modify it: responsibilities to respect the freedom of others. |
| 42 | + |
| 43 | + For example, if you distribute copies of such a program, whether |
| 44 | +gratis or for a fee, you must pass on to the recipients the same |
| 45 | +freedoms that you received. You must make sure that they, too, receive |
| 46 | +or can get the source code. And you must show them these terms so they |
| 47 | +know their rights. |
| 48 | + |
| 49 | + Developers that use the GNU GPL protect your rights with two steps: |
| 50 | +(1) assert copyright on the software, and (2) offer you this License |
| 51 | +giving you legal permission to copy, distribute and/or modify it. |
| 52 | + |
| 53 | + For the developers' and authors' protection, the GPL clearly explains |
| 54 | +that there is no warranty for this free software. For both users' and |
| 55 | +authors' sake, the GPL requires that modified versions be marked as |
| 56 | +changed, so that their problems will not be attributed erroneously to |
| 57 | +authors of previous versions. |
| 58 | + |
| 59 | + Some devices are designed to deny users access to install or run |
| 60 | +modified versions of the software inside them, although the manufacturer |
| 61 | +can do so. This is fundamentally incompatible with the aim of |
| 62 | +protecting users' freedom to change the software. The systematic |
| 63 | +pattern of such abuse occurs in the area of products for individuals to |
| 64 | +use, which is precisely where it is most unacceptable. Therefore, we |
| 65 | +have designed this version of the GPL to prohibit the practice for those |
| 66 | +products. If such problems arise substantially in other domains, we |
| 67 | +stand ready to extend this provision to those domains in future versions |
| 68 | +of the GPL, as needed to protect the freedom of users. |
| 69 | + |
| 70 | + Finally, every program is threatened constantly by software patents. |
| 71 | +States should not allow patents to restrict development and use of |
| 72 | +software on general-purpose computers, but in those that do, we wish to |
| 73 | +avoid the special danger that patents applied to a free program could |
| 74 | +make it effectively proprietary. To prevent this, the GPL assures that |
| 75 | +patents cannot be used to render the program non-free. |
| 76 | + |
| 77 | + The precise terms and conditions for copying, distribution and |
| 78 | +modification follow. |
| 79 | + |
| 80 | + TERMS AND CONDITIONS |
| 81 | + |
| 82 | + 0. Definitions. |
| 83 | + |
| 84 | + "This License" refers to version 3 of the GNU General Public License. |
| 85 | + |
| 86 | + "Copyright" also means copyright-like laws that apply to other kinds of |
| 87 | +works, such as semiconductor masks. |
| 88 | + |
| 89 | + "The Program" refers to any copyrightable work licensed under this |
| 90 | +License. Each licensee is addressed as "you". "Licensees" and |
| 91 | +"recipients" may be individuals or organizations. |
| 92 | + |
| 93 | + To "modify" a work means to copy from or adapt all or part of the work |
| 94 | +in a fashion requiring copyright permission, other than the making of an |
| 95 | +exact copy. The resulting work is called a "modified version" of the |
| 96 | +earlier work or a work "based on" the earlier work. |
| 97 | + |
| 98 | + A "covered work" means either the unmodified Program or a work based |
| 99 | +on the Program. |
| 100 | + |
| 101 | + To "propagate" a work means to do anything with it that, without |
| 102 | +permission, would make you directly or secondarily liable for |
| 103 | +infringement under applicable copyright law, except executing it on a |
| 104 | +computer or modifying a private copy. Propagation includes copying, |
| 105 | +distribution (with or without modification), making available to the |
| 106 | +public, and in some countries other activities as well. |
| 107 | + |
| 108 | + To "convey" a work means any kind of propagation that enables other |
| 109 | +parties to make or receive copies. Mere interaction with a user through |
| 110 | +a computer network, with no transfer of a copy, is not conveying. |
| 111 | + |
| 112 | + An interactive user interface displays "Appropriate Legal Notices" |
| 113 | +to the extent that it includes a convenient and prominently visible |
| 114 | +feature that (1) displays an appropriate copyright notice, and (2) |
| 115 | +tells the user that there is no warranty for the work (except to the |
| 116 | +extent that warranties are provided), that licensees may convey the |
| 117 | +work under this License, and how to view a copy of this License. If |
| 118 | +the interface presents a list of user commands or options, such as a |
| 119 | +menu, a prominent item in the list meets this criterion. |
| 120 | + |
| 121 | + 1. Source Code. |
| 122 | + |
| 123 | + The "source code" for a work means the preferred form of the work |
| 124 | +for making modifications to it. "Object code" means any non-source |
| 125 | +form of a work. |
| 126 | + |
| 127 | + A "Standard Interface" means an interface that either is an official |
| 128 | +standard defined by a recognized standards body, or, in the case of |
| 129 | +interfaces specified for a particular programming language, one that |
| 130 | +is widely used among developers working in that language. |
| 131 | + |
| 132 | + The "System Libraries" of an executable work include anything, other |
| 133 | +than the work as a whole, that (a) is included in the normal form of |
| 134 | +packaging a Major Component, but which is not part of that Major |
| 135 | +Component, and (b) serves only to enable use of the work with that |
| 136 | +Major Component, or to implement a Standard Interface for which an |
| 137 | +implementation is available to the public in source code form. A |
| 138 | +"Major Component", in this context, means a major essential component |
| 139 | +(kernel, window system, and so on) of the specific operating system |
| 140 | +(if any) on which the executable work runs, or a compiler used to |
| 141 | +produce the work, or an object code interpreter used to run it. |
| 142 | + |
| 143 | + The "Corresponding Source" for a work in object code form means all |
| 144 | +the source code needed to generate, install, and (for an executable |
| 145 | +work) run the object code and to modify the work, including scripts to |
| 146 | +control those activities. However, it does not include the work's |
| 147 | +System Libraries, or general-purpose tools or generally available free |
| 148 | +programs which are used unmodified in performing those activities but |
| 149 | +which are not part of the work. For example, Corresponding Source |
| 150 | +includes interface definition files associated with source files for |
| 151 | +the work, and the source code for shared libraries and dynamically |
| 152 | +linked subprograms that the work is specifically designed to require, |
| 153 | +such as by intimate data communication or control flow between those |
| 154 | +subprograms and other parts of the work. |
| 155 | + |
| 156 | + The Corresponding Source need not include anything that users |
| 157 | +can regenerate automatically from other parts of the Corresponding |
| 158 | +Source. |
| 159 | + |
| 160 | + The Corresponding Source for a work in source code form is that |
| 161 | +same work. |
| 162 | + |
| 163 | + 2. Basic Permissions. |
| 164 | + |
| 165 | + All rights granted under this License are granted for the term of |
| 166 | +copyright on the Program, and are irrevocable provided the stated |
| 167 | +conditions are met. This License explicitly affirms your unlimited |
| 168 | +permission to run the unmodified Program. The output from running a |
| 169 | +covered work is covered by this License only if the output, given its |
| 170 | +content, constitutes a covered work. This License acknowledges your |
| 171 | +rights of fair use or other equivalent, as provided by copyright law. |
| 172 | + |
| 173 | + You may make, run and propagate covered works that you do not |
| 174 | +convey, without conditions so long as your license otherwise remains |
| 175 | +in force. You may convey covered works to others for the sole purpose |
| 176 | +of having them make modifications exclusively for you, or provide you |
| 177 | +with facilities for running those works, provided that you comply with |
| 178 | +the terms of this License in conveying all material for which you do |
| 179 | +not control copyright. Those thus making or running the covered works |
| 180 | +for you must do so exclusively on your behalf, under your direction |
| 181 | +and control, on terms that prohibit them from making any copies of |
| 182 | +your copyrighted material outside their relationship with you. |
| 183 | + |
| 184 | + Conveying under any other circumstances is permitted solely under |
| 185 | +the conditions stated below. Sublicensing is not allowed; section 10 |
| 186 | +makes it unnecessary. |
| 187 | + |
| 188 | + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. |
| 189 | + |
| 190 | + No covered work shall be deemed part of an effective technological |
| 191 | +measure under any applicable law fulfilling obligations under article |
| 192 | +11 of the WIPO copyright treaty adopted on 20 December 1996, or |
| 193 | +similar laws prohibiting or restricting circumvention of such |
| 194 | +measures. |
| 195 | + |
| 196 | + When you convey a covered work, you waive any legal power to forbid |
| 197 | +circumvention of technological measures to the extent such circumvention |
| 198 | +is effected by exercising rights under this License with respect to |
| 199 | +the covered work, and you disclaim any intention to limit operation or |
| 200 | +modification of the work as a means of enforcing, against the work's |
| 201 | +users, your or third parties' legal rights to forbid circumvention of |
| 202 | +technological measures. |
| 203 | + |
| 204 | + 4. Conveying Verbatim Copies. |
| 205 | + |
| 206 | + You may convey verbatim copies of the Program's source code as you |
| 207 | +receive it, in any medium, provided that you conspicuously and |
| 208 | +appropriately publish on each copy an appropriate copyright notice; |
| 209 | +keep intact all notices stating that this License and any |
| 210 | +non-permissive terms added in accord with section 7 apply to the code; |
| 211 | +keep intact all notices of the absence of any warranty; and give all |
| 212 | +recipients a copy of this License along with the Program. |
| 213 | + |
| 214 | + You may charge any price or no price for each copy that you convey, |
| 215 | +and you may offer support or warranty protection for a fee. |
| 216 | + |
| 217 | + 5. Conveying Modified Source Versions. |
| 218 | + |
| 219 | + You may convey a work based on the Program, or the modifications to |
| 220 | +produce it from the Program, in the form of source code under the |
| 221 | +terms of section 4, provided that you also meet all of these conditions: |
| 222 | + |
| 223 | + a) The work must carry prominent notices stating that you modified |
| 224 | + it, and giving a relevant date. |
| 225 | + |
| 226 | + b) The work must carry prominent notices stating that it is |
| 227 | + released under this License and any conditions added under section |
| 228 | + 7. This requirement modifies the requirement in section 4 to |
| 229 | + "keep intact all notices". |
| 230 | + |
| 231 | + c) You must license the entire work, as a whole, under this |
| 232 | + License to anyone who comes into possession of a copy. This |
| 233 | + License will therefore apply, along with any applicable section 7 |
| 234 | + additional terms, to the whole of the work, and all its parts, |
| 235 | + regardless of how they are packaged. This License gives no |
| 236 | + permission to license the work in any other way, but it does not |
| 237 | + invalidate such permission if you have separately received it. |
| 238 | + |
| 239 | + d) If the work has interactive user interfaces, each must display |
| 240 | + Appropriate Legal Notices; however, if the Program has interactive |
| 241 | + interfaces that do not display Appropriate Legal Notices, your |
| 242 | + work need not make them do so. |
| 243 | + |
| 244 | + A compilation of a covered work with other separate and independent |
| 245 | +works, which are not by their nature extensions of the covered work, |
| 246 | +and which are not combined with it such as to form a larger program, |
| 247 | +in or on a volume of a storage or distribution medium, is called an |
| 248 | +"aggregate" if the compilation and its resulting copyright are not |
| 249 | +used to limit the access or legal rights of the compilation's users |
| 250 | +beyond what the individual works permit. Inclusion of a covered work |
| 251 | +in an aggregate does not cause this License to apply to the other |
| 252 | +parts of the aggregate. |
| 253 | + |
| 254 | + 6. Conveying Non-Source Forms. |
| 255 | + |
| 256 | + You may convey a covered work in object code form under the terms |
| 257 | +of sections 4 and 5, provided that you also convey the |
| 258 | +machine-readable Corresponding Source under the terms of this License, |
| 259 | +in one of these ways: |
| 260 | + |
| 261 | + a) Convey the object code in, or embodied in, a physical product |
| 262 | + (including a physical distribution medium), accompanied by the |
| 263 | + Corresponding Source fixed on a durable physical medium |
| 264 | + customarily used for software interchange. |
| 265 | + |
| 266 | + b) Convey the object code in, or embodied in, a physical product |
| 267 | + (including a physical distribution medium), accompanied by a |
| 268 | + written offer, valid for at least three years and valid for as |
| 269 | + long as you offer spare parts or customer support for that product |
| 270 | + model, to give anyone who possesses the object code either (1) a |
| 271 | + copy of the Corresponding Source for all the software in the |
| 272 | + product that is covered by this License, on a durable physical |
| 273 | + medium customarily used for software interchange, for a price no |
| 274 | + more than your reasonable cost of physically performing this |
| 275 | + conveying of source, or (2) access to copy the |
| 276 | + Corresponding Source from a network server at no charge. |
| 277 | + |
| 278 | + c) Convey individual copies of the object code with a copy of the |
| 279 | + written offer to provide the Corresponding Source. This |
| 280 | + alternative is allowed only occasionally and noncommercially, and |
| 281 | + only if you received the object code with such an offer, in accord |
| 282 | + with subsection 6b. |
| 283 | + |
| 284 | + d) Convey the object code by offering access from a designated |
| 285 | + place (gratis or for a charge), and offer equivalent access to the |
| 286 | + Corresponding Source in the same way through the same place at no |
| 287 | + further charge. You need not require recipients to copy the |
| 288 | + Corresponding Source along with the object code. If the place to |
| 289 | + copy the object code is a network server, the Corresponding Source |
| 290 | + may be on a different server (operated by you or a third party) |
| 291 | + that supports equivalent copying facilities, provided you maintain |
| 292 | + clear directions next to the object code saying where to find the |
| 293 | + Corresponding Source. Regardless of what server hosts the |
| 294 | + Corresponding Source, you remain obligated to ensure that it is |
| 295 | + available for as long as needed to satisfy these requirements. |
| 296 | + |
| 297 | + e) Convey the object code using peer-to-peer transmission, provided |
| 298 | + you inform other peers where the object code and Corresponding |
| 299 | + Source of the work are being offered to the general public at no |
| 300 | + charge under subsection 6d. |
| 301 | + |
| 302 | + A separable portion of the object code, whose source code is excluded |
| 303 | +from the Corresponding Source as a System Library, need not be |
| 304 | +included in conveying the object code work. |
| 305 | + |
| 306 | + A "User Product" is either (1) a "consumer product", which means any |
| 307 | +tangible personal property which is normally used for personal, family, |
| 308 | +or household purposes, or (2) anything designed or sold for incorporation |
| 309 | +into a dwelling. In determining whether a product is a consumer product, |
| 310 | +doubtful cases shall be resolved in favor of coverage. For a particular |
| 311 | +product received by a particular user, "normally used" refers to a |
| 312 | +typical or common use of that class of product, regardless of the status |
| 313 | +of the particular user or of the way in which the particular user |
| 314 | +actually uses, or expects or is expected to use, the product. A product |
| 315 | +is a consumer product regardless of whether the product has substantial |
| 316 | +commercial, industrial or non-consumer uses, unless such uses represent |
| 317 | +the only significant mode of use of the product. |
| 318 | + |
| 319 | + "Installation Information" for a User Product means any methods, |
| 320 | +procedures, authorization keys, or other information required to install |
| 321 | +and execute modified versions of a covered work in that User Product from |
| 322 | +a modified version of its Corresponding Source. The information must |
| 323 | +suffice to ensure that the continued functioning of the modified object |
| 324 | +code is in no case prevented or interfered with solely because |
| 325 | +modification has been made. |
| 326 | + |
| 327 | + If you convey an object code work under this section in, or with, or |
| 328 | +specifically for use in, a User Product, and the conveying occurs as |
| 329 | +part of a transaction in which the right of possession and use of the |
| 330 | +User Product is transferred to the recipient in perpetuity or for a |
| 331 | +fixed term (regardless of how the transaction is characterized), the |
| 332 | +Corresponding Source conveyed under this section must be accompanied |
| 333 | +by the Installation Information. But this requirement does not apply |
| 334 | +if neither you nor any third party retains the ability to install |
| 335 | +modified object code on the User Product (for example, the work has |
| 336 | +been installed in ROM). |
| 337 | + |
| 338 | + The requirement to provide Installation Information does not include a |
| 339 | +requirement to continue to provide support service, warranty, or updates |
| 340 | +for a work that has been modified or installed by the recipient, or for |
| 341 | +the User Product in which it has been modified or installed. Access to a |
| 342 | +network may be denied when the modification itself materially and |
| 343 | +adversely affects the operation of the network or violates the rules and |
| 344 | +protocols for communication across the network. |
| 345 | + |
| 346 | + Corresponding Source conveyed, and Installation Information provided, |
| 347 | +in accord with this section must be in a format that is publicly |
| 348 | +documented (and with an implementation available to the public in |
| 349 | +source code form), and must require no special password or key for |
| 350 | +unpacking, reading or copying. |
| 351 | + |
| 352 | + 7. Additional Terms. |
| 353 | + |
| 354 | + "Additional permissions" are terms that supplement the terms of this |
| 355 | +License by making exceptions from one or more of its conditions. |
| 356 | +Additional permissions that are applicable to the entire Program shall |
| 357 | +be treated as though they were included in this License, to the extent |
| 358 | +that they are valid under applicable law. If additional permissions |
| 359 | +apply only to part of the Program, that part may be used separately |
| 360 | +under those permissions, but the entire Program remains governed by |
| 361 | +this License without regard to the additional permissions. |
| 362 | + |
| 363 | + When you convey a copy of a covered work, you may at your option |
| 364 | +remove any additional permissions from that copy, or from any part of |
| 365 | +it. (Additional permissions may be written to require their own |
| 366 | +removal in certain cases when you modify the work.) You may place |
| 367 | +additional permissions on material, added by you to a covered work, |
| 368 | +for which you have or can give appropriate copyright permission. |
| 369 | + |
| 370 | + Notwithstanding any other provision of this License, for material you |
| 371 | +add to a covered work, you may (if authorized by the copyright holders of |
| 372 | +that material) supplement the terms of this License with terms: |
| 373 | + |
| 374 | + a) Disclaiming warranty or limiting liability differently from the |
| 375 | + terms of sections 15 and 16 of this License; or |
| 376 | + |
| 377 | + b) Requiring preservation of specified reasonable legal notices or |
| 378 | + author attributions in that material or in the Appropriate Legal |
| 379 | + Notices displayed by works containing it; or |
| 380 | + |
| 381 | + c) Prohibiting misrepresentation of the origin of that material, or |
| 382 | + requiring that modified versions of such material be marked in |
| 383 | + reasonable ways as different from the original version; or |
| 384 | + |
| 385 | + d) Limiting the use for publicity purposes of names of licensors or |
| 386 | + authors of the material; or |
| 387 | + |
| 388 | + e) Declining to grant rights under trademark law for use of some |
| 389 | + trade names, trademarks, or service marks; or |
| 390 | + |
| 391 | + f) Requiring indemnification of licensors and authors of that |
| 392 | + material by anyone who conveys the material (or modified versions of |
| 393 | + it) with contractual assumptions of liability to the recipient, for |
| 394 | + any liability that these contractual assumptions directly impose on |
| 395 | + those licensors and authors. |
| 396 | + |
| 397 | + All other non-permissive additional terms are considered "further |
| 398 | +restrictions" within the meaning of section 10. If the Program as you |
| 399 | +received it, or any part of it, contains a notice stating that it is |
| 400 | +governed by this License along with a term that is a further |
| 401 | +restriction, you may remove that term. If a license document contains |
| 402 | +a further restriction but permits relicensing or conveying under this |
| 403 | +License, you may add to a covered work material governed by the terms |
| 404 | +of that license document, provided that the further restriction does |
| 405 | +not survive such relicensing or conveying. |
| 406 | + |
| 407 | + If you add terms to a covered work in accord with this section, you |
| 408 | +must place, in the relevant source files, a statement of the |
| 409 | +additional terms that apply to those files, or a notice indicating |
| 410 | +where to find the applicable terms. |
| 411 | + |
| 412 | + Additional terms, permissive or non-permissive, may be stated in the |
| 413 | +form of a separately written license, or stated as exceptions; |
| 414 | +the above requirements apply either way. |
| 415 | + |
| 416 | + 8. Termination. |
| 417 | + |
| 418 | + You may not propagate or modify a covered work except as expressly |
| 419 | +provided under this License. Any attempt otherwise to propagate or |
| 420 | +modify it is void, and will automatically terminate your rights under |
| 421 | +this License (including any patent licenses granted under the third |
| 422 | +paragraph of section 11). |
| 423 | + |
| 424 | + However, if you cease all violation of this License, then your |
| 425 | +license from a particular copyright holder is reinstated (a) |
| 426 | +provisionally, unless and until the copyright holder explicitly and |
| 427 | +finally terminates your license, and (b) permanently, if the copyright |
| 428 | +holder fails to notify you of the violation by some reasonable means |
| 429 | +prior to 60 days after the cessation. |
| 430 | + |
| 431 | + Moreover, your license from a particular copyright holder is |
| 432 | +reinstated permanently if the copyright holder notifies you of the |
| 433 | +violation by some reasonable means, this is the first time you have |
| 434 | +received notice of violation of this License (for any work) from that |
| 435 | +copyright holder, and you cure the violation prior to 30 days after |
| 436 | +your receipt of the notice. |
| 437 | + |
| 438 | + Termination of your rights under this section does not terminate the |
| 439 | +licenses of parties who have received copies or rights from you under |
| 440 | +this License. If your rights have been terminated and not permanently |
| 441 | +reinstated, you do not qualify to receive new licenses for the same |
| 442 | +material under section 10. |
| 443 | + |
| 444 | + 9. Acceptance Not Required for Having Copies. |
| 445 | + |
| 446 | + You are not required to accept this License in order to receive or |
| 447 | +run a copy of the Program. Ancillary propagation of a covered work |
| 448 | +occurring solely as a consequence of using peer-to-peer transmission |
| 449 | +to receive a copy likewise does not require acceptance. However, |
| 450 | +nothing other than this License grants you permission to propagate or |
| 451 | +modify any covered work. These actions infringe copyright if you do |
| 452 | +not accept this License. Therefore, by modifying or propagating a |
| 453 | +covered work, you indicate your acceptance of this License to do so. |
| 454 | + |
| 455 | + 10. Automatic Licensing of Downstream Recipients. |
| 456 | + |
| 457 | + Each time you convey a covered work, the recipient automatically |
| 458 | +receives a license from the original licensors, to run, modify and |
| 459 | +propagate that work, subject to this License. You are not responsible |
| 460 | +for enforcing compliance by third parties with this License. |
| 461 | + |
| 462 | + An "entity transaction" is a transaction transferring control of an |
| 463 | +organization, or substantially all assets of one, or subdividing an |
| 464 | +organization, or merging organizations. If propagation of a covered |
| 465 | +work results from an entity transaction, each party to that |
| 466 | +transaction who receives a copy of the work also receives whatever |
| 467 | +licenses to the work the party's predecessor in interest had or could |
| 468 | +give under the previous paragraph, plus a right to possession of the |
| 469 | +Corresponding Source of the work from the predecessor in interest, if |
| 470 | +the predecessor has it or can get it with reasonable efforts. |
| 471 | + |
| 472 | + You may not impose any further restrictions on the exercise of the |
| 473 | +rights granted or affirmed under this License. For example, you may |
| 474 | +not impose a license fee, royalty, or other charge for exercise of |
| 475 | +rights granted under this License, and you may not initiate litigation |
| 476 | +(including a cross-claim or counterclaim in a lawsuit) alleging that |
| 477 | +any patent claim is infringed by making, using, selling, offering for |
| 478 | +sale, or importing the Program or any portion of it. |
| 479 | + |
| 480 | + 11. Patents. |
| 481 | + |
| 482 | + A "contributor" is a copyright holder who authorizes use under this |
| 483 | +License of the Program or a work on which the Program is based. The |
| 484 | +work thus licensed is called the contributor's "contributor version". |
| 485 | + |
| 486 | + A contributor's "essential patent claims" are all patent claims |
| 487 | +owned or controlled by the contributor, whether already acquired or |
| 488 | +hereafter acquired, that would be infringed by some manner, permitted |
| 489 | +by this License, of making, using, or selling its contributor version, |
| 490 | +but do not include claims that would be infringed only as a |
| 491 | +consequence of further modification of the contributor version. For |
| 492 | +purposes of this definition, "control" includes the right to grant |
| 493 | +patent sublicenses in a manner consistent with the requirements of |
| 494 | +this License. |
| 495 | + |
| 496 | + Each contributor grants you a non-exclusive, worldwide, royalty-free |
| 497 | +patent license under the contributor's essential patent claims, to |
| 498 | +make, use, sell, offer for sale, import and otherwise run, modify and |
| 499 | +propagate the contents of its contributor version. |
| 500 | + |
| 501 | + In the following three paragraphs, a "patent license" is any express |
| 502 | +agreement or commitment, however denominated, not to enforce a patent |
| 503 | +(such as an express permission to practice a patent or covenant not to |
| 504 | +sue for patent infringement). To "grant" such a patent license to a |
| 505 | +party means to make such an agreement or commitment not to enforce a |
| 506 | +patent against the party. |
| 507 | + |
| 508 | + If you convey a covered work, knowingly relying on a patent license, |
| 509 | +and the Corresponding Source of the work is not available for anyone |
| 510 | +to copy, free of charge and under the terms of this License, through a |
| 511 | +publicly available network server or other readily accessible means, |
| 512 | +then you must either (1) cause the Corresponding Source to be so |
| 513 | +available, or (2) arrange to deprive yourself of the benefit of the |
| 514 | +patent license for this particular work, or (3) arrange, in a manner |
| 515 | +consistent with the requirements of this License, to extend the patent |
| 516 | +license to downstream recipients. "Knowingly relying" means you have |
| 517 | +actual knowledge that, but for the patent license, your conveying the |
| 518 | +covered work in a country, or your recipient's use of the covered work |
| 519 | +in a country, would infringe one or more identifiable patents in that |
| 520 | +country that you have reason to believe are valid. |
| 521 | + |
| 522 | + If, pursuant to or in connection with a single transaction or |
| 523 | +arrangement, you convey, or propagate by procuring conveyance of, a |
| 524 | +covered work, and grant a patent license to some of the parties |
| 525 | +receiving the covered work authorizing them to use, propagate, modify |
| 526 | +or convey a specific copy of the covered work, then the patent license |
| 527 | +you grant is automatically extended to all recipients of the covered |
| 528 | +work and works based on it. |
| 529 | + |
| 530 | + A patent license is "discriminatory" if it does not include within |
| 531 | +the scope of its coverage, prohibits the exercise of, or is |
| 532 | +conditioned on the non-exercise of one or more of the rights that are |
| 533 | +specifically granted under this License. You may not convey a covered |
| 534 | +work if you are a party to an arrangement with a third party that is |
| 535 | +in the business of distributing software, under which you make payment |
| 536 | +to the third party based on the extent of your activity of conveying |
| 537 | +the work, and under which the third party grants, to any of the |
| 538 | +parties who would receive the covered work from you, a discriminatory |
| 539 | +patent license (a) in connection with copies of the covered work |
| 540 | +conveyed by you (or copies made from those copies), or (b) primarily |
| 541 | +for and in connection with specific products or compilations that |
| 542 | +contain the covered work, unless you entered into that arrangement, |
| 543 | +or that patent license was granted, prior to 28 March 2007. |
| 544 | + |
| 545 | + Nothing in this License shall be construed as excluding or limiting |
| 546 | +any implied license or other defenses to infringement that may |
| 547 | +otherwise be available to you under applicable patent law. |
| 548 | + |
| 549 | + 12. No Surrender of Others' Freedom. |
| 550 | + |
| 551 | + If conditions are imposed on you (whether by court order, agreement or |
| 552 | +otherwise) that contradict the conditions of this License, they do not |
| 553 | +excuse you from the conditions of this License. If you cannot convey a |
| 554 | +covered work so as to satisfy simultaneously your obligations under this |
| 555 | +License and any other pertinent obligations, then as a consequence you may |
| 556 | +not convey it at all. For example, if you agree to terms that obligate you |
| 557 | +to collect a royalty for further conveying from those to whom you convey |
| 558 | +the Program, the only way you could satisfy both those terms and this |
| 559 | +License would be to refrain entirely from conveying the Program. |
| 560 | + |
| 561 | + 13. Use with the GNU Affero General Public License. |
| 562 | + |
| 563 | + Notwithstanding any other provision of this License, you have |
| 564 | +permission to link or combine any covered work with a work licensed |
| 565 | +under version 3 of the GNU Affero General Public License into a single |
| 566 | +combined work, and to convey the resulting work. The terms of this |
| 567 | +License will continue to apply to the part which is the covered work, |
| 568 | +but the special requirements of the GNU Affero General Public License, |
| 569 | +section 13, concerning interaction through a network will apply to the |
| 570 | +combination as such. |
| 571 | + |
| 572 | + 14. Revised Versions of this License. |
| 573 | + |
| 574 | + The Free Software Foundation may publish revised and/or new versions of |
| 575 | +the GNU General Public License from time to time. Such new versions will |
| 576 | +be similar in spirit to the present version, but may differ in detail to |
| 577 | +address new problems or concerns. |
| 578 | + |
| 579 | + Each version is given a distinguishing version number. If the |
| 580 | +Program specifies that a certain numbered version of the GNU General |
| 581 | +Public License "or any later version" applies to it, you have the |
| 582 | +option of following the terms and conditions either of that numbered |
| 583 | +version or of any later version published by the Free Software |
| 584 | +Foundation. If the Program does not specify a version number of the |
| 585 | +GNU General Public License, you may choose any version ever published |
| 586 | +by the Free Software Foundation. |
| 587 | + |
| 588 | + If the Program specifies that a proxy can decide which future |
| 589 | +versions of the GNU General Public License can be used, that proxy's |
| 590 | +public statement of acceptance of a version permanently authorizes you |
| 591 | +to choose that version for the Program. |
| 592 | + |
| 593 | + Later license versions may give you additional or different |
| 594 | +permissions. However, no additional obligations are imposed on any |
| 595 | +author or copyright holder as a result of your choosing to follow a |
| 596 | +later version. |
| 597 | + |
| 598 | + 15. Disclaimer of Warranty. |
| 599 | + |
| 600 | + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY |
| 601 | +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT |
| 602 | +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY |
| 603 | +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, |
| 604 | +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 605 | +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM |
| 606 | +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF |
| 607 | +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. |
| 608 | + |
| 609 | + 16. Limitation of Liability. |
| 610 | + |
| 611 | + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
| 612 | +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS |
| 613 | +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY |
| 614 | +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE |
| 615 | +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF |
| 616 | +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD |
| 617 | +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), |
| 618 | +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF |
| 619 | +SUCH DAMAGES. |
| 620 | + |
| 621 | + 17. Interpretation of Sections 15 and 16. |
| 622 | + |
| 623 | + If the disclaimer of warranty and limitation of liability provided |
| 624 | +above cannot be given local legal effect according to their terms, |
| 625 | +reviewing courts shall apply local law that most closely approximates |
| 626 | +an absolute waiver of all civil liability in connection with the |
| 627 | +Program, unless a warranty or assumption of liability accompanies a |
| 628 | +copy of the Program in return for a fee. |
| 629 | + |
| 630 | + END OF TERMS AND CONDITIONS |
| 631 | + |
| 632 | + How to Apply These Terms to Your New Programs |
| 633 | + |
| 634 | + If you develop a new program, and you want it to be of the greatest |
| 635 | +possible use to the public, the best way to achieve this is to make it |
| 636 | +free software which everyone can redistribute and change under these terms. |
| 637 | + |
| 638 | + To do so, attach the following notices to the program. It is safest |
| 639 | +to attach them to the start of each source file to most effectively |
| 640 | +state the exclusion of warranty; and each file should have at least |
| 641 | +the "copyright" line and a pointer to where the full notice is found. |
| 642 | + |
| 643 | + <one line to give the program's name and a brief idea of what it does.> |
| 644 | + Copyright (C) <year> <name of author> |
| 645 | + |
| 646 | + This program is free software: you can redistribute it and/or modify |
| 647 | + it under the terms of the GNU General Public License as published by |
| 648 | + the Free Software Foundation, either version 3 of the License, or |
| 649 | + (at your option) any later version. |
| 650 | + |
| 651 | + This program is distributed in the hope that it will be useful, |
| 652 | + but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 653 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 654 | + GNU General Public License for more details. |
| 655 | + |
| 656 | + You should have received a copy of the GNU General Public License |
| 657 | + along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 658 | + |
| 659 | +Also add information on how to contact you by electronic and paper mail. |
| 660 | + |
| 661 | + If the program does terminal interaction, make it output a short |
| 662 | +notice like this when it starts in an interactive mode: |
| 663 | + |
| 664 | + <program> Copyright (C) <year> <name of author> |
| 665 | + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
| 666 | + This is free software, and you are welcome to redistribute it |
| 667 | + under certain conditions; type `show c' for details. |
| 668 | + |
| 669 | +The hypothetical commands `show w' and `show c' should show the appropriate |
| 670 | +parts of the General Public License. Of course, your program's commands |
| 671 | +might be different; for a GUI interface, you would use an "about box". |
| 672 | + |
| 673 | + You should also get your employer (if you work as a programmer) or school, |
| 674 | +if any, to sign a "copyright disclaimer" for the program, if necessary. |
| 675 | +For more information on this, and how to apply and follow the GNU GPL, see |
| 676 | +<http://www.gnu.org/licenses/>. |
| 677 | + |
| 678 | + The GNU General Public License does not permit incorporating your program |
| 679 | +into proprietary programs. If your program is a subroutine library, you |
| 680 | +may consider it more useful to permit linking proprietary applications with |
| 681 | +the library. If this is what you want to do, use the GNU Lesser General |
| 682 | +Public License instead of this License. But first, please read |
| 683 | +<http://www.gnu.org/philosophy/why-not-lgpl.html>. |
\ No newline at end of file |
Property changes on: tags/extensions/SubPageList/REL_0_5/COPYING |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 684 | + native |
Index: tags/extensions/SubPageList/REL_0_5/SubPageList.php |
— | — | @@ -0,0 +1,71 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * Initialization file for the SubPageList extension. |
| 6 | + * |
| 7 | + * Documentation: http://www.mediawiki.org/wiki/Extension:SubPageList |
| 8 | + * Support http://www.mediawiki.org/wiki/Extension_talk:SubPageList |
| 9 | + * Source code: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SubPageList |
| 10 | + * |
| 11 | + * @file SubPageList.php |
| 12 | + * @ingroup SubPageList |
| 13 | + * |
| 14 | + * @licence GNU GPL v3 or later |
| 15 | + * |
| 16 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 17 | + */ |
| 18 | + |
| 19 | +/** |
| 20 | + * This documenation group collects source code files belonging to SubPageList. |
| 21 | + * |
| 22 | + * @defgroup SPL SubPageList |
| 23 | + */ |
| 24 | + |
| 25 | +if ( !defined( 'MEDIAWIKI' ) ) { |
| 26 | + die( 'Not an entry point.' ); |
| 27 | +} |
| 28 | + |
| 29 | +// Include the Validator extension if that hasn't been done yet, since it's required for SubPageList to work. |
| 30 | +if ( !defined( 'Validator_VERSION' ) ) { |
| 31 | + @include_once( dirname( __FILE__ ) . '/../Validator/Validator.php' ); |
| 32 | +} |
| 33 | + |
| 34 | +// Only initialize the extension when all dependencies are present. |
| 35 | +if ( ! defined( 'Validator_VERSION' ) ) { |
| 36 | + die( '<b>Error:</b> You need to have <a href="http://www.mediawiki.org/wiki/Extension:Validator">Validator</a> installed in order to use <a href="http://www.mediawiki.org/wiki/Extension:SubPageList">SubPageList</a>.<br />' ); |
| 37 | +} |
| 38 | + |
| 39 | +define( 'SPL_VERSION', '0.5' ); |
| 40 | + |
| 41 | +$wgExtensionCredits['parserhook'][] = array( |
| 42 | + 'path' => __FILE__, |
| 43 | + 'name' => 'SubPageList', |
| 44 | + 'version' => SPL_VERSION, |
| 45 | + 'author' => array( |
| 46 | + '[http://www.mediawiki.org/wiki/User:Jeroen_De_Dauw Jeroen De Dauw]', |
| 47 | + 'Van de Bugger. Based on [http://www.mediawiki.org/wiki/Extension:SubPageList3 SubPageList3].', |
| 48 | + ), |
| 49 | + 'url' => 'https://www.mediawiki.org/wiki/Extension:SubPageList', |
| 50 | + 'descriptionmsg' => 'spl-desc' |
| 51 | +); |
| 52 | + |
| 53 | +$egSPLIP = dirname( __FILE__ ); |
| 54 | + |
| 55 | +$wgExtensionMessagesFiles['SubPageList'] = $egSPLIP . '/SubPageList.i18n.php'; |
| 56 | +$wgExtensionMessagesFiles['SubPageListMagic'] = $egSPLIP . '/SubPageList.i18n.magic.php'; |
| 57 | + |
| 58 | +$wgAutoloadClasses['SubPageBase'] = $egSPLIP . '/SubPageBase.class.php'; |
| 59 | +$wgAutoloadClasses['SubPageList'] = $egSPLIP . '/SubPageList.class.php'; |
| 60 | +$wgAutoloadClasses['SubPageCount'] = $egSPLIP . '/SubPageCount.class.php'; |
| 61 | +$wgAutoloadClasses['SPLHooks'] = $egSPLIP . '/SubPageList.hooks.php'; |
| 62 | + |
| 63 | +$wgHooks['ParserFirstCallInit'][] = 'SubPageList::staticInit'; |
| 64 | +$wgHooks['LanguageGetMagic'][] = 'SubPageList::staticMagic'; |
| 65 | +$wgHooks['ParserFirstCallInit'][] = 'SubPageCount::staticInit'; |
| 66 | +$wgHooks['LanguageGetMagic'][] = 'SubPageCount::staticMagic'; |
| 67 | + |
| 68 | +$wgHooks['ArticleInsertComplete'][] = 'SPLHooks::onArticleInsertComplete'; |
| 69 | +$wgHooks['ArticleDeleteComplete'][] = 'SPLHooks::onArticleDeleteComplete'; |
| 70 | +$wgHooks['TitleMoveComplete'][] = 'SPLHooks::onTitleMoveComplete'; |
| 71 | + |
| 72 | +require_once 'SubPageList.settings.php'; |
Property changes on: tags/extensions/SubPageList/REL_0_5/SubPageList.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 73 | + native |
Index: tags/extensions/SubPageList/REL_0_5/SubPageCount.class.php |
— | — | @@ -0,0 +1,127 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * CLass to render the sub page count. |
| 6 | + * |
| 7 | + * @since 0.6 |
| 8 | + * |
| 9 | + * @file SubPageCount.class.php |
| 10 | + * @ingroup SPL |
| 11 | + * |
| 12 | + * @licence GNU GPL v3 or later |
| 13 | + * |
| 14 | + * @author Jeroen De Dauw |
| 15 | + * @author Van de Bugger |
| 16 | + * @author James McCormack (email: user "qedoc" at hotmail); preceding version Martin Schallnahs <myself@schaelle.de>, original Rob Church <robchur@gmail.com> |
| 17 | + * @copyright © 2008 James McCormack, preceding version Martin Schallnahs, original Rob Church |
| 18 | + */ |
| 19 | +final class SubPageCount extends SubPageBase { |
| 20 | + |
| 21 | + /** |
| 22 | + * No LSB in pre-5.3 PHP *sigh*. |
| 23 | + * This is to be refactored as soon as php >=5.3 becomes acceptable. |
| 24 | + */ |
| 25 | + public static function staticMagic( array &$magicWords, $langCode ) { |
| 26 | + $instance = new self; |
| 27 | + return $instance->magic( $magicWords, $langCode ); |
| 28 | + } |
| 29 | + |
| 30 | + /** |
| 31 | + * No LSB in pre-5.3 PHP *sigh*. |
| 32 | + * This is to be refactored as soon as php >=5.3 becomes acceptable. |
| 33 | + */ |
| 34 | + public static function staticInit( Parser &$wgParser ) { |
| 35 | + $instance = new self; |
| 36 | + return $instance->init( $wgParser ); |
| 37 | + } |
| 38 | + |
| 39 | + /** |
| 40 | + * Gets the name of the parser hook. |
| 41 | + * @see ParserHook::getName |
| 42 | + * |
| 43 | + * @since 0.6 |
| 44 | + * |
| 45 | + * @return string |
| 46 | + */ |
| 47 | + protected function getName() { |
| 48 | + return array( 'subpagecount' ); |
| 49 | + } |
| 50 | + |
| 51 | + /** |
| 52 | + * Returns an array containing the parameter info. |
| 53 | + * @see ParserHook::getParameterInfo |
| 54 | + * |
| 55 | + * @since 0.6 |
| 56 | + * |
| 57 | + * @return array |
| 58 | + */ |
| 59 | + protected function getParameterInfo( $type ) { |
| 60 | + $params = array(); |
| 61 | + $params['page'] = new Parameter( |
| 62 | + 'page', |
| 63 | + Parameter::TYPE_STRING, |
| 64 | + '', |
| 65 | + array( 'parent' ) // Aliases. |
| 66 | + ); |
| 67 | + $params['page']->setMessage( 'spl-subpages-par-page' ); |
| 68 | + $params['kidsonly'] = new Parameter( |
| 69 | + 'kidsonly', |
| 70 | + Parameter::TYPE_BOOLEAN, |
| 71 | + 'no' |
| 72 | + ); |
| 73 | + $params['kidsonly']->setMessage( 'spl-subpages-par-kidsonly' ); |
| 74 | + return $params; |
| 75 | + } |
| 76 | + |
| 77 | + /** |
| 78 | + * Returns the list of default parameters. |
| 79 | + * @see ParserHook::getDefaultParameters |
| 80 | + * |
| 81 | + * @since 0.6 |
| 82 | + * |
| 83 | + * @return array |
| 84 | + */ |
| 85 | + protected function getDefaultParameters( $type ) { |
| 86 | + return array( 'page' ); |
| 87 | + } |
| 88 | + |
| 89 | + /** |
| 90 | + * Renders and returns the output. |
| 91 | + * @see ParserHook::render |
| 92 | + * |
| 93 | + * @since 0.6 |
| 94 | + * |
| 95 | + * @param array $parameters |
| 96 | + * |
| 97 | + * @return string |
| 98 | + */ |
| 99 | + public function render( array $parameters ) { |
| 100 | + $count = ''; |
| 101 | + $title = $this->getTitle( $parameters['page'] ); |
| 102 | + // TODO: Return an error message instead of empty string? |
| 103 | + if ( is_null( $title ) ) { |
| 104 | + return $count; |
| 105 | + } |
| 106 | + $conds = $this->getConditions( $title, $parameters['kidsonly'] ); |
| 107 | + if ( is_null( $conds ) ) { |
| 108 | + return $count; |
| 109 | + } |
| 110 | + /* |
| 111 | + The code below is borrowed from `Database::estimateRowCount'. It works for MySQL, not |
| 112 | + yet tested with other databases. For unknown reason, `DatabaseMysql::estimateRowCount' |
| 113 | + does not work as expected. It returns number of subpages, direct and indirect, |
| 114 | + regardless of parameter `kidsonly'. |
| 115 | + */ |
| 116 | + $dbr = wfGetDB( DB_SLAVE ); |
| 117 | + $res = $dbr->select( 'page', 'COUNT(*) AS rowcount', $conds, __METHOD__ ); |
| 118 | + if ( ! $res ) { |
| 119 | + return $count; |
| 120 | + } |
| 121 | + $row = $dbr->fetchRow( $res ); |
| 122 | + $count = ( isset( $row['rowcount'] ) ? $row['rowcount'] : 0 ); |
| 123 | + return $count; |
| 124 | + } // render |
| 125 | + |
| 126 | +} |
| 127 | + |
| 128 | +// end of file // |
Property changes on: tags/extensions/SubPageList/REL_0_5/SubPageCount.class.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 129 | + native |
Index: tags/extensions/SubPageList/REL_0_5/SubPageList.hooks.php |
— | — | @@ -0,0 +1,135 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * Static class for hooks handled by the SubPageList extension. |
| 6 | + * |
| 7 | + * @since 0.3 |
| 8 | + * |
| 9 | + * @file SubPageList.hooks.php |
| 10 | + * @ingroup SubPageList |
| 11 | + * |
| 12 | + * @licence GNU GPL v3 |
| 13 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 14 | + */ |
| 15 | +final class SPLHooks { |
| 16 | + |
| 17 | + /** |
| 18 | + * Occurs after a new article has been created. |
| 19 | + * https://secure.wikimedia.org/wikipedia/mediawiki/wiki/Manual:Hooks/ArticleInsertComplete |
| 20 | + * |
| 21 | + * @since 0.3 |
| 22 | + * |
| 23 | + * @param Article|WikiPage &$article WikiPage object since MW 1.18 |
| 24 | + * |
| 25 | + * @return true |
| 26 | + */ |
| 27 | + public static function onArticleInsertComplete( |
| 28 | + &$article, User &$user, $text, $summary, $minoredit, |
| 29 | + $watchthis, $sectionanchor, &$flags, Revision $revision ) { |
| 30 | + |
| 31 | + self::invalidateBasePages( $article->getTitle() ); |
| 32 | + |
| 33 | + return true; |
| 34 | + } |
| 35 | + |
| 36 | + /** |
| 37 | + * Occurs after the delete article request has been processed. |
| 38 | + * https://secure.wikimedia.org/wikipedia/mediawiki/wiki/Manual:Hooks/ArticleDeleteComplete |
| 39 | + * |
| 40 | + * @since 0.3 |
| 41 | + * |
| 42 | + * @param Article|WikiPage &$article WikiPage object since MW 1.18 |
| 43 | + * |
| 44 | + * @return true |
| 45 | + */ |
| 46 | + public static function onArticleDeleteComplete( &$article, User &$user, $reason, $id ) { |
| 47 | + self::invalidateBasePages( $article->getTitle() ); |
| 48 | + |
| 49 | + return true; |
| 50 | + } |
| 51 | + |
| 52 | + /** |
| 53 | + * Occurs whenever a request to move an article is completed. |
| 54 | + * https://secure.wikimedia.org/wikipedia/mediawiki/wiki/Manual:Hooks/TitleMoveComplete |
| 55 | + * |
| 56 | + * @since 0.3 |
| 57 | + * |
| 58 | + * @return true |
| 59 | + */ |
| 60 | + public static function onTitleMoveComplete( Title &$title, Title &$newtitle, User &$user, $oldid, $newid ) { |
| 61 | + self::invalidateBasePages( $title ); |
| 62 | + self::invalidateBasePages( $newtitle ); |
| 63 | + |
| 64 | + return true; |
| 65 | + } |
| 66 | + |
| 67 | + /** |
| 68 | + * Invalidate the base pages for this title, so that any SubPageList |
| 69 | + * there gets refreshed after doing a subpage delete, move or creation. |
| 70 | + * |
| 71 | + * @since 0.3 |
| 72 | + * |
| 73 | + * @param Title $title |
| 74 | + */ |
| 75 | + protected static function invalidateBasePages( Title $title ) { |
| 76 | + global $egSPLAutorefresh; |
| 77 | + |
| 78 | + if ( !$egSPLAutorefresh ) { |
| 79 | + return; |
| 80 | + } |
| 81 | + |
| 82 | + $slashPosition = strpos( $title->getDBkey(), '/' ); |
| 83 | + |
| 84 | + if ( $slashPosition !== false ) { |
| 85 | + $baseTitleText = substr( $title->getDBkey(), 0, $slashPosition ); |
| 86 | + |
| 87 | + $titleArray = self::getBaseSubPages( |
| 88 | + $baseTitleText, |
| 89 | + $title->getNamespace() |
| 90 | + ); |
| 91 | + |
| 92 | + foreach ( $titleArray as $parentTitle ) { |
| 93 | + // No point in invalidating the page itself |
| 94 | + if ( $parentTitle->getArticleID() != $title->getArticleID() ) { |
| 95 | + $parentTitle->invalidateCache(); |
| 96 | + } |
| 97 | + } |
| 98 | + |
| 99 | + $baseTitle = Title::newFromText( $baseTitleText, $title->getNamespace() ); |
| 100 | + if ( $baseTitle->getArticleID() != $title->getArticleID() ) { |
| 101 | + $baseTitle->invalidateCache(); |
| 102 | + } |
| 103 | + } |
| 104 | + } |
| 105 | + |
| 106 | + /** |
| 107 | + * Returns a title iterator with all the subpages of the base page |
| 108 | + * for the provided title. This will include the provided title itself, |
| 109 | + * unless the provided title is a base page. |
| 110 | + * |
| 111 | + * @since 0.3 |
| 112 | + * |
| 113 | + * @param string $baseTitle |
| 114 | + * @param integer $ns |
| 115 | + * |
| 116 | + * @return TitleArray |
| 117 | + */ |
| 118 | + protected static function getBaseSubPages( $baseTitle, $ns ) { |
| 119 | + $dbr = wfGetDB( DB_SLAVE ); |
| 120 | + |
| 121 | + $titleArray = TitleArray::newFromResult( |
| 122 | + $dbr->select( 'page', |
| 123 | + array( 'page_id', 'page_namespace', 'page_title', 'page_is_redirect' ), |
| 124 | + array( |
| 125 | + 'page_namespace' => $ns, |
| 126 | + 'page_title' => $dbr->buildLike( $baseTitle . '/', $dbr->anyString() ) |
| 127 | + ), |
| 128 | + __METHOD__, |
| 129 | + array( 'LIMIT' => 500 ) |
| 130 | + ) |
| 131 | + ); |
| 132 | + |
| 133 | + return $titleArray; |
| 134 | + } |
| 135 | + |
| 136 | +} |
\ No newline at end of file |
Property changes on: tags/extensions/SubPageList/REL_0_5/SubPageList.hooks.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 137 | + native |
Index: tags/extensions/SubPageList/REL_0_5/SubPageBase.class.php |
— | — | @@ -0,0 +1,103 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * Base class for classes `SubPageList' and `SubPageCount'. Contains code common for both |
| 6 | + * descendants. |
| 7 | + * |
| 8 | + * @since 0.6 |
| 9 | + * |
| 10 | + * @file SubPageCount.class.php |
| 11 | + * @ingroup SPL |
| 12 | + * |
| 13 | + * @licence GNU GPL v3 or later |
| 14 | + * |
| 15 | + * @author Jeroen De Dauw |
| 16 | + * @author Van de Bugger |
| 17 | + * @author James McCormack (email: user "qedoc" at hotmail); preceding version Martin Schallnahs <myself@schaelle.de>, original Rob Church <robchur@gmail.com> |
| 18 | + * @copyright © 2008 James McCormack, preceding version Martin Schallnahs, original Rob Church |
| 19 | + */ |
| 20 | +abstract class SubPageBase extends ParserHook { |
| 21 | + |
| 22 | + /** |
| 23 | + * Returns the title for which subpages should be fetched. |
| 24 | + * |
| 25 | + * @since 0.1 |
| 26 | + * |
| 27 | + * @param string $page — Name of page. |
| 28 | + * |
| 29 | + * @return Instance of Title class — title of an existing page, or integer — index of an |
| 30 | + * existing namespace, or null otherwise. |
| 31 | + */ |
| 32 | + protected function getTitle( $page ) { |
| 33 | + global $wgContLang; |
| 34 | + |
| 35 | + $title = null; |
| 36 | + |
| 37 | + if ( $page == '' ) { |
| 38 | + $title = $this->parser->mTitle; |
| 39 | + } else { |
| 40 | + $title = Title::newFromText( $page ); |
| 41 | + if ( is_null( $title ) ) { |
| 42 | + // It is a wrog page name. Probably it is a namespace name? |
| 43 | + $m = array(); |
| 44 | + if ( preg_match( '/^\s*(.*):\s*$/', $page, $m ) ) { |
| 45 | + $title = $wgContLang->getNsIndex( $m[ 1 ] ); |
| 46 | + } |
| 47 | + } elseif ( ! $title->exists() ) { |
| 48 | + $title = null; |
| 49 | + } |
| 50 | + } |
| 51 | + |
| 52 | + return $title; |
| 53 | + } |
| 54 | + |
| 55 | + /** |
| 56 | + * Returns condition array suitable for `select' or `estimateRowCount'. |
| 57 | + * |
| 58 | + * @since 0.6 |
| 59 | + * |
| 60 | + * @param $title — Either page title (Title instance) or namespace (integer). Do not pass null. |
| 61 | + * |
| 62 | + * @param $kidsOnly — Boolean. If true, only direct subpages are included. |
| 63 | + * |
| 64 | + * @return array — Conditions or `null' if something is wrong (e. g. subpages are not enabled |
| 65 | + * in this namespace or page does not exits). |
| 66 | + */ |
| 67 | + protected function getConditions( $title, $kidsOnly ) { |
| 68 | + |
| 69 | + if ( is_null( $title ) ) { |
| 70 | + // Just in case. If `getTitle' returns `null' it means page does not exist. |
| 71 | + return null; |
| 72 | + } |
| 73 | + $dbr = wfGetDB( DB_SLAVE ); |
| 74 | + $conditions = array(); |
| 75 | + $conditions['page_is_redirect'] = 0; |
| 76 | + if ( $title instanceof Title ) { |
| 77 | + if ( ! MWNamespace::hasSubpages( $title->getNamespace() ) ) { |
| 78 | + // Subpages are not enabled in this namespace. If we return empty array such a |
| 79 | + // condition will meet all the pages, so let us return `null' istead to signal |
| 80 | + // result is not valid. |
| 81 | + return null; |
| 82 | + } |
| 83 | + $conditions['page_namespace'] = $title->getNamespace(); // Don't let list cross namespaces. |
| 84 | + // TODO: this is rather resource heavy |
| 85 | + $conditions[] = 'page_title ' . $dbr->buildLike( $title->getDBkey() . '/', $dbr->anyString() ); |
| 86 | + if ( $kidsOnly ) { |
| 87 | + $conditions[] = 'page_title NOT ' . $dbr->buildLike( $title->getDBkey() . '/', $dbr->anyString(), '/', $dbr->anyString() ); |
| 88 | + } |
| 89 | + } else { |
| 90 | + // `$title' is namespace index. |
| 91 | + $conditions['page_namespace'] = $title; |
| 92 | + if ( $kidsOnly && MWNamespace::hasSubpages( $title ) ) { |
| 93 | + // Requested only "root" pages, not subpages. |
| 94 | + $conditions[] = 'page_title NOT ' . $dbr->buildLike( $dbr->anyString(), '/', $dbr->anyString() ); |
| 95 | + } else { |
| 96 | + // Subpages requested for namespace: not just direct kids or namespace does not have |
| 97 | + // subpages => we should return *all* the pages in namespace => condition is not |
| 98 | + // needed. |
| 99 | + } |
| 100 | + } |
| 101 | + return $conditions; |
| 102 | + } // getConditions |
| 103 | + |
| 104 | +} // class SubPageBase |
Property changes on: tags/extensions/SubPageList/REL_0_5/SubPageBase.class.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 105 | + native |
Index: tags/extensions/SubPageList/REL_0_5/SubPageList.class.php |
— | — | @@ -0,0 +1,453 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * CLass to render the sub page list. |
| 6 | + * |
| 7 | + * @since 0.1 |
| 8 | + * |
| 9 | + * @file SubPageList.class.php |
| 10 | + * @ingroup SPL |
| 11 | + * |
| 12 | + * @licence GNU GPL v3 or later |
| 13 | + * |
| 14 | + * @author Jeroen De Dauw |
| 15 | + * @author Van de Bugger |
| 16 | + * @author James McCormack (email: user "qedoc" at hotmail); preceding version Martin Schallnahs <myself@schaelle.de>, original Rob Church <robchur@gmail.com> |
| 17 | + * @copyright © 2008 James McCormack, preceding version Martin Schallnahs, original Rob Church |
| 18 | + */ |
| 19 | +final class SubPageList extends SubPageBase { |
| 20 | + |
| 21 | + /** |
| 22 | + * No LST in pre-5.3 PHP *sigh*. |
| 23 | + * This is to be refactored as soon as php >=5.3 becomes acceptable. |
| 24 | + */ |
| 25 | + public static function staticMagic( array &$magicWords, $langCode ) { |
| 26 | + $className = __CLASS__; |
| 27 | + $instance = new $className(); |
| 28 | + return $instance->magic( $magicWords, $langCode ); |
| 29 | + } |
| 30 | + |
| 31 | + /** |
| 32 | + * No LST in pre-5.3 PHP *sigh*. |
| 33 | + * This is to be refactored as soon as php >=5.3 becomes acceptable. |
| 34 | + */ |
| 35 | + public static function staticInit( Parser &$wgParser ) { |
| 36 | + $className = __CLASS__; |
| 37 | + $instance = new $className(); |
| 38 | + return $instance->init( $wgParser ); |
| 39 | + } |
| 40 | + |
| 41 | + /** |
| 42 | + * Gets the name of the parser hook. |
| 43 | + * @see ParserHook::getName |
| 44 | + * |
| 45 | + * @since 0.1 |
| 46 | + * |
| 47 | + * @return string |
| 48 | + */ |
| 49 | + protected function getName() { |
| 50 | + return array( 'subpages', 'splist', 'subpagelist' ); |
| 51 | + } |
| 52 | + |
| 53 | + /** |
| 54 | + * Returns an array containing the parameter info. |
| 55 | + * @see ParserHook::getParameterInfo |
| 56 | + * |
| 57 | + * @since 0.1 |
| 58 | + * |
| 59 | + * @return array |
| 60 | + */ |
| 61 | + protected function getParameterInfo( $type ) { |
| 62 | + $params = array(); |
| 63 | + |
| 64 | + $params['sort'] = new Parameter( 'sort' ); |
| 65 | + $params['sort']->addAliases( 'order' ); |
| 66 | + $params['sort']->addCriteria( new CriterionInArray( 'asc', 'desc' ) ); |
| 67 | + $params['sort']->addManipulations( new ParamManipulationFunctions( 'strtolower' ) ); |
| 68 | + $params['sort']->setDefault( 'asc' ); |
| 69 | + $params['sort']->setDescription( wfMsg( 'spl-subpages-par-sort' ) ); |
| 70 | + |
| 71 | + $params['sortby'] = new Parameter( 'sortby' ); |
| 72 | + $params['sortby']->addCriteria( new CriterionInArray( 'title', 'lastedit' ) ); |
| 73 | + $params['sortby']->addManipulations( new ParamManipulationFunctions( 'strtolower' ) ); |
| 74 | + $params['sortby']->setDefault( 'title' ); |
| 75 | + $params['sortby']->setDescription( wfMsg( 'spl-subpages-par-sortby' ) ); |
| 76 | + |
| 77 | + $params['format'] = new Parameter( 'format' ); |
| 78 | + $params['format']->addAliases( 'liststyle' ); |
| 79 | + $params['format']->addCriteria( new CriterionInArray( |
| 80 | + 'ul', 'unordered', |
| 81 | + 'ol', 'ordered', |
| 82 | + 'list', 'bar' |
| 83 | + ) ); |
| 84 | + $params['format']->addManipulations( new ParamManipulationFunctions( 'strtolower' ) ); |
| 85 | + $params['format']->setDefault( 'ul' ); |
| 86 | + $params['format']->setDescription( wfMsg( 'spl-subpages-par-format' ) ); |
| 87 | + |
| 88 | + $params['page'] = new Parameter( 'page' ); |
| 89 | + $params['page']->addAliases( 'parent' ); |
| 90 | + $params['page']->setDefault( '' ); |
| 91 | + $params['page']->setDescription( wfMsg( 'spl-subpages-par-page' ) ); |
| 92 | + |
| 93 | + $params['showpage'] = new Parameter( 'showpage', Parameter::TYPE_BOOLEAN ); |
| 94 | + $params['showpage']->addAliases( 'showparent' ); |
| 95 | + $params['showpage']->setDefault( 'no' ); |
| 96 | + $params['showpage']->setDescription( wfMsg( 'spl-subpages-par-showpage' ) ); |
| 97 | + |
| 98 | + $params['pathstyle'] = new Parameter( 'pathstyle' ); |
| 99 | + $params['pathstyle']->addAliases( 'showpath' ); |
| 100 | + $params['pathstyle']->addCriteria( new CriterionInArray( |
| 101 | + 'none', 'no', |
| 102 | + 'subpagename', 'children', 'notparent', |
| 103 | + 'pagename', |
| 104 | + 'full', // Deprecate? --vdb |
| 105 | + 'fullpagename' |
| 106 | + ) ); |
| 107 | + $params['pathstyle']->setDefault( 'none' ); |
| 108 | + $params['pathstyle']->addManipulations( new ParamManipulationFunctions( 'strtolower' ) ); |
| 109 | + $params['pathstyle']->setDescription( wfMsg( 'spl-subpages-par-pathstyle' ) ); |
| 110 | + |
| 111 | + $params['kidsonly'] = new Parameter( 'kidsonly', Parameter::TYPE_BOOLEAN ); |
| 112 | + $params['kidsonly']->setDefault( 'no' ); |
| 113 | + $params['kidsonly']->setDescription( wfMsg( 'spl-subpages-par-kidsonly' ) ); |
| 114 | + |
| 115 | + $params['limit'] = new Parameter( 'limit', Parameter::TYPE_INTEGER ); |
| 116 | + $params['limit']->setDefault( 200 ); |
| 117 | + $params['limit']->addCriteria( new CriterionInRange( 1, 500 ) ); |
| 118 | + $params['limit']->setDescription( wfMsg( 'spl-subpages-par-limit' ) ); |
| 119 | + |
| 120 | + $params['element'] = new Parameter( 'element', Parameter::TYPE_STRING, 'div' ); |
| 121 | + $params['element']->addCriteria( new CriterionInArray( 'div', 'p', 'span' ) ); |
| 122 | + $params['element']->setDescription( wfMsg( 'spl-subpages-par-element' ) ); |
| 123 | + |
| 124 | + $params['class'] = new Parameter( 'class', Parameter::TYPE_STRING, 'subpagelist' ); |
| 125 | + $params['class']->setDescription( wfMsg( 'spl-subpages-par-class' ) ); |
| 126 | + |
| 127 | + $params['intro'] = new Parameter( 'intro', Parameter::TYPE_STRING, '' ); |
| 128 | + $params['intro']->setDescription( wfMsg( 'spl-subpages-par-intro' ) ); |
| 129 | + |
| 130 | + $params['outro'] = new Parameter( 'outro', Parameter::TYPE_STRING, '' ); |
| 131 | + $params['outro']->setDescription( wfMsg( 'spl-subpages-par-outro' ) ); |
| 132 | + |
| 133 | + $params['default'] = new Parameter( 'default', Parameter::TYPE_STRING, '' ); |
| 134 | + $params['default']->setDescription( wfMsg( 'spl-subpages-par-default' ) ); |
| 135 | + |
| 136 | + $params['separator'] = new Parameter( 'separator', Parameter::TYPE_STRING, ' · ' ); |
| 137 | + $params['separator']->addAliases( 'sep' ); |
| 138 | + $params['separator']->setDescription( wfMsg( 'spl-subpages-par-separator' ) ); |
| 139 | + |
| 140 | + $params['template'] = new Parameter( 'template', Parameter::TYPE_STRING, '' ); |
| 141 | + $params['template']->setDescription( wfMsg( 'spl-subpages-par-template' ) ); |
| 142 | + |
| 143 | + $params['links'] = new Parameter( 'links', Parameter::TYPE_BOOLEAN, true ); |
| 144 | + $params['links']->addAliases( 'link' ); |
| 145 | + $params['links']->setDescription( wfMsg( 'spl-subpages-par-links' ) ); |
| 146 | + |
| 147 | + return $params; |
| 148 | + } |
| 149 | + |
| 150 | + /** |
| 151 | + * Returns the list of default parameters. |
| 152 | + * @see ParserHook::getDefaultParameters |
| 153 | + * |
| 154 | + * @since 0.1 |
| 155 | + * |
| 156 | + * @return array |
| 157 | + */ |
| 158 | + protected function getDefaultParameters( $type ) { |
| 159 | + return array( 'page', 'format', 'pathstyle', 'sortby', 'sort' ); |
| 160 | + } |
| 161 | + |
| 162 | + /** |
| 163 | + * Renders and returns the output. |
| 164 | + * @see ParserHook::render |
| 165 | + * |
| 166 | + * @since 0.1 |
| 167 | + * |
| 168 | + * @param array $parameters |
| 169 | + * |
| 170 | + * @return string |
| 171 | + */ |
| 172 | + public function render( array $parameters ) { |
| 173 | + $title = $this->getTitle( $parameters['page'] ); |
| 174 | + $pages = $this->getSubPages( $title, $parameters ); |
| 175 | + // There is no need in encoding `$parameters['element']', because it is validated and can |
| 176 | + // be only one of `span', `p', or `div'. |
| 177 | + $element = $parameters['element']; |
| 178 | + // Using `$parameters['class']' is dangerous and may be a security hole, because it may lead |
| 179 | + // to incorrect (or malicious) HTML code. `encodeAttribute' solves the issue. |
| 180 | + $class = Sanitizer::encodeAttribute( $parameters['class'] ); |
| 181 | + $open = "<$element class=\"$class\">"; |
| 182 | + $close = "</$element>"; |
| 183 | + $inlineList = ( $parameters['format'] == 'list' || $parameters['format'] == 'bar' ); |
| 184 | + $inlineText = ( $element == 'span' ); |
| 185 | + $list = ''; |
| 186 | + |
| 187 | + if ( count( $pages ) > 0 ) { |
| 188 | + $intro = $parameters['intro']; |
| 189 | + $outro = $parameters['outro']; |
| 190 | + if ( $inlineText && ! $inlineList ) { |
| 191 | + if ( $intro !== '' ) { |
| 192 | + $list .= $open . $intro . $close; |
| 193 | + } |
| 194 | + $list .= |
| 195 | + "<div class=\"$class\">" . |
| 196 | + $this->makeList( $title, $parameters, $pages ) . |
| 197 | + "</div>"; |
| 198 | + if ( $outro !== "" ) { |
| 199 | + $list .= $open . $outro . $close; |
| 200 | + } |
| 201 | + } |
| 202 | + else { |
| 203 | + $list = |
| 204 | + $open . $intro . |
| 205 | + $this->makeList( $title, $parameters, $pages ) . |
| 206 | + $outro . $close; |
| 207 | + } |
| 208 | + $list = $this->parseWikitext( $list ); |
| 209 | + } |
| 210 | + else { |
| 211 | + $default = $parameters['default']; |
| 212 | + if ( $default === "" ) { |
| 213 | + if ( is_null( $title ) ) { |
| 214 | + $list = "''" . wfMsg( 'spl-noparentpage', $parameters['page'] ) . "''"; |
| 215 | + } |
| 216 | + elseif ( $title instanceof Title ) { |
| 217 | + $list = "''" . wfMsg( 'spl-nosubpages', '[[' . $title->getFullText() . ']]' ) . "''"; |
| 218 | + } |
| 219 | + else { |
| 220 | + $list = "''" . wfMsg( 'spl-nopages', $parameters['page'] ) . "''"; |
| 221 | + } |
| 222 | + } |
| 223 | + elseif ( $default !== "-" ) { |
| 224 | + $list = $default; |
| 225 | + } |
| 226 | + // Format element only if content is not empty. |
| 227 | + if ( $list !== "" ) { |
| 228 | + $list = $open . $this->parseWikitext( $list ) . $close; |
| 229 | + } |
| 230 | + } |
| 231 | + |
| 232 | + return $list; |
| 233 | + } |
| 234 | + |
| 235 | + /** |
| 236 | + * Returns the subpages for a page. |
| 237 | + * |
| 238 | + * @since 0.1 |
| 239 | + * |
| 240 | + * @param $title can be either an instance of Title class (title of an existing page), or number |
| 241 | + * (index of an existing namespace) or null. |
| 242 | + * @param array $parameters |
| 243 | + * |
| 244 | + * @return array of Title |
| 245 | + */ |
| 246 | + protected function getSubPages( $title, array $parameters ) { |
| 247 | + $titles = array(); |
| 248 | + |
| 249 | + if ( ! is_null( $title ) ) { |
| 250 | + // TODO: Check whether subpages enabled? |
| 251 | + $dbr = wfGetDB( DB_SLAVE ); |
| 252 | + |
| 253 | + $options = array(); |
| 254 | + $options['ORDER BY'] = |
| 255 | + ( $parameters['sortby'] == 'title' ? 'page_title' : 'page_touched' ) . ' ' . |
| 256 | + ( strtoupper( $parameters['sort'] ) ); |
| 257 | + $options['LIMIT'] = $parameters['limit']; |
| 258 | + |
| 259 | + $conditions = $this->getConditions( $title, $parameters['kidsonly'] ); |
| 260 | + if ( is_null( $conditions ) ) { |
| 261 | + return $titles; |
| 262 | + } |
| 263 | + |
| 264 | + $fields = array(); |
| 265 | + $fields[] = 'page_title'; |
| 266 | + $fields[] = 'page_namespace'; |
| 267 | + |
| 268 | + $res = $dbr->select( 'page', $fields, $conditions, __METHOD__, $options ); |
| 269 | + |
| 270 | + foreach( $res as $row ) { |
| 271 | + $title = Title::makeTitleSafe( $row->page_namespace, $row->page_title ); |
| 272 | + if( is_object( $title ) ) { |
| 273 | + $titles[] = $title; |
| 274 | + } |
| 275 | + } |
| 276 | + |
| 277 | + $dbr->freeResult( $res ); |
| 278 | + |
| 279 | + } |
| 280 | + |
| 281 | + return $titles; |
| 282 | + } |
| 283 | + |
| 284 | + /** |
| 285 | + * Creates one list item. |
| 286 | + * |
| 287 | + * @param $fullName — Full name of page, including namespace (but excluding fragment). |
| 288 | + * @param $nsLen — Length of namespace name (including colon, if any). |
| 289 | + * @param $parentLen — Length of parent title (not including namespace but including slash). |
| 290 | + * |
| 291 | + * @return string: wikitext for the list item |
| 292 | + */ |
| 293 | + protected function makeListItem( $fullName, $nsLen, $parentLen, array $parameters ) { |
| 294 | + switch( $parameters['pathstyle'] ) { |
| 295 | + case 'none' : case 'no' : |
| 296 | + // Just a last item. |
| 297 | + $slash = strrpos( $fullName, '/' ); |
| 298 | + if ( $slash ) { |
| 299 | + $item = substr( $fullName, $slash + 1 ); // +1 to skip slash. |
| 300 | + } |
| 301 | + else { |
| 302 | + $item = substr( $fullName, $nsLen ); |
| 303 | + } |
| 304 | + break; |
| 305 | + case 'subpagename' : case 'children' : case 'notparent' : |
| 306 | + // Pagename starting from parent. |
| 307 | + $item = substr( $fullName, $nsLen + $parentLen ); |
| 308 | + break; |
| 309 | + case 'pagename' : case 'full' : |
| 310 | + // Almost full (without namespace). |
| 311 | + $item = substr( $fullName, $nsLen ); |
| 312 | + break; |
| 313 | + case 'fullpagename' : |
| 314 | + // Full name (including namespace). |
| 315 | + $item = $fullName; |
| 316 | + break; |
| 317 | + } |
| 318 | + |
| 319 | + if ( $parameters['links'] ) { |
| 320 | + $item = "[[$fullName|$item]]"; |
| 321 | + } |
| 322 | + |
| 323 | + if ( $parameters['template'] !== '' ) { |
| 324 | + $item = '{{' . $parameters['template'] . '|' . $item . '}}'; |
| 325 | + } |
| 326 | + |
| 327 | + return $item; |
| 328 | + } |
| 329 | + |
| 330 | + /** |
| 331 | + * Creates whole list using makeListItem. |
| 332 | + * |
| 333 | + * @see SubPageList::makeListItem |
| 334 | + * |
| 335 | + * @param $title can be either an instance of Title class (title of an existing page), or number |
| 336 | + * (index of an existing namespace) or null. |
| 337 | + * @param array $parameters |
| 338 | + * @param array $titles |
| 339 | + * |
| 340 | + * @return string the whole list |
| 341 | + */ |
| 342 | + protected function makeList( $title, array $parameters, array $titles ) { |
| 343 | + global $wgContLang; |
| 344 | + $start = ''; // String to render once in the very beginning of each item. |
| 345 | + $bullet = ''; // String to render between `$start' and item |
| 346 | + // (may be rendered few times, depends on nesting level). |
| 347 | + $sep = ''; // String to render between two items. |
| 348 | + $end = ''; // String to render once at the end of the last item. |
| 349 | + $items = array(); |
| 350 | + |
| 351 | + switch ( $parameters['format'] ) { |
| 352 | + case 'ol' : case 'ordered' : |
| 353 | + $start = "\n"; |
| 354 | + $bullet = '#'; |
| 355 | + $end = "\n"; |
| 356 | + break; |
| 357 | + case 'ul' : case 'unordered' : |
| 358 | + $start = "\n"; |
| 359 | + $bullet = '*'; |
| 360 | + $end = "\n"; |
| 361 | + break; |
| 362 | + case 'list' : case 'bar' : |
| 363 | + $sep = $parameters['separator']; |
| 364 | + break; |
| 365 | + } |
| 366 | + |
| 367 | + // Let us have $bullets is a long enough series of bullets. |
| 368 | + $bullets = $bullet; |
| 369 | + |
| 370 | + // WARNING: It seems strlen and other sring functions operated with bytes, not characters. |
| 371 | + // But it seems it is ok for UTF-8 encoding... |
| 372 | + |
| 373 | + if ( $title instanceof Title ) { |
| 374 | + $nsName = $title->getNsText(); // Namespace name. |
| 375 | + $parentFull = $title->getPrefixedText(); // Including namespace. |
| 376 | + $parentText = $title->getText(); // Not including namespace. |
| 377 | + $parentSlashCount = substr_count( $parentFull, '/' ); |
| 378 | + } |
| 379 | + else { |
| 380 | + $nsName = $wgContLang->getNsText( $title ); |
| 381 | + $parentFull = $nsName; |
| 382 | + $parentText = ''; |
| 383 | + $parentSlashCount = -1; |
| 384 | + } |
| 385 | + // If prefix (namespace name) is not empty, count subsequent colon also. |
| 386 | + $nsLen = strlen( $nsName ); |
| 387 | + if ( $nsLen > 0 ) { |
| 388 | + ++ $nsLen; |
| 389 | + } |
| 390 | + // If parent page name is not empty, count subsequent slash also. |
| 391 | + $parentLen = strlen( $parentText ); |
| 392 | + if ( $parentLen > 0 ) { |
| 393 | + ++ $parentLen; |
| 394 | + } |
| 395 | + // Max nesting level. |
| 396 | + $maxLevel = ( $parameters['kidsonly'] ? 1 : 1000 ); |
| 397 | + |
| 398 | + if ( $parameters['showpage'] && $title instanceof Title ) { |
| 399 | + // If parent should be shown, correct starting point: |
| 400 | + $slash = strrpos( $parentText, '/' ); |
| 401 | + if ( $slash ) { |
| 402 | + $parentLen = $slash + 1; |
| 403 | + } |
| 404 | + else { |
| 405 | + $parentLen = 0; |
| 406 | + } |
| 407 | + -- $parentSlashCount; |
| 408 | + ++ $maxLevel; |
| 409 | + // Render page itself as the very first item of the list. |
| 410 | + $item = |
| 411 | + $start . $bullet . |
| 412 | + $this->makeListItem( $parentFull, $nsLen, $parentLen, $parameters ); |
| 413 | + $items[] = $item; |
| 414 | + } |
| 415 | + |
| 416 | + foreach( $titles as $pageTitle ) { |
| 417 | + $pageFull = $pageTitle->getPrefixedText(); |
| 418 | + $level = substr_count( $pageFull, '/' ) - $parentSlashCount; |
| 419 | + |
| 420 | + if ( $level <= $maxLevel ) { |
| 421 | + $item = ''; |
| 422 | + if ( $bullet != '' ) { |
| 423 | + // Make sure $bullets is long enough. |
| 424 | + while ( strlen( $bullets ) < $level ) { |
| 425 | + $bullets .= $bullet; |
| 426 | + } |
| 427 | + |
| 428 | + $item .= $start . substr( $bullets, 0, $level ); |
| 429 | + } |
| 430 | + |
| 431 | + $item .= $this->makeListItem( $pageFull, $nsLen, $parentLen, $parameters ); |
| 432 | + $items[] = $item; |
| 433 | + } |
| 434 | + } |
| 435 | + |
| 436 | + return count( $items ) > 0 ? implode( $sep, $items ) . $end : ''; |
| 437 | + } |
| 438 | + |
| 439 | + /** |
| 440 | + * Returns the parser function otpions. |
| 441 | + * @see ParserHook::getFunctionOptions |
| 442 | + * |
| 443 | + * @since 0.2 |
| 444 | + * |
| 445 | + * @return array |
| 446 | + */ |
| 447 | + protected function getFunctionOptions() { |
| 448 | + return array( |
| 449 | + 'noparse' => true, |
| 450 | + 'isHTML' => true |
| 451 | + ); |
| 452 | + } |
| 453 | + |
| 454 | +} |
Property changes on: tags/extensions/SubPageList/REL_0_5/SubPageList.class.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 455 | + native |
Index: tags/extensions/SubPageList/REL_0_5/README |
— | — | @@ -0,0 +1,16 @@ |
| 2 | +These is the readme file for the SubPageList extension. |
| 3 | + |
| 4 | +Extension page on mediawiki.org: http://www.mediawiki.org/wiki/Extension:SubPageList |
| 5 | +Latest version of the readme file: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SubPageList/README?view=co |
| 6 | + |
| 7 | +== About == |
| 8 | + |
| 9 | +SubPageList is a lightweight extension to display subpages. |
| 10 | + |
| 11 | +== Feature overview == |
| 12 | + |
| 13 | +* Adds a <code>splist</code> or <code>subpagelist</code> parser hook that |
| 14 | + you can use to list subpages. |
| 15 | +* Backward compatible with the [[Extension:SubPageList3|SubPageList3 extension]]. |
| 16 | +* Supports multiple parameters that enable you to customize the subpage list. |
| 17 | +* Full integration with the [[Extension:Validator|Validator extension]]. |
Property changes on: tags/extensions/SubPageList/REL_0_5/README |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 18 | + native |