Template:ACE Question/HTML
- Question
- Answer
This template is used to lay out questions and answers for Arbitration Committee Elections candidate questions pages (e.g. "Wikipedia:Arbitration Committee Elections December 2022/Candidates/CandidateUserNameHere/Questions")
Usage
One instance of the template is used for each Q&A (usually a maximum of two): If more than one, they must be back-to-back, without a blank line between them, or incorrect numbering will result:
{{ACE Question
|Q=What is your name?
|A=
}}
{{ACE Question
|Q=What is your quest?
|A=
}}
The candidate, when responding, adds their answer in the |A= parameter.
Parameters
|Q=– Mandatory, and with content in it. This is where to write your question for the candidate.|A=– Mandatory, and blank when the template is inserted by the question-asker. This is where the candidate will write their answer to your question.|Sub=– Optional. This is for asking sub-questions, to respond to previous answers. Possible values are|Sub=2or|Sub=3
When |Sub= is used, the results look like the following:
{{ACE Question
|Q=A first question.
|A=An answer.
}}
{{ACE Question
|Q=Another question, in response to the first answer.
|A=A response, elaborating further.
|Sub=2
}}
{{ACE Question
|Q=Another question, in response to the elaboration.
|A=Another response.
|Sub=3
}}
- A first question.
- An answer.
-
- Another question, in response to the first answer.
- A response, elaborating further.
- Another question, in response to the first answer.
-
- Another question, in response to the elaboration.
- Another response.
- Another question, in response to the elaboration.
Troubleshooting
Because this uses a bunch of nested wikicode for list layout, it is fairly easy to break, e.g. by including wikimarkup-coded tables in a question or answer, etc. One example might be attempting to use {{Collapse}} (a table-based template) in an answer, which will just fail dramatically. The variant {{Collapse/HTML}} exists, which should work better.
However, something like that can still mess up the list code, for subsequent Q&As:
- Mis-numbering:
-
If you find the numbering is not correct, you can manually adjust the start point of the list item by using
|list resume=value. When|list resume=is used, the results look like the following:{{ACE Question |Q=A first question. |A=An answer. }} {{ACE Question |Q=Another question, in response to the first answer. |A=A response, elaborating further. |list resume=20 }} {{ACE Question |Q=Another question, in response to the elaboration. |A=Another response. |list resume=30 }}
- A first question.
- An answer.
- Another question, in response to the first answer.
- A response, elaborating further.
- Another question, in response to the elaboration.
- Another response.
- A first question.
- Mis-indentation:
- If you find that the second or later Q&A is indenting too far for some reason, this probably means that some markup in the first Q or A content confused the parsing of the list code. Try inserting a
</ol>immediately after the}}that closes the first Q&A template (or the second one if there are three Q&As and only the third is indenting too far. - Mis-listing:
- If you are a trying to use a list inside your question or answer, and it's messing up the whole Q&A appearance, try replacing your embedded list wikimarkup with raw HTML equivalents:
<ul><li>...</li><li>...</li></ul>for an unordered (bulleted) list; or<ol><li>...</li><li>...</li></ol>for an ordered (numbered) list.
Template Data
TemplateData for ACE Question
Template for Arbitration Committee Elections Q&A
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Question | Q | Your question for the candidate. | String | required |
| Answer | A | The answer from the candidate.
| String | required |
| Sub-Question | Sub | Respond to previous answer. | String | optional |
| Resume List | list resume | Manually alters the list item number in case of breakage | String | optional |
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.