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
Line 21: Line 21:
Query 1
Query 1


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


Line 40: Line 41:
tables=Questions,Questions__Topics
tables=Questions,Questions__Topics
|join on=Questions._ID=Questions__Topics._rowID
|join on=Questions._ID=Questions__Topics._rowID
|fields=_pageName=Questions,Questions.Topics__full=Authors
|fields=_pageName=Questions,
|where=Questions__Topics._value = 'Test'
Questions.Topics__full=Topics
|where=Questions__Topics._value = '{{PAGENAME}}'
}}
}}



Revision as of 01:09, 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.