Template:Document: Difference between revisions
(Created page with "<noinclude> {{#template_params:Type (property=Description)}} </noinclude><includeonly>{| class="wikitable" ! Type | [[Description::{{{Type|}}}]] |- ! |{{#ask:[[Description::{{SUBJECTPAGENAME}}]]|format=list}} |} Category:Document </includeonly>") |
No edit summary |
||
(72 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#template_params: | {{#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>{| class="wikitable" | </noinclude><includeonly> | ||
<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::DocumentType:{{{Type|}}}]] | ||
|- | |- | ||
! | ! Name (fi) | ||
|{{#ask:[[ | | [[Name fi::{{{Name fi|}}}]] | ||
|- | |||
! Name (sv) | |||
| [[Name sv::{{{Name sv|}}}]] | |||
|- | |||
! Name (en) | |||
| [[Name en::{{{Name en|}}}]] | |||
|- | |||
! Description (fi) | |||
| [[Description fi::{{{Description fi|}}}]] | |||
|- | |||
! Description (sv) | |||
| [[Description sv::{{{Description sv|}}}]] | |||
|- | |||
! Description (en) | |||
| [[Description en::{{{Description en|}}}]] | |||
|- | |||
! Field | |||
| [[Field::Domain:{{{Field|}}}]] | |||
|- | |||
! Validity start | |||
| [[Validity start::{{{Validity Start|}}}]] | |||
|- | |||
! Validity End | |||
| [[Validity end::{{{Validity End|}}}]] | |||
|- | |||
! Tags | |||
| {{#arraymap:{{{Tags|}}}|,|x|[[Tags::x]]}} | |||
|- | |||
! Has part | |||
| {{#arraymap:{{{Has part|}}}|,|x|[[Has part::x]]}} | |||
|- | |||
! Is part of | |||
| {{#ask: [[Has part::{{FULLPAGENAME}}]] }} | |||
|} | |} | ||
'''Sections''' | |||
{{#ask: | |||
[[Category:Section]] | |||
[[Document::{{FULLPAGENAME}}]] | |||
|?Ordinal | |||
|?Name fi | |||
|?Name sv | |||
|?Name en | |||
|?Page name | |||
|?Document | |||
|?Type.Name fi=Type | |||
|sort=Type,Ordinal | |||
|order=asc | |||
|default=No sections yet! | |||
|mainlabel=- | |||
|format=plainlist | |||
|class=smwtable-clean | |||
|template=SectionListLink | |||
| introtemplate=SectionListIntro | |||
| outrotemplate=CustomPlainlistOutro | |||
}} | |||
{{#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.