Template:DocumentData: Difference between revisions
From GxPlex
Gxplex admin (talk | contribs) Auto-populate References section via live #ask instead of static table |
Gxplex admin (talk | contribs) Add preview column to References query |
||
| Line 69: | Line 69: | ||
| ?RefDocPart = Document part | | ?RefDocPart = Document part | ||
| ?RefLanguage = Language | | ?RefLanguage = Language | ||
| ?RefPreview = Preview | |||
| format = table | | format = table | ||
| headers = show | | headers = show | ||
Latest revision as of 14:18, 16 July 2026
Data template for Document: pages. Used by Form:Document. Sets the same SMW properties and renders the same
| Document information | |
|---|---|
| Reference | |
| Validity area | |
| Scope(s) | |
| Document name | |
| Version / Revision | |
| Status | |
| Document type | |
| Language(s) | |
| Description | |
| Official source | — |
| Restricted access | No |
| Submitted by | |
| Contributors | |
infobox that the Excel-based XML import produces, so
existing imported pages can be edited through the form without losing data.
Usage
{{DocumentData
|reference=
|validity_area=
|scopes=
|doc_name=
|version=
|status=
|doc_type=
|language=
|description=
|official_link=
|restricted=No
|submitted_by=
|contributors=
}}
Properties are only set on Document: pages themselves (Template check below) — not when
a Document: page is transcluded onto a Reference: page via {{:Document:...}},
which would otherwise duplicate Doc* properties onto the Reference: page. The same check gates
the "References" section: a live #ask query listing every Reference:
page whose has_document field points here, so newly created references appear
automatically without editing this page — no manual table to keep in sync.