Difference between revisions of "Template:Code"

From CodeWOW
Jump to navigation Jump to search
(switch property to arraymap, in order to allow multiple Questions for each Code)
(remove text intro from form)
 
(4 intermediate revisions by the same user not shown)
Line 15: Line 15:
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{| class="wikitable"
+
{| 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;"
 +
! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>Code: {{PAGENAME}}</big>
 +
|-
 
! Agent
 
! Agent
 
| [[Has agent::{{{Agent|}}}]]  
 
| [[Has agent::{{{Agent|}}}]]  
Line 35: Line 37:
 
|-
 
|-
 
! Question
 
! Question
| {{#arraymap:{{{Question|}}}|,x|[[Answers question::x]]}}
+
| {{#arraymap:{{{Question|}}}|,|x|[[Answers question::x]]}}
 
|}
 
|}
 
[[Has agent::{{{Agent|}}}]] [[Has guidance::{{{Guidance|}}}]] [[Do action::{{{Action|}}}]] [[Has condition::{{#arraymap:{{{Condition|}}}|,|x|[[Has condition::x]]}} in order to {{#arraymap:{{{Goal|}}}|,|x|[[In order to::x]]}} according to {{#arraymap:{{{Source|}}}|,|x|[[According to::x]]}}, answering the question {{#arraymap:{{{Question|}}}|,x|[[Answers question::x]]}}.
 
  
 
[[Category:Codes]]
 
[[Category:Codes]]
 
</includeonly>
 
</includeonly>

Latest revision as of 15:54, 11 April 2015

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

{{Code
|Agent=
|Guidance=
|Action=
|Condition=
|Goals=
|Source=
|Question=
}}

Edit the page to see the template text.