|
|
Line 1: |
Line 1: |
| To get a better overview of all templates in the wiki, you can catalog the templates using semantic attributes.
| | { |
| | | "wikipageid": 1998, |
| ==Steps==
| | "namespace": 0, |
| | | "titletext": "Manual:SMW/Templates overview page", |
| #'''Activate''' the feature ''Semantic MediaWiki'' for the namespace "Template" in the [[Manual:Extension/BlueSpiceNamespaceManager|namespace manager]]. [[Datei:Handbuch:1652431096504.png|alternativtext=Namensraumverwaltung|zentriert|mini|450x450px|Namensraumverwaltung]]
| | "description": "", |
| #'''Create''' the page ''Property:Is_templateType''. '''Add''' the following content and '''save''' the page:<syntaxhighlight lang="text">
| | "parentid": 0, |
| This is a property of type [[Has type::Text]].
| | "id": 376, |
| </syntaxhighlight>
| | "ownerid": 6, |
| #'''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 catalogued as well:<syntaxhighlight lang="text"><noinclude>[[is_templateType::General]]</noinclude>
| | "type": "wikipage", |
| </syntaxhighlight>[[Datei:Handbuch:1652431854184.png|alternativtext=Katalogisierungs-Attribut in einer Vorlage einfügen|zentriert|mini|750x750px|Katalogisierungs-Attribut in einer Vorlage einfügen]]
| | "archived": false, |
| #'''Erstellen''' Sie eine Übersicht, um die katalogisierten Vorlagen anzuzeigen. Fügen Sie hierzu auf irgendeiner Wikiseite folgende Abfrage im Quelltext ein:<syntaxhighlight lang="text">
| | "tags": [ |
| {{#ask: [[is_templateType::+]]
| | "Manual:SMW/Templates overview page" |
| |?ist_Templatetype=Template type
| | ], |
| |mainlabel=Template
| | "resolved": false |
| |format=table
| | } |
| |class=datatable
| |
| }}
| |
| </syntaxhighlight>[[Datei:Handbuch:1652432754651.png|alternativtext=Tabellarische Ausgabe der Vorlagen|zentriert|mini|750x750px|Tabellarische Ausgabe der Vorlagen]]
| |
| [[Category:SMW]]
| |
| [[de:{{FULLPAGENAME}}]]
| |
| [[en:Manual:SMW/Templates overview page]]
| |