User talk:Ursulaboi: Difference between revisions

Jump to navigation Jump to search
m
→‎Install loops extension: updated template, added optional argument question_source, added input validation
(→‎Install loops extension: forgot the variables extension)
m (→‎Install loops extension: updated template, added optional argument question_source, added input validation)
Line 176: Line 176:
}}{{
}}{{
   #while:
   #while:
   | {{{ question_{{#var: i }} |}}}
   | {{{ question_{{#var:i}} |}}}
   |<nowiki/>  
   |<nowiki/>  
     {{!}}-  
     {{#if:{{{ question_{{#var:i}} |}}} |
    {{!}} '''Q:''' {{{ question_{{#var: i }} |}}}
      {{#if:{{{ answer_{{#var:i}} |}}} |
    {{!}}-  
        {{#if:{{{ source_{{#var:i}} |}}}|
    {{!}} '''A:''' {{{ answer_{{#var: i }} |}}}
          {{#if:{{{ reference_{{#var:i}} |}}}|
    {{!}}-
            {{!}}-  
    {{!}} [{{{ source_{{#var: i }} |}}} source] {{{ reference_{{#var: i }} |}}}
            {{!}} {{#if:{{{ question_source_{{#var:i}} |}}} | '''Q:'''{{#tag:ref | {{{ question_source_{{#var:i}} |}}} }} | '''Q:'''}} {{{ question_{{#var:i}} |}}}
    {{!}}-
            {{!}}-  
    {{!}} <br>  
            {{!}} '''A:''' {{{ answer_{{#var:i}} |}}}
            {{!}}-
            {{!}} [{{{ source_{{#var:i}} |}}} Source]{{#tag:ref | {{{ source_{{#var:i}} |}}} }} {{{ reference_{{#var:i}} |}}}
            {{!}}-
            {{!}} <br>
          }}
        }}
      }}
    }}
{{#vardefine: i
{{#vardefine: i
       | {{ #expr: {{ #var: i }} + 1 }}
       | {{ #expr: {{#var:i}} + 1 }}
     }}
     }}
}}
}}
Line 197: Line 205:
{{QA
{{QA
| question_1=Is it true?
| question_1=Is it true?
| question_source_1=http://help.me.please
| answer_1=Yes
| answer_1=Yes
| source_1=http://google.com
| source_1=http://google.com
Line 202: Line 211:


| question_2=Is it true?
| question_2=Is it true?
| question_source_2=http://go.help.yourself
| answer_2=No
| answer_2=No
| source_2=http://yahoo.com
| source_2=http://yahoo.com

Navigation menu