Template:Instruction/doc: Difference between revisions
imported>Unknown user No edit summary |
m 1 revision imported: 260409 Test |
||
| (4 intermediate revisions by 3 users not shown) | |||
(No difference)
| |||
Latest revision as of 14:15, 9 April 2026
Template:Instruction documentation
Purpose
This template stores machine-readable metadata for pages in the [[Instructions:]] namespace.
The PHP backend reads this metadata through template parameter parsing in wiki_parse_json_block() and wiki_normalise_template_meta(). The most important fields for context assembly are:
idtyperequirestagsstatusprioritycanonicalapplies_totask_typeinclude_by_default
Usage
{{Instruction
|id=example-page
|type=workflow
|applies_to=Sources
|task_type=create
|priority=high
|status=active
|canonical=true
|include_by_default=no
|requires=Instructions:World Bible,Instructions:Schema/Source Page
|tags=example,workflow
}}
Field notes
- id
- Stable machine-readable identifier.
- type
- Common values include
core,workflow,schema,style, andreference. - applies_to
- Common values include
mixed,Encyclopedia,Sources,Talk, andInstructions. - task_type
- Common values include
create,edit,analyze,summarize, andsystem. - requires
- Comma-separated list of page titles. The PHP backend splits this field on commas and uses it for dependency traversal.
- tags
- Comma-separated list of tags.
- canonical
- Use
true/falseoryes/no. - include_by_default
- Use
yesonly for pages intended to be loaded into most context bundles.
Backend compatibility
- Keep
requirescomma-separated. - Keep
tagscomma-separated. - Do not replace
Instructions:Configwith template-only metadata; that page still needs its JSON block.