Template:QuestionQuery: Difference between revisions
From Karteria DWRP Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#ifeq: {{{1|}}} | FAQ Page || {{#ifeq: {{{1|}}} | Topic || {{#ifeq: {{{1|}}} | Question | | <includeonly>{{#ifeq: {{{1|}}} | FAQ Page || {{#ifeq: {{{1|}}} | Topic || {{#ifeq: {{{1|}}} | Question | | ||
|QuestionQuery error: Supply FAQ Page, Topic or Question as first parameter }}}}}} | |{{#ifeq: {{{1|}}} | Keyword | | ||
|QuestionQuery error: Supply FAQ Page, Topic, Keyword or Question as first parameter }}}}}}}} | |||
{{#ifexpr: {{#ifeq: {{{1|}}} | FAQ Page | 1 | 0}} or {{#ifeq: {{{1|}}} | Topic | 1 | 0}} or {{#ifeq: {{{1|}}} | Question | 1 | 0}} | | {{#ifexpr: {{#ifeq: {{{1|}}} | FAQ Page | 1 | 0}} or {{#ifeq: {{{1|}}} | Topic | 1 | 0}} or {{#ifeq: {{{1|}}} | Question | 1 | 0}} | | ||
{{#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 | {{#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 | ||
| Line 6: | Line 7: | ||
{{#ifeq: {{{1|}}} | Topic | {{#arraymap: {{{2|}}}|,|xx| Topics HOLDS 'xx' |\s or \s}}| | {{#ifeq: {{{1|}}} | Topic | {{#arraymap: {{{2|}}}|,|xx| Topics HOLDS 'xx' |\s or \s}}| | ||
{{#ifeq: {{{1|}}} | Question | {{#arraymap: {{{2|}}}|,|xx| _pageName = 'xx' |\s or \s}} | {{#ifeq: {{{1|}}} | Question | {{#arraymap: {{{2|}}}|,|xx| _pageName = 'xx' |\s or \s}} | ||
}} | | |||
{{#ifeq: {{{1|}}} | Keyword | {{#arraymap: {{{2|}}}|,|xx| QuestionText like '%xx%' or AnswerText like '%xx%' |\s or \s}} | |||
}} }} | }} }} | ||
}} | }} | ||
Revision as of 07:01, 25 December 2025
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Query type | 1 | no description
| Unknown | required |
| Value | 2 | Limiting value for the query
| Unknown | optional |