Manual:SMW/Templates overview page and User:Margit.link-rodrigue/Lunch talk - multilingual wiki: Difference between pages

(Difference between pages)
No edit summary
 
No edit summary
Tag: 2017 source edit
 
Line 1: Line 1:
To get a better overview of all templates in the wiki, you can catalog them through semantic attributes.
=Lunch talk: Multilingual wiki=
==<span class="mw-customtoggle-graphic">Supporting a multilingual wiki</span>==
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-graphic">[[File:Multilingual wiki.drawio.png|alt=Mechanisms to support a multilingual wiki |center|706x706px]]</div>
==<span class="mw-customtoggle-LanguageSwitcher">"Smart" language switchers</span>==
<div class="mw-collapsible mw-collapsed">
<div class="sectionflex col2 background">
<div>
=== Language support===
options to define which languages are used in the wiki
</div>
<div>
=== Navigation===
a mechanism to automatically switch between the language versions of a page
</div>
<div>
===Tracking ===
a property that tracks the  page language for each page (supported in BlueSpice pro)


==Steps==
fallback: categories track the page language (BlueSpice free)
</div>
<div>
===Support for display title===
needed for the subpage-technique
</div>
</div>


#'''Activate'''  the feature ''Semantic MediaWiki''  for the namespace "Template"  in the [[Manual:Extension/BlueSpiceNamespaceManager|namespace manager]].  [[File:Manual:1652434929387.png|alt=Namespace manager|center|thumb|450x450px|Namespace manager]]
==== Switcher comparison ====
#'''Create''' the page ''Property:Is_templateType''. '''Add''' the following content and '''save''' the page:<syntaxhighlight lang="text">
 
This is a property of type [[Has type::Text]].
* '''Languages:''' subpages
</syntaxhighlight>[[File:Manual:1652435035799.png|alt=Create a property|center|thumb|750x750px|Create a property]]
* '''InterLanguages:''' unrelated pages
#'''Add''' the attribute with a value in source editing mode to your templates, wrapped in a  <code><nowiki><noinclude></noinclude></nowiki></code> tag . The <code><nowiki><noinclude>...</noinclude></nowiki></code> tag is required so that pages that include this template, are not cataloged as well:<syntaxhighlight lang="text"><noinclude>'''Property type''': [[is_templateType::General]]</noinclude>
</div>
</syntaxhighlight>[[File:Manual:property page.png|alt=add property to a template page|center|thumb|750x750px|add property to a template page]]
==<span class="mw-customtoggle-useLang">User language support</span>==
#'''Add''' the following SMW-query on any wiki page to create an overview that shows your cataloged templates:<syntaxhighlight lang="text">
<div class="mw-collapsible mw-collapsed">text</div>
{{#ask: [[is_templateType::+]]
==<span class="mw-customtoggle-cats">Category system</span>==
|?ist_Templatetype=Template type
<div class="mw-collapsible mw-collapsed">[[File:multilingual-categories.png|alt=Multilingual categories|center]]</div>
|mainlabel=Template
==<span class="mw-customtoggle-ideas">Further considerations</span>==
|format=table
<div class="mw-collapsible mw-collapsed">
|class=datatable
* Ad-hoc on-page translation (DeepL) -> duplicate page to make translation permanent
}}
* Improvements  to sidebar regarding language support
</syntaxhighlight>[[File:Manual:smw-query-templateslist.png|alt=List of templates in the wiki|center|thumb|750x750px|List of templates in the wiki]]
* MediaWiki translation extension
[[Category:SMW]]
 
[[en:{{FULLPAGENAME}}]]
== Documentation ==
[[de:Handbuch:SMW/Vorlagenübersicht]]
Helpdesk EN: [[Multilingual wiki]]
</div>
__NOTOC__
__HIDETITLE__

Revision as of 09:54, 17 May 2022

Lunch talk: Multilingual wiki

Supporting a multilingual wiki

Mechanisms to support a multilingual wiki

"Smart" language switchers

Language support

options to define which languages are used in the wiki

Navigation

a mechanism to automatically switch between the language versions of a page

Tracking

a property that tracks the page language for each page (supported in BlueSpice pro)

fallback: categories track the page language (BlueSpice free)

Support for display title

needed for the subpage-technique

Switcher comparison

  • Languages: subpages
  • InterLanguages: unrelated pages

User language support

text

Category system

Multilingual categories

Further considerations

  • Ad-hoc on-page translation (DeepL) -> duplicate page to make translation permanent
  • Improvements to sidebar regarding language support
  • MediaWiki translation extension

Documentation

Helpdesk EN: Multilingual wiki





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

No categories assignedEdit

Discussions