Difference between revisions of "Template:Code"

From CodeWOW
Jump to navigation Jump to search
(testing formatting)
(remove text intro from form)
 
(12 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
<pre>
 
<pre>
 
{{Code
 
{{Code
|agent=
+
|Agent=
|guidance=
+
|Guidance=
|action=
+
|Action=
|condition=
+
|Condition=
|goals=
+
|Goals=
|source=
+
|Source=
 +
|Question=
 
}}
 
}}
 
</pre>
 
</pre>
 
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|}}}]]  
 
|-
 
|-
 
! Guidance
 
! Guidance
| [[Has guidance::{{{guidance|}}}]]  
+
| [[Has guidance::{{{Guidance|}}}]]  
 
|-
 
|-
 
! Action
 
! Action
| [[Do action::{{{action|}}}]]  
+
| [[Do action::{{{Action|}}}]]  
 
|-
 
|-
 
! Condition
 
! Condition
Line 28: Line 31:
 
|-
 
|-
 
! Goal
 
! Goal
| {{#arraymap:{{{Goals|}}}|,|x|[[In order to::x]]}}
+
| {{#arraymap:{{{Goal|}}}|,|x|[[In order to::x]]}}
 
|-
 
|-
 
! Source
 
! Source
 
| {{#arraymap:{{{Source|}}}|,|x|[[According to::x]]}}
 
| {{#arraymap:{{{Source|}}}|,|x|[[According to::x]]}}
 
|-
 
|-
!  
+
! Question
| {{#ask:[[According to::{{SUBJECTPAGENAME}}]]|format=list}}
+
| {{#arraymap:{{{Question|}}}|,|x|[[Answers question::x]]}}
 
|}
 
|}
{{#ask:[[according to::{{SUBJECTPAGENAME}}]]|format=list}}
 
 
[[Has agent::{{{agent|You}}}]] [[Has guidance::{{{guidance|should}}}]] [[Do action::{{{action|do}}}]] [[Has condition::{{{condition|generally}}}]] in order to [[In order to::{{{goal|succeed}}}]] according to [[According to::{{{source|CodeWOW participants}}}]].
 
  
 
[[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.