Template:Topic: Difference between revisions

From Karteria DWRP Wiki
Jump to navigationJump to search
Icie (talk | contribs)
No edit summary
Icie (talk | contribs)
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 12: Line 12:
</noinclude><includeonly>{{#cargo_store:_table=Topics}}{| class="wikitable"
</noinclude><includeonly>{{#cargo_store:_table=Topics}}{| class="wikitable"
! RelatedPages
! RelatedPages
| {{#arraymap:{{{RelatedPages|}}}|,|x|[[x]]}}
| {{#arraymap:{{{RelatedPages|}}}|,|x|{{#formredlink:form=Topics|target=Subject/x}}}}


|-
|-
Line 19: Line 19:
|}
|}


Query 1
{{QuestionQuery|Topic|{{SUBPAGENAME}}}}
 
{{#cargo_query:tables=Questions,Questions__Topics
|join on=Questions._ID=Questions__Topics._rowID
|fields=CONCAT('[',Link,' x]')=Link,Questions.Topics__full=Topics,DateAsked,QuestionText,DateAnswered,AnswerText
|where=Questions__Topics._value = '{{PAGENAME}}'
}}
 
Query 2
 
{{#cargo_query:
tables=Questions,Topics
|join on=Questions.Topics HOLDS Topics._pageName
|where= Topics._pageName = '{{PAGENAME}}'
|fields=Questions._pageName,Questions.Topics
}}
 
query 3


{{#cargo_query:
{{#cargo_query:
tables=Questions,Questions__Topics
tables=Questions
|join on=Questions._ID=Questions__Topics._rowID
|fields=CONCAT('[',Link,' x]')=Link,Topics,AskedBy,DateAsked,QuestionText,DateAnswered,AnswerText
|fields=_pageName=Questions,
|where= Topics HOLDS '{{SUBPAGENAME}}'
Questions.Topics__full=Topics
|format=template
|where=Questions__Topics._value = '{{PAGENAME}}'
|template=Question Table Display
}}
}}



Latest revision as of 11:11, 14 December 2025

This is the "Topic" template. It should be called in the following format:

{{Topic
|RelatedPages=
|Information=
}}

Edit the page to see the template text. This template defines the table "Topics". View table.