No edit summary Tag: 2017 source edit |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
To get a better overview of all templates in the wiki, you can catalog | To get a better overview of all templates in the wiki, you can catalog them through semantic attributes. | ||
==Steps== | ==Steps== | ||
Line 18: | Line 18: | ||
</syntaxhighlight>[[File:Manual:smw-query-templateslist.png|alt=List of templates in the wiki|center|thumb|750x750px|List of templates in the wiki]] | </syntaxhighlight>[[File:Manual:smw-query-templateslist.png|alt=List of templates in the wiki|center|thumb|750x750px|List of templates in the wiki]] | ||
[[Category:SMW]] | [[Category:SMW]] | ||
[en:{{FULLPAGENAME}}]] | [[en:{{FULLPAGENAME}}]] | ||
[[de:Handbuch:SMW/Vorlagenübersicht]] | [[de:Handbuch:SMW/Vorlagenübersicht]] |
Latest revision as of 10:51, 13 May 2022
To get a better overview of all templates in the wiki, you can catalog them through semantic attributes.
Steps
- Activate the feature Semantic MediaWiki for the namespace "Template" in the namespace manager.
- Create the page Property:Is_templateType. Add the following content and save the page:
This is a property of type [[Has type::Text]].
- Add the attribute with a value in source editing mode to your templates, wrapped in a
<noinclude></noinclude>
tag . The<noinclude>...</noinclude>
tag is required so that pages that include this template, are not cataloged as well:<noinclude>'''Property type''': [[is_templateType::General]]</noinclude>
- Add the following SMW-query on any wiki page to create an overview that shows your cataloged templates:
{{#ask: [[is_templateType::+]] |?ist_Templatetype=Template type |mainlabel=Template |format=table |class=datatable }}