Difference between revisions of "Template:List all smw imports/doc"
From TDWG Terms Wiki
m (refactored to minimise template calls (using extension:arrays)) |
m (+three-columns +two-columns) |
||
Line 1: | Line 1: | ||
{{Documentation/subpage}} | {{Documentation/subpage}} | ||
− | + | == Usage == | |
This template lists all imported vocabulary pages in <code>MediaWiki:Smw import <local-defined-namespace></code>: | This template lists all imported vocabulary pages in <code>MediaWiki:Smw import <local-defined-namespace></code>: | ||
<nowiki>{{List all smw imports}}</nowiki> → show a table layout | <nowiki>{{List all smw imports}}</nowiki> → show a table layout | ||
<nowiki>{{List all smw imports | output format=list}}</nowiki> → show a comma separated list | <nowiki>{{List all smw imports | output format=list}}</nowiki> → show a comma separated list | ||
+ | <nowiki>{{List all smw imports | output format=two-columns}}</nowiki> → 2 column layout | ||
+ | <nowiki>{{List all smw imports | output format=three-columns}}</nowiki> → 3 column layout | ||
− | + | == Technical documentation == | |
− | Dependencies | + | === Dependencies === |
* [[mediawikiwiki: extension:Arrays|extension:Arrays]] | * [[mediawikiwiki: extension:Arrays|extension:Arrays]] | ||
* DEPRICATED <s>See also [[template: Filter smw import from list]] (used for a ask query evaluation/filtering)</s> (is too slow --[[User:Andreas Plank|Andreas Plank]] ([[User talk:Andreas Plank|talk]]) 15:27, 3 February 2020 (CET)) | * DEPRICATED <s>See also [[template: Filter smw import from list]] (used for a ask query evaluation/filtering)</s> (is too slow --[[User:Andreas Plank|Andreas Plank]] ([[User talk:Andreas Plank|talk]]) 15:27, 3 February 2020 (CET)) | ||
+ | |||
+ | CSS | ||
+ | <syntaxhighlight lang="css"> | ||
+ | /* 2 column Layout */ | ||
+ | .two-columns { | ||
+ | -moz-column-count:2; /* Firefox */ | ||
+ | -webkit-column-count:2; /* Safari and Chrome */ | ||
+ | column-count:2; | ||
+ | |||
+ | -moz-column-gap:40px; /* Firefox */ | ||
+ | -webkit-column-gap:40px; /* Safari and Chrome */ | ||
+ | column-gap:40px; | ||
+ | |||
+ | -moz-column-rule:2px outset gray; /* Firefox */ | ||
+ | -webkit-column-rule:2px outset gray; /* Safari and Chrome */ | ||
+ | column-rule:2px outset gray; | ||
+ | } | ||
+ | /* 3 column Layout */ | ||
+ | .three-columns { | ||
+ | -moz-column-count:3; /* Firefox */ | ||
+ | -webkit-column-count:3; /* Safari and Chrome */ | ||
+ | column-count:3; | ||
+ | |||
+ | -moz-column-gap:40px; /* Firefox */ | ||
+ | -webkit-column-gap:40px; /* Safari and Chrome */ | ||
+ | column-gap:40px; | ||
+ | |||
+ | -moz-column-rule:2px outset gray; /* Firefox */ | ||
+ | -webkit-column-rule:2px outset gray; /* Safari and Chrome */ | ||
+ | column-rule:2px outset gray; | ||
+ | } | ||
+ | .three-columns.flat-ul ul li { | ||
+ | float:left; | ||
+ | margin-left:1.5em; | ||
+ | } | ||
+ | .three-columns.flat-ul ul { | ||
+ | clear:both; | ||
+ | margin:0px 0px 0.5ex 0px; | ||
+ | padding:0px; | ||
+ | } | ||
+ | .three-columns.flat-ul p { | ||
+ | margin:5px 0px 0ex 0px; | ||
+ | } | ||
+ | .three-columns tr { | ||
+ | /* verhindere Spaltenumbruch */ | ||
+ | -webkit-column-break-inside: avoid; /* Chrome, Safari */ | ||
+ | page-break-inside: avoid; /* Theoretically FF 20+ */ | ||
+ | break-inside: avoid-column; /* IE 11 */ | ||
+ | } | ||
+ | </syntaxhighlight> | ||
<includeonly> | <includeonly> | ||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
[[Category:Helper tool for ontologies]] | [[Category:Helper tool for ontologies]] | ||
</includeonly> | </includeonly> |
Latest revision as of 15:41, 3 February 2020
Usage
This template lists all imported vocabulary pages in MediaWiki:Smw import <local-defined-namespace>
:
{{List all smw imports}} → show a table layout {{List all smw imports | output format=list}} → show a comma separated list {{List all smw imports | output format=two-columns}} → 2 column layout {{List all smw imports | output format=three-columns}} → 3 column layout
Technical documentation
Dependencies
- extension:Arrays
- DEPRICATED
See also template: Filter smw import from list (used for a ask query evaluation/filtering)(is too slow --Andreas Plank (talk) 15:27, 3 February 2020 (CET))
CSS
/* 2 column Layout */
.two-columns {
-moz-column-count:2; /* Firefox */
-webkit-column-count:2; /* Safari and Chrome */
column-count:2;
-moz-column-gap:40px; /* Firefox */
-webkit-column-gap:40px; /* Safari and Chrome */
column-gap:40px;
-moz-column-rule:2px outset gray; /* Firefox */
-webkit-column-rule:2px outset gray; /* Safari and Chrome */
column-rule:2px outset gray;
}
/* 3 column Layout */
.three-columns {
-moz-column-count:3; /* Firefox */
-webkit-column-count:3; /* Safari and Chrome */
column-count:3;
-moz-column-gap:40px; /* Firefox */
-webkit-column-gap:40px; /* Safari and Chrome */
column-gap:40px;
-moz-column-rule:2px outset gray; /* Firefox */
-webkit-column-rule:2px outset gray; /* Safari and Chrome */
column-rule:2px outset gray;
}
.three-columns.flat-ul ul li {
float:left;
margin-left:1.5em;
}
.three-columns.flat-ul ul {
clear:both;
margin:0px 0px 0.5ex 0px;
padding:0px;
}
.three-columns.flat-ul p {
margin:5px 0px 0ex 0px;
}
.three-columns tr {
/* verhindere Spaltenumbruch */
-webkit-column-break-inside: avoid; /* Chrome, Safari */
page-break-inside: avoid; /* Theoretically FF 20+ */
break-inside: avoid-column; /* IE 11 */
}