Extension:SubPageList3/cs
![]() Stav rozšíření: stabilníCategory:Stable extensions/cs |
|
---|---|
![]() |
|
Implementace | ZnačkaCategory:Tag extensions/cs |
Popis | Provides a splist tag to list the subpages of a page |
Autoři | McCormack |
Nejnovější verze | 1.4 (Continuous updates) |
MediaWiki | >= 1.44 |
Licence | GNU General Public License 2.0 nebo novější |
Stáhnout | Category:Extensions in Wikimedia version control/cs |
|
|
<splist /> |
|
Čtvrtletní stahování | 19 (Ranked 82nd) |
Přeložte rozšíření SubPageList3, používá-li lokalizaci z translatewiki.net | |
Problémy | Otevřené úkoly · Nahlásit chybu |
Rozšíření SubPageList3 umožňuje vypsat podstránky nadřazené stránky s kritickými opravami nezbytnými pro splnění kritérií pro použití v projektech Wikimedie. To je obzvláště užitečné na wikinách, které hojně využívají podstránky k organizaci shluků souvisejících stránek. It is based on the now defunct extension SubPageList2.
Instalace
- Stáhněte soubor/y a vložte je do adresáře pojmenovaného
SubPageList3
ve vaší složceextensions/
.
Vývojáři a přispěvatelé kódu by si místo toho měli nainstalovat rozšíření from Git pomocí:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/SubPageList3 - Na konec vašeho souboru LocalSettings.php přidejte následující kód:
wfLoadExtension( 'SubPageList3' );
Dokončeno – Přejděte na stránku Special:Version vaší wiki a zkontrolujte, zda bylo rozšíření úspěšně nainstalováno.
Použití
Rozšíření zakáže ukládání do mezipaměti na jakékoli stránce používající tag
<splist />
.
Značka <splist />
Jednoduše vložte <splist />
na místo, kde chcete zobrazit seznam podstránek.
Příklad s využitím všech dostupných atributů.
<splist
parent=
showparent=yes
sort=desc
sortby=title
liststyle=ordered
showpath=no
kidsonly=no
debug=0
/>
- Attributes available
Name | Default | Values | Description |
---|---|---|---|
liststyle | unordered | unordered|bar | Toggles list between <ol> and <ul> lists. The bar value causes the list to align horizontally with · symbols acting as delimiters (for bar lists rather than tree lists). |
sort | asc | desc | Toggles list between ascending and descending sort order. By default, the tag sorts subpages in ascending alphabetical order; all sorting, however, is subject to hierarchical position - i.e. pages will always be subordinated to their parents; sorting is only among siblings. |
sortby | title | lastedit | Toggles list sort determinant between title and date of the last edit. |
showpath | no | notparent|full | Determines how the title of each page is displayed in the list. no means that only the subpage title (i.e. the bit after the last slash) is displayed. notparent shows the full path without the top level. full shows all levels in the page title name including the top level (e.g. "my page/my subpage/my subpage2"). |
kidsonly | no | no | If this is set to yes , then only the first generation of subpages (i.e. the children but not the grandchildren) is displayed. This is especially useful if the liststyle is set to bar . It's also good if you just want a list rather than a tree. |
parent | ? | ? | By default the tag analyses the subpage system of its own page. However you can set the tag to analyse and display the subpage system of any other page on the wiki. Use local name format. E.g. "parent=Template:FOO" (with a namespace) or "parent=My Page" (in the main namespace). A common source of error is typing the page name incorrectly. The extension checks whether or not the page you name actually exists, and will report an error if it doesn't. |
showparent | no | no | If this is set to yes , then the page indicated by parent (above) will be inserted as the top level item in the list. If the list is a bulleted list, then this top level item will have a bullet and the rest of the list will be indented one level further than it would be otherwise. |
debug | ? | ? | You can switch debugging on by setting this option to 1; the debugging goes no further than reporting invalid input for the other options. |
- Attributes no longer available
Name | Description |
---|---|
category | Used to restrict selected subpages to those belonging to a specific category. |
count | Maximum number of subpages to display. |
ignore | List of subpages to ignore. |
nmamespace | Used to restrict subpage selection by namespace. |
previewcount | Used to determine how much of a subpage was previewed; as the preview feature is being removed, this is no longer needed. |
previewmode | Ditto. |
headline | An option for the preview mode. |
Formátování CSS
The parser puts a <div> around the list with the class "subpagelist".
See also
- SubPageList : based upon this one and backwards compatible
- Subpage Fun : Provides subpage related functions and magic words to gather informations about sub- and parentpages
- SubpageNavigation - Shows direct children of current page in article header and provides Special Page Browse subpages to browse all articles of the wiki in different modalities.
![]() | Toto rozšíření se používá na jednom nebo více projektech Wikimedia. Pravděpodobně to znamená, že rozšíření je stabilní a funguje dostatečně dobře, aby jej mohly používat weby s tak vysokou návštěvností. Vyhledejte tento název rozšíření v konfiguračních souborech CommonSettings.php a InitialiseSettings.php Wikimedie, abyste viděli, kde je nainstalováno. Úplný seznam rozšíření nainstalovaných na konkrétní wiki lze vidět na stránce wiki Special:Version. |
![]() | Toto rozšíření je zahrnuto v následujících wiki farmách/hostitelích a/nebo balíčcích: Toto není autoritativní seznam. Některé wiki farmy/hostitelé a/nebo balíčky mohou toto rozšíření obsahovat, i když zde nejsou uvedeny. Pro potvrzení se vždy obraťte na své wiki farmy/hostitele nebo balíček. |
Category:All extensions/cs
Category:Extensions in Wikimedia version control/cs
Category:Extensions included in Miraheze/cs
Category:Extensions included in MyWikis/cs
Category:Extensions included in WikiForge/cs
Category:Extensions used on Wikimedia/cs
Category:GPL licensed extensions/cs
Category:List extensions/cs
Category:Page content extensions/cs
Category:ParserFirstCallInit extensions/cs
Category:Stable extensions/cs
Category:Subpage extensions/cs
Category:Tag extensions/cs