Template:FAQ: Difference between revisions

Jump to navigation Jump to search
Add new style FAQ
(Simplify Category assignment. Add category Errata when using the FAQ template.)
(Add new style FAQ)
Line 1: Line 1:
<includeonly>{{#switch:{{{version|}}}
<includeonly>{{#if:{{{question|}}} |
   |1.2 = {{#if:{{{page|}}}  
   {{#if:{{{answer|}}} |
          | {{FAQ_1.2
    {{#if:{{{source|}}} |
            |page={{{page|}}}
      {{#if:{{{reference|}}} |
            }}
        {| style="margin-bottom:5px; background-color:lightgrey; width:100%; padding:5px; border-top-left-radius:10px; border-top-right-radius:10px; border-bottom-right-radius:10px; border-bottom-left-radius:10px;"
          | {{FAQ_1.2}}
        | align="left" colspan="2" | '''{{{question|}}}'''
        }} [[Category:FAQProblems]]
        |-
  |1.5 = {{#if:{{{page|}}}  
        | width="55px" | [[File:Testlog.png|50px]]
          | {{FAQ_1.5
        | <div style="display:inline-block; border:1px solid RGB(85,172,238); border-top-left-radius: 15px; border-top-right-radius: 15px; border-bottom-right-radius: 15px; border-bottom-left-radius: 15px; padding:7px; background-color:white;"> {{{answer|}}}</div>
            |page={{{page|}}}
        |-
            }}
        | align="right" colspan="2" | {{Source|{{{source}}}}}} {{{reference|}}}
          | {{FAQ_1.5}}
        |-
        }} [[Category:FAQProblems]]
        |}
  |1.6 = {{#if:{{{page|}}}
      }}
          | {{FAQ_1.6
    }}
            |page={{{page|}}}
  }}
            }}
}}</includeonly>
          | {{FAQ_1.6}}
        }}
  |#default  = {{#if:{{{page|}}}
                | {{FAQ_1.6
                  |page={{{page|}}}
                  }}
                | {{FAQ_1.6}}
              }}
}}[[Category:FAQ]][[Category:Errata]]</includeonly>
<noinclude>{{documentation}}</noinclude>
<noinclude>{{documentation}}</noinclude>

Navigation menu