Difference between revisions of "Template:Overview"
From Beyond Social
(26 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | This is the " | + | This is the "Overview" template. This template uses the SMW tags of pages that are made with [[Form:Article]]. |
+ | |||
+ | This template is used to generate different overviews: | ||
+ | * [[Main Page]] overviews for recently edited Articles & Stacks | ||
+ | * [[Articles]] | ||
+ | * [[Stacks]] | ||
+ | |||
+ | <br>This Template is used to display the SMW values through this #ask query: | ||
+ | |||
+ | <pre> | ||
+ | {{#ask: | ||
+ | [[PageType::Article]] | ||
+ | |?Thumb | ||
+ | |?Category | ||
+ | |?Modification date | ||
+ | |?Creation date | ||
+ | |?Last editor is | ||
+ | |link=none | ||
+ | |format=template | ||
+ | |template=Overview | ||
+ | |limit=20 | ||
+ | |sort=Modification date | ||
+ | |order=descending | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | Returning the following values: | ||
+ | |||
+ | <pre> | ||
+ | (1) Title | ||
+ | (2) Thumb | ||
+ | (3) Category | ||
+ | (4) Modification date | ||
+ | (5) Creation date | ||
+ | (6) Last editor is | ||
+ | </pre> | ||
+ | |||
+ | This Template can also by used by writing it like this, and inserting it in a page: | ||
<pre> | <pre> | ||
− | {{ | + | {{ Overview |
| Title= | | Title= | ||
| Thumb= | | Thumb= | ||
Line 13: | Line 50: | ||
</noinclude> | </noinclude> | ||
− | <includeonly><div class=" | + | <includeonly> |
− | <div class="thumb-wrapper">{{{2}}}</div> | + | <div class="articles-wrapper"> |
− | <div class="title">{{{1}}}</div> | + | <div class="thumb-wrapper">[[File:{{{2|None.png}}}]]</div> |
− | <div class="info"><small>Last modified at {{{4}}} by {{{6}}}</small></div> | + | <div class="title">[[{{{1}}}]]</div> |
− | </div></includeonly> | + | <div class="info"><small>Last modified at {{{4}}} by [[{{{6}}}]]</small></div> |
+ | </div> | ||
+ | </includeonly> |
Latest revision as of 10:47, 21 May 2019
This is the "Overview" template. This template uses the SMW tags of pages that are made with Form:Article.
This template is used to generate different overviews:
This Template is used to display the SMW values through this #ask query:
{{#ask: [[PageType::Article]] |?Thumb |?Category |?Modification date |?Creation date |?Last editor is |link=none |format=template |template=Overview |limit=20 |sort=Modification date |order=descending }}
Returning the following values:
(1) Title (2) Thumb (3) Category (4) Modification date (5) Creation date (6) Last editor is
This Template can also by used by writing it like this, and inserting it in a page:
{{ Overview | Title= | Thumb= | Category= | Modification date= | Creation date= | Last editor is= }}