Template:Indexing: Difference between revisions
Content deleted Content added
Deploy Template:Indexing (H6 heading + Has topic subobject) |
Deploy Template:Indexing (H6 heading + Has topic subobject) |
||
| (3 intermediate revisions by the same user not shown) | |||
Line 6:
|Has topic={{#if:{{{7|}}}|[[ID:{{{7}}}]]|}}
|Has topic={{#if:{{{8|}}}|[[ID:{{{8}}}]]|}}
|Has
|Has indexed heading={{{1|}}}
|Has unit kind={{{kind|}}}
|Has order={{{order|}}}
|Has figure={{#if:{{{f1|}}}|{{{f1}}} = {{{v1|}}}|}}
|Has figure={{#if:{{{f2|}}}|{{{f2}}} = {{{v2|}}}|}}
Line 15 ⟶ 16:
|Has figure={{#if:{{{f5|}}}|{{{f5}}} = {{{v5|}}}|}}
|Has figure={{#if:{{{f6|}}}|{{{f6}}} = {{{v6|}}}|}}
|Has figure={{#if:{{{f7|}}}|{{{f7}}} = {{{v7|}}}|}}
|Has figure={{#if:{{{f8|}}}|{{{f8}}} = {{{v8|}}}|}}
|Has figure={{#if:{{{f9|}}}|{{{f9}}} = {{{v9|}}}|}}
}}====== {{{1}}} ======
{{#if:{{{f1|}}}|<
This is the section-indexing template. A doc_archive content unit is written as:
<code>{{Indexing|heading|
It renders a level-6 heading (<code>====== heading ======</code>) AND records one
SMW subobject linking <code>Has topic = [[ID:<id>]]</code> per topic id (page-links,
so <code>[[Has topic::ID:<id>]]</code> and Special:WhatLinksHere resolve back to the
section), plus <code>Has
<code>Has unit kind</code> (named parameter <code>kind</code>: <code>prose</code> or
<code>table</code>, derived by the indexer from the unit body — retrieval filters
on it: slide building wants tables, answer drafting wants prose)
<code>Has order</code> (named parameter <code>order</code>: the unit's 1-based
position in the document, so the Pagemap lists sections in source order).
Key figures: up to
<code>
mix). Each pair renders a row in a right-floating <code>
(an infobox-style card, styled by Common.css §12) after the heading, and stores a
Up to 6 topic ids (positional args 3–8). Ids come from the <code>section_topics</code>
| |||