(Difference between pages)
No edit summary
 
No edit summary
 
Line 1: Line 1:
<bookshelf src="Book:User manual" />
<bookshelf src="Book:User manual" />
{{DISPLAYTITLE:Insert tables}}
Categories are a feature of MediaWiki. An index page is automatically created for categories.


==Insert a table==
Pages can be categorized by adding category tags to the content. These tags generate links at the bottom of the page that lead to an overview of all pages in the same category. This allows for easy browsing of related pages.
In VisualEditor, choose "Insert > Tables" to insert a table in a page:


[[File:Instert, Table.png|260x260px]]
==How do I use categories?==
In addition to namespaces, categories are an important organizational principle in the wiki. They allow pages to be grouped and automatically linked to the associated category pages. Categories are usually created by users. In special cases, however, MediaWiki also assigns automatically generated categories (e.g., ''Pages with broken links'').


After entering the rows and columns, an empty table appears with the edit menu:
==Features==
*'''Category tree:''' Categories can be organized as subcategories of main categories.
*'''Tagging''': Categories can be used to spontaneously "tag" pages.
*'''Category manager:''' Categories can be systematically created and used by all users via the category manager.
*'''Multiple categories per page''': A page can be assigned to several categories.
*'''Independent of namespaces''': Categories are available throughout the wiki and cannot be limited to individual namespaces.
*'''Page queries: '''Categories are useful for extensions like [[Manual:Extension/BlueSpiceSmartList|Smartlist]] or Semantic Mediawiki as they are available as query arguments.


[[File:table 1.0.png|305x305px]]
==Assigning categories to a page==
<div class="training user">There are different ways to assign a page to categories:


When the mouse rests on a symbol, the respective function is displayed.
#In the [[Manual:Extension/BlueSpiceDiscovery#Supplementary area|Supplementary area]] at the end of the page
#From the options menu of [[Manual:Extension/VisualEditor|VisualEditor]] (Visual Editing)
#Via manual input as [[Manual:Wikitext|wikitext]] (source code editing)
#Using the link ''[[Manual:Extension/BlueSpiceDiscovery#Page tools|Page tools > ...all actions > Insert category]]''</div><gallery widths="200" heights="200">
File:Manual:Category - footer.png|alt=Supplemental area|Supplemental area
File:Manual:Category - VE.PNG|alt=Visual editor|Visual editor
File:Manual:Category - wikitext.png|alt=Wikitext|Wikitext
File:Manual:Category - all actions.png|alt=Link "...all actions"|Link "...all actions"
</gallery>


Double-click in the cells to insert text:
===In the supplementary area at the bottom of the page===
The supplement area contains a field for category assignment. Any user with edit rights can click the edit link to add or remove categories from the page. To view all existing categories with subcategories, you can click on the tree icon. Once done, the categories will be confirmed with the tick.
<br />
===In the visual editor (VisualEditor)===
In the page options menu of [[Manual:Extension/VisualEditor|VisualEditor]] there is a menu item Categories. Here you can update category assignments to the page in edit mode, as well as add a sort key to the category.
<br />
[[File:Manual:Category - VE.PNG|alt=Options menu in the visual editor|center|thumb|Options menu in the visual editor]]


[[File:weekly.png|280x280px]]
===In wikitext===
==Merge rows and columns==
Open an article that you want to assign to a category in edit mode. Now enter the following anywhere in the wiki code (usually at the end of the page though):
When you click in a row, an arrow appears at the left edge of the row and at the top of the column. To connect the cells in a row or a column, click on the respective arrow and then in the edit menu on "Merge":
<syntaxhighlight lang="text">
[[Category:Production]]
or
[[Category:Production]]
</syntaxhighlight>


[[File:table 3.0.png|300x300px]]
{{Messagebox|boxtype=note|icon=|Note text=On category pages, umlauts are listed at the end of the list, e.g. "Märchen" after "Muh". You can use the <nowiki>{{DEFAULTSORT:sortkey}}</nowiki> variable to create an alternative title for the sort (e.g. <nowiki>{{DEFAULTSORT:Maerchen}}</nowiki>).|bgcolor=}}


You can also connect individual cells. Hold down the Shift key and click in two or more adjacent cells. Then connect the cells. The cells must be adjacent in a row or in a column so that they can be connected.
<span /><br />
==Table properties==
In the menu item Properties, there are numerous settings to adjust the functionality and presentation of the table:


{| class="contenttable-blue content table-blue" style=""
It is true that:
!Property
!Description
|-
|Caption
|Shows a header above the table:
[[File:weeklyplan.png|200x200px]]


After disabling the header, it is lost and must be reentered when re-enabled.
:*categories can be created in any number and by any user. So before you just get started, it's always best to check which categories already exist to avoid unnecessary duplication of similar categories.
|-
:*a page can be assigned to several categories.
|Styed(wikitable)
:*the place in the source code where the category link is inserted is technically irrelevant. However, the convention is to include categories '''at the end of an article.'''
|enables the default wiki look after table styles were previously selected
|-
|Sortable
|In the first row, a sort function is displayed:
[[File:Weeklyplan 2.0.png|200x200px]]


The current sorting is shown in the title bar. Only one of the two sort arrows will appear in the sorted column.
==Links to category pages==
|-
For links directly to a category page, a colon is required before the namespace.
|Collapsible
|The table can be hidden on the page via a text link.
|-
|Collapsed initially
|If the "Collapsible" property is active, this determines whether the table is visible or hidden when the wiki page is loaded. T
|-
|Exportable
|
|-
|Filterable
|The filter function is activated in the title bar and allows the following actions:


*Sort table (ascending or descending values of the active column)
Example: <code><nowiki>[[:Category: new_page]]</nowiki></code>
*Hide table columns
*Filter column (only values from the current column are considered here)


[[File:table 4.0.png|550x550px]]
If the colon is missing, the link will not be created, but the page will be tagged with the category instead.
==Category pages==
When users click a category link, the ''Category:<Category_Name>'' page loads. All pages and media that are assigned to a specific category are automatically listed there.


<span><br /></span>
If you click on a category page that has not yet been created - linked in red - you have the option of creating the category page.
If the filter is activated, the table styles are ignored and the table is displayed in "Filter Style". After deactivating this function, the selected table style is displayed again.
==Show all category pages ==
|-
On the special page <code>Special:Categories</code> you can view a list of all existing categories in the wiki. Click on a category to go to the corresponding category page. If a page in the listing has a red background, the category is in use in the wiki, but the associated category page has not yet been created.
|Table style
==Category manager==
|Here you can load different style sheets for the table.
The easiest way to manage categories and subcategories is through the ''Special:Category manager'' page. The [[Manual:Extension/BlueSpiceCategoryManager|Category manager]] can be reached via the menu item ''Global Actions > Management > Categories''.
|-
|Use full width for table
|The table uses the full width of the wiki page, regardless of the table contents.
|}


==Table styles==
{{Box_Links-en | Topic1 = [[Manual:Extension/BlueSpiceCategoryManager|Category manager]] |
Topic2 =[https://www.mediawiki.org/wiki/Help:Categories https://www.mediawiki.org/wiki/Help:Categories]}}


<span><br /></span>
[[en:{{FULLPAGENAME}}]]
The following style sheets can be selected in the Table Style menu. Click on a picture to start the gallery:
[[de:Handbuch:Kategorien erstellen und nutzen]]
 
<span /><br /><gallery>
File:Gallery 1.0.png|Standard
File:Gallery 2.0.png|Content
File:Gallery 3.0.png|Content (black)
File:Gallery 4.0.png|Content (blue)
File:Gallery 5.0.png|Content (darkblue)
File:Gallery 6.0.png|Cusco Sky
File:Gallery 7.0.png|Casablanca
File:Gallery 8.0.png|Greyscale
File:Gallery 9.0.png|Greyscale (narrow)
</gallery>
 
<span><br /></span>
<section begin="training-tabellen" /><div class="training anwender">
The visual editor makes it easy to format content as a table. The following alternatives for creating tables exist:
 
* Tables can also be inserted as a csv file on a page (just drag the CSV file onto the page in edit mode)
* Complex tables can alternatively be attached to the page as an xlsx file.
 
{{Box Links-en|Topic1=[[Manual:Extension/BlueSpiceFilterableTables|Filterable tables]]}}</div><section end="training-tabellen" />


<span><br /></span>
[[Category:Concept]]
[[en:{{FULLPAGENAME}}]]
[[Category:Organization]]
[[de:VisualEditor/Tabellen]]

Revision as of 17:14, 22 November 2022

Categories are a feature of MediaWiki. An index page is automatically created for categories.

Pages can be categorized by adding category tags to the content. These tags generate links at the bottom of the page that lead to an overview of all pages in the same category. This allows for easy browsing of related pages.

How do I use categories?

In addition to namespaces, categories are an important organizational principle in the wiki. They allow pages to be grouped and automatically linked to the associated category pages. Categories are usually created by users. In special cases, however, MediaWiki also assigns automatically generated categories (e.g., Pages with broken links).

Features

  • Category tree: Categories can be organized as subcategories of main categories.
  • Tagging: Categories can be used to spontaneously "tag" pages.
  • Category manager: Categories can be systematically created and used by all users via the category manager.
  • Multiple categories per page: A page can be assigned to several categories.
  • Independent of namespaces: Categories are available throughout the wiki and cannot be limited to individual namespaces.
  • Page queries: Categories are useful for extensions like Smartlist or Semantic Mediawiki as they are available as query arguments.

Assigning categories to a page

There are different ways to assign a page to categories:
  1. In the Supplementary area at the end of the page
  2. From the options menu of VisualEditor (Visual Editing)
  3. Via manual input as wikitext (source code editing)
  4. Using the link Page tools > ...all actions > Insert category

In the supplementary area at the bottom of the page

The supplement area contains a field for category assignment. Any user with edit rights can click the edit link to add or remove categories from the page. To view all existing categories with subcategories, you can click on the tree icon. Once done, the categories will be confirmed with the tick.

In the visual editor (VisualEditor)

In the page options menu of VisualEditor there is a menu item Categories. Here you can update category assignments to the page in edit mode, as well as add a sort key to the category.

Options menu in the visual editor
Options menu in the visual editor

In wikitext

Open an article that you want to assign to a category in edit mode. Now enter the following anywhere in the wiki code (usually at the end of the page though):

[[Category:Production]]
or
[[Category:Production]]
Note:On category pages, umlauts are listed at the end of the list, e.g. "Märchen" after "Muh". You can use the {{DEFAULTSORT:sortkey}} variable to create an alternative title for the sort (e.g. {{DEFAULTSORT:Maerchen}}).


It is true that:

  • categories can be created in any number and by any user. So before you just get started, it's always best to check which categories already exist to avoid unnecessary duplication of similar categories.
  • a page can be assigned to several categories.
  • the place in the source code where the category link is inserted is technically irrelevant. However, the convention is to include categories at the end of an article.

Links to category pages

For links directly to a category page, a colon is required before the namespace.

Example: [[:Category: new_page]]

If the colon is missing, the link will not be created, but the page will be tagged with the category instead.

Category pages

When users click a category link, the Category:<Category_Name> page loads. All pages and media that are assigned to a specific category are automatically listed there.

If you click on a category page that has not yet been created - linked in red - you have the option of creating the category page.

Show all category pages

On the special page Special:Categories you can view a list of all existing categories in the wiki. Click on a category to go to the corresponding category page. If a page in the listing has a red background, the category is in use in the wiki, but the associated category page has not yet been created.

Category manager

The easiest way to manage categories and subcategories is through the Special:Category manager page. The Category manager can be reached via the menu item Global Actions > Management > Categories.

Related info




To submit feedback about this documentation, visit our community forum.

Discussions