Template:Document: Difference between revisions
No edit summary |
No edit summary |
||
(38 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
{{#template_params:Name (property=Name)|Description (property=Description)|Goal (property=Goal)|Theme (property=Theme)|Validity Start (property=Validity Start)|Validity End (property=Validity End)|Tags (list;property=Tags)}} | {{#template_params:Name (property=Name)|Description (property=Description)|Goal (property=Goal)|Theme (property=Theme)|Validity Start (property=Validity Start)|Validity End (property=Validity End)|Tags (list;property=Tags)}} | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
{| class="wikitable" | <div class="mw-collapsible mw-collapsed avott-structured-data"> | ||
<div style="font-weight:bold;line-height:1.6;">Structured data</div> | |||
<div class="mw-collapsible-content"> | |||
{| class="wikitable smw-table custom-form" | |||
! Type | ! Type | ||
| [[Type::{{{Type|}}}]] | | [[Type::DocumentType:{{{Type|}}}]] | ||
|- | |- | ||
! Name (fi) | ! Name (fi) | ||
Line 25: | Line 28: | ||
|- | |- | ||
! Field | ! Field | ||
| [[Field::{{{Field|}}}]] | | [[Field::Domain:{{{Field|}}}]] | ||
|- | |- | ||
! Validity start | ! Validity start | ||
Line 38: | Line 41: | ||
! Has part | ! Has part | ||
| {{#arraymap:{{{Has part|}}}|,|x|[[Has part::x]]}} | | {{#arraymap:{{{Has part|}}}|,|x|[[Has part::x]]}} | ||
|- | |||
! Is part of | |||
| {{#ask: [[Has part::{{FULLPAGENAME}}]] }} | |||
|} | |||
'''Sections''' | |||
{{#ask: | {{#ask: | ||
[[Category:Section]] | [[Category:Section]] | ||
Line 50: | Line 56: | ||
|?Page name | |?Page name | ||
|?Document | |?Document | ||
|sort=Ordinal | |?Type.Name fi=Type | ||
|sort=Type,Ordinal | |||
|order=asc | |order=asc | ||
|default=No sections yet! | |default=No sections yet! | ||
Line 61: | Line 68: | ||
}} | }} | ||
{{#formlink:form=Section|link text=Add new section|link type=button|query string=Section[Document]={{PAGENAME}}|super_page={{FULLPAGENAME}}|reload|returnto={{FULLPAGENAME}} }} | {{#formlink:form=Section|link text=Add new section|link type=button|query string=Section[Document]={{PAGENAME}}|super_page={{FULLPAGENAME}}|reload|returnto={{FULLPAGENAME}} }} | ||
</div> | |||
</div> | |||
[[Category:Document]] | [[Category:Document]] | ||
</includeonly> | </includeonly> |
Latest revision as of 18:30, 7 May 2024
This is the "Document" template.
It should be called in the following format:
{{Document |Name= |Description= |Goal= |Theme= |Validity Start= |Validity End= |Tags= }}
Edit the page to see the template text.