Template:FAQ: Difference between revisions

From Descent-Community Wiki 1.2
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
     {{#if:{{{source|}}} |
     {{#if:{{{source|}}} |
       {{#if:{{{reference|}}} |
       {{#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;"
         {{{!}} 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;"
         | align="left" colspan="2" | '''{{{question|}}}'''
         {{!}} align="left" colspan="2" {{!}} '''{{{question|}}}'''
         |-
         {{!}}-
         | width="55px" | [[File:Testlog.png|50px]]
         {{!}} width="55px" {{!}} [[File:Testlog.png|50px]]
         | <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>
         {{!}} <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>
         |-
         {{!}}-
         | align="right" colspan="2" | {{Source|{{{source}}}}} {{{reference|}}}
         {{!}} align="right" colspan="2" {{!}} {{Source|{{{source|}}}}} {{{reference|}}}
         |-
         {{!}}-
         |}
         {{!}}}
       }}
       }}
     }}
     }}

Revision as of 17:03, 2 April 2017

Template documentation (for the above template, sometimes hidden or invisible)

Description

  • This template is not intended to be used directly. It provides the formatting for FAQ entries.
  • Please use the Templates: UFAQ or OFAQ

Syntax

All parameters are required. The FAQ box will not be drawn if at least one of these parameters is missing.

{{FAQ
|question  = <mandatory> The question.
|answer    = <mandatory> The answer to the question.
|source    = <mandatory> A link where the answer is from.
|reference = <mandatory> Who gave the answer.
|icon      = <optional> The icon which is shown on the left side. Defaults to the descent D.
}}

Visit Template:FAQ/doc to edit this text! (How does this work?)