Template:Question: 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 16: Line 16:
Edit the page to see the template text.
Edit the page to see the template text.
{{#cargo_declare:_table=Questions|QuestionFaqPage=Page|Topics=List (,) of String|Link=URL|AskedBy=String|DateAsked=Date|QuestionText=Wikitext|DateAnswered=Date|AnswerText=Wikitext|_parentTables=FAQ_Pages}}
{{#cargo_declare:_table=Questions|QuestionFaqPage=Page|Topics=List (,) of String|Link=URL|AskedBy=String|DateAsked=Date|QuestionText=Wikitext|DateAnswered=Date|AnswerText=Wikitext|_parentTables=FAQ_Pages}}
</noinclude><includeonly>{{#cargo_store:_table=Questions}}{| class="wikitable"
</noinclude><includeonly>{{#cargo_store:_table=Questions}}
! QuestionFaqPage
 
| {{#if:{{{QuestionFaqPage|}}}|[[{{{QuestionFaqPage|}}}]]}}
pagename
|-
{{QuestionQuery|Question|{{PAGENAME}}}}
! Topics
 
| {{#arraymap:{{{Topics|}}}|,|x|{{#formredlink:form=Topic|target=FAQ_Topics/x}} }}
 
|-
subpagename
! Link
{{QuestionQuery|Question|{{SUBPAGENAME}}}}
| {{{Link|}}}
 
|-
 
! AskedBy
pagename
| {{{AskedBy|}}}
{{QuestionQuery|Question|{{BASEPAGENAME}}}}
|-
! DateAsked
| {{{DateAsked|}}}
|-
! QuestionText
| {{{QuestionText|}}}
|-
! DateAnswered
| {{{DateAnswered|}}}
|-
! AnswerText
| {{{AnswerText|}}}
|}


[[Category:Question]]
[[Category:Question]]
</includeonly>
</includeonly>

Revision as of 10:36, 14 December 2025

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

{{Question
|QuestionFaqPage=
|Topics=
|Link=
|AskedBy=
|DateAsked=
|QuestionText=
|DateAnswered=
|AnswerText=
}}

Edit the page to see the template text.

Error: Parent table "FAQ_Pages" does not exist.