Template:FAQ Page: Difference between revisions
From Karteria DWRP Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
</noinclude><includeonly>{{#cargo_store:_table=FAQ_Pages}} | </noinclude><includeonly>{{#cargo_store:_table=FAQ_Pages}} | ||
{| class="wikitable" | |||
{{#ifeq: {{BASEPAGENAME}} | FAQ | | ! FAQ for | ||
|{{#ifeq: {{BASEPAGENAME}} | FAQ | Main [[FAQ]] | [[../]] | |||
|- | |||
! Event FAQs | |||
{{|}} {{#cargo_query:tables=Events,Events__FAQs | |||
|fields=concat('[[','{{BASEPAGENAME}}','/',Events__FAQs._value,']]')=outputCol | |fields=concat('[[','{{BASEPAGENAME}}','/',Events__FAQs._value,']]')=outputCol | ||
|where=_pageName = '{{BASEPAGENAME}}' | |where=_pageName = '{{BASEPAGENAME}}' | ||
|join on=Events._ID=Events__FAQs._rowID | |join on=Events._ID=Events__FAQs._rowID | ||
}} }} | }} | ||
}} | |||
'''FAQ Page:''' [{{{Link}}} Page link] | |- | ||
!'''FAQ Page:''' [{{{Link}}} Page link] | |||
|} | |||
{{#cargo_query:tables=Questions|fields=CONCAT('[',Link,' x]')=Link,Topics,DateAsked,QuestionText,DateAnswered,AnswerText|where=QuestionFaqPage = '{{PAGENAME}}'}} | {{#cargo_query:tables=Questions|fields=CONCAT('[',Link,' x]')=Link,Topics,DateAsked,QuestionText,DateAnswered,AnswerText|where=QuestionFaqPage = '{{PAGENAME}}'}} | ||
Revision as of 01:58, 14 December 2025
This is the "FAQ Page" template.
It should be called in the following format:
{{FAQ Page
|Link=
}}
Edit the page to see the template text.
This template defines the table "FAQ_Pages". This table has not been created yet.