Personal tools

Template:ReferenceData

From GxPlex

This is the approved revision of this page, as well as being the most recent.
Jump to: navigation, search

Data template for Reference: pages. Used by Form:Reference. Sets the same SMW properties and renders the same layout that the Excel-based XML import produces (see generate_wiki_xml.py / ref_wikitext()), so existing imported pages can be edited through the form without losing data.

tags holds the raw TAG-ID list (e.g. TAG-00055-Stu-ngs++TAG-00304-Pri-tSt), used for the RefTags SMW property and glossary queries. tags_display holds the resolved, human-readable wikilinks (e.g. [[Glossary:TAG-00055-Stu-ngs|Study design]]) shown in the table — the import script resolves this automatically; when editing by hand, update both together.

RefPreview is derived automatically from content (first 150 characters) and is only used for the preview column in DocumentData's References query — no separate field to fill in.

Original entry by and Contributors: if the field is empty, the values come from the page history of the Reference, like on Document pages (see Template:DocumentData). Accounts listed in MediaWiki:Gplx-excluded-contributors are left out.

has_document accepts the Document name with or without the Document: prefix. The form stores it without the prefix, imported pages carry it. The template adds the prefix when it is missing.

Usage

{{ReferenceData
|has_document=
|module=
|unit=
|scope=
|doc_part=
|language=
|entry_by=
|contributors=
|tags=
|tags_display=
|comment=
|content=
}}