Difference between revisions of "Template:Question"

From CodeWOW
Jump to navigation Jump to search
 
(add link to add a code)
 
(7 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
<pre>
 
<pre>
 
{{Question
 
{{Question
 +
|Query=
 +
|Guidance=
 
|Agent=
 
|Agent=
|Guidance=
 
 
|Action=
 
|Action=
 
|Condition=
 
|Condition=
Line 13: Line 14:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>{| class="wikitable"
+
</noinclude><includeonly>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
! Agent
+
! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>Question: {{PAGENAME}}</big>
| [[Has agent::{{{Agent|}}}]]  
+
|-
 +
! Query
 +
| [[Has query::{{{Query|}}}]]  
 
|-
 
|-
 
! Guidance
 
! Guidance
 
| [[Has guidance::{{{Guidance|}}}]]  
 
| [[Has guidance::{{{Guidance|}}}]]  
 +
|-
 +
! Agent
 +
| [[Has agent::{{{Agent|}}}]]
 
|-
 
|-
 
! Action
 
! Action
Line 31: Line 37:
 
! Source
 
! Source
 
| {{#arraymap:{{{Source|}}}|,|x|[[According to::x]]}}
 
| {{#arraymap:{{{Source|}}}|,|x|[[According to::x]]}}
 +
|-
 +
! Code
 +
| {{#ask:[[Answers question::{{SUBJECTPAGENAME}}]]|format=list}}
 +
[[Form:Code|Add a code]]
 
|}
 
|}
  
 
[[Category:Questions]]
 
[[Category:Questions]]
 
</includeonly>
 
</includeonly>

Latest revision as of 10:28, 10 April 2015

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

{{Question
|Query=
|Guidance=
|Agent=
|Action=
|Condition=
|Goal=
|Source=
}}

Edit the page to see the template text.