Template:Pagemap: Difference between revisions

Content deleted Content added
Deploy Template:Pagemap (indexed-section review via #ask)
 
Deploy Template:Pagemap (indexed-section review via Module:PageMap)
Line 1:
<noinclude>
Review surface for an indexed article: place <code>{{Pagemap}}</code> on <code>Pagemap:&lt;article title&gt;</code> and it lists every indexed section ({{Indexing}} subobject) of the article,. withTopics readablerender topicas namesatomic via"Name (id)" pairs — the chainedraw printoutid <code>?Hasis topicthe copy-pasteable link label — so the layout holds when a section carries several topics.Has topicRendering nameis [[Module:PageMap]]'s <code>render</code> (an SMW query via Semantic Scribunto, not a page parse).
 
SMW's cross-page query cache means this page must be purged after the article is re-indexed.
Line 7:
</noinclude><includeonly>Indexed sections of [[{{PAGENAME}}]]:
 
{{#invoke:PageMap|render}}</includeonly>
{{#ask: [[-Has subobject::{{PAGENAME}}]]
|?Has indexed heading=Section
|?Has topic.Has topic name=Topic
|?Has topic=Topic id
|?Has description=Description
|format=table
|mainlabel=-
|limit=500
}}</includeonly>