Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Parameters  





1.2  Troubleshooting  
















Template:ACE Question






فارسی
Bahasa Indonesia
Bahasa Melayu
 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Meta-Wiki
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


  1. Question

    Answer

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

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}}
  1. A first question.

    An answer.

  2. Another question, in response to the first answer.

    A response, elaborating further.

  3. Another question, in response to the elaboration.

    Another response.

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 that the second (and any subsequent) questions are not numbered properly, try the variant template {{ACE Question/HTML}}, which uses raw-HTML ordered-list markup instead of wikicode ordered-list markup. It defaults to list item no. 2, since that's going to be the most common case needed. However, you can customize the numbered with |start=. To get the display to work properly, you will need to remove the leading # from {{ACE Question/HTML}} instances. This is most often needed when the previous question or answer to it contained complex markup, or when someone added a "Thanks for your detailed reply" sort of comment between the questions.
#{{ACE Question 
 |Q=What is your name?
 |A=Arthur, King of the Britons.  I have also used these usernames: [table or list inserted here]
}} <!-- Markup in that answer broke auto-numbering, so switched to "ACE Questions/HTML": -->
{{ACE Question/HTML
 |Q=What is your quest?
 |A=I seek the Holy Grail.
}}
{{ACE Question/HTML |start=3|Q=What is the airspeed velocity of an unladen swallow?
 |A=...
}}

If it still doesn't work properly, try inserting a </ol> immediately after the }} that closes the previous Q&A template.

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.

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:ACE_Question&oldid=1048394640"

Category: 
Wikipedia Arbitration Committee elections templates
Hidden category: 
Wikipedia semi-protected templates
 



This page was last edited on 5 October 2021, at 19:14 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki