Difference between revisions of "Template:Code"

From CodeWOW
Jump to navigation Jump to search
(Create code template using form)
 
(lower case)
Line 4: Line 4:
 
<pre>
 
<pre>
 
{{Code
 
{{Code
|Agent=
+
|agent=
|Guidance=
+
|guidance=
|Action=
+
|action=
|Condition=
+
|condition=
|Goals=
+
|goals=
|Source=
+
|source=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>{| class="wikitable"
+
</noinclude><includeonly>
! Agent
+
[[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}}}]].
| [[Has agent::{{{Agent|}}}]]  
 
|-
 
! Guidance
 
| [[Has guidance::{{{Guidance|}}}]]  
 
|-
 
! Action
 
| [[Do action::{{{Action|}}}]]  
 
|-
 
! Condition
 
| {{#arraymap:{{{Condition|}}}|,|x|[[Has condition::x]]}}
 
|-
 
! Goal
 
| {{#arraymap:{{{Goals|}}}|,|x|[[In order to::x]]}}
 
|-
 
! Source
 
| {{#arraymap:{{{Source|}}}|,|x|[[According to::x]]}}
 
|-
 
!
 
| {{#ask:[[According to::{{SUBJECTPAGENAME}}]]|format=list}}
 
|}
 
  
 
[[Category:Codes]]
 
[[Category:Codes]]
 
</includeonly>
 
</includeonly>

Revision as of 18:46, 5 April 2015

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

{{Code
|agent=
|guidance=
|action=
|condition=
|goals=
|source=
}}

Edit the page to see the template text.