Template:QuestionQuery: 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 10: Line 10:
  }} }}
  }} }}
}}
}}
|group_by= _pageName = questionPage, trim(QuestionFaqPage)=faqPage,Link = questionLink, Topics__full=questionTopics,  AskedBy = questionFrom,DateAnswered=answerDate, DateAsked = askedDate, QuestionText=Question_Text, AnswerText=Answer_Text
|group_by= Questions._pageName, trim(Questions.QuestionFaqPage),Questions.Link, Questions.Topics__full,  Questions.AskedBy,Questions.DateAnswered, Questions.DateAsked, Questions.QuestionText, Questions.AnswerText
|format=template
|format=template
|template=TestQTemplate
|template=QuestionQueryTableTemplate
|delimiter=\n}}
|delimiter=\n}}
|}
|}
{{#ifeq: {{{1|}}}| FAQ Page | faqalf
 
  {| class="wikitable"
! 1
! 2
! 3
{{#cargo_query:tables=Questions|fields= _pageName = questionPage, trim(QuestionFaqPage)=faqPage,Link = questionLink, Topics__full=questionTopics,  AskedBy = questionFrom,DateAnswered=answerDate, DateAsked = askedDate, QuestionText=Question_Text, AnswerText=Answer_Text
|where= {{#arraymap: {{{2|}}}|,|xx| QuestionFaqPage = 'xx' | new_delimiter= OR }}
|group_by= _pageName, QuestionFaqPage,Link = questionLink, Topics__full,  AskedBy,DateAnswered, DateAsked, QuestionText, AnswerText
|format=template
|template=TestQTemplate
|delimiter=\n}}
|}
|
     {{#ifeq: {{{1|}}} | Topic | topic
     {{#ifeq: {{{1|}}} | Topic | topic
       {{#cargo_query:tables=Questions|fields= CONCAT('{{Question Information {{!}} questionPage = ',_pageName,'{{!}}faqPage=',trim(QuestionFaqPage),' {{!}}questionLink = ',Link,'{{!}}questionTopics=', Topics__full,'{{!}}questionFrom=', AskedBy,'{{!}}answerDate=',DateAnswered, '{{!}}askedDate=',  DateAsked,'}}')=Question_Information, QuestionText=Question_Text, AnswerText=Answer_Text
       {{#cargo_query:tables=Questions|fields= CONCAT('{{Question Information {{!}} questionPage = ',_pageName,'{{!}}faqPage=',trim(QuestionFaqPage),' {{!}}questionLink = ',Link,'{{!}}questionTopics=', Topics__full,'{{!}}questionFrom=', AskedBy,'{{!}}answerDate=',DateAnswered, '{{!}}askedDate=',  DateAsked,'}}')=Question_Information, QuestionText=Question_Text, AnswerText=Answer_Text
Line 38: Line 26:
|group_by=QuestionFaqPage,Link,Topics__full,AskedBy,QuestionText,AnswerText
|group_by=QuestionFaqPage,Link,Topics__full,AskedBy,QuestionText,AnswerText
}}
}}
|supply FAQ Page, Topic or Question as first parameter }}}}}}</div></includeonly><noinclude>{{/doc}}</noinclude>
|supply FAQ Page, Topic or Question as first parameter }}}}</div></includeonly><noinclude>{{/doc}}</noinclude>

Revision as of 03:47, 16 December 2025

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Query type1

no description

Suggested values
FAQ Page Topic Question
Unknownrequired
Value2

Limiting value for the query

Suggested values
Shifting Log - April 2025/FAQ Page
Unknownoptional