Difference between revisions of "Template:Q"

From Trinity Desktop Project Wiki
Jump to navigation Jump to search
(Added question links for easier copying)
(Added keywords option and parameters desription)
Line 5: Line 5:
   
 
Use this template instead of manually specifying the level 1 header for the question.
 
Use this template instead of manually specifying the level 1 header for the question.
  +
  +
'''Parameters:'''
  +
# Question number/identifier
  +
# The question itself
  +
# Keywords
   
 
== Examples ==
 
== Examples ==
   
 
<syntaxhighlight lang="html+handlebars">
 
<syntaxhighlight lang="html+handlebars">
{{Q|1|What is the Trinity Control Center?}}
+
{{Q|1|What is the Trinity Control Center?|options, settings, configuration}}
 
</syntaxhighlight>
 
</syntaxhighlight>
   
{{Q|1|What is the Trinity Control Center?}}
+
{{Q|1|What is the Trinity Control Center?|options, settings, configuration}}
   
</noinclude><includeonly>= <span id="Q{{{1}}}" class="plainlinks" style='background-color: #f8f9fa; border: solid 1px #a2a9b1; font-weight: bold; padding: 0 3px;'>[{{fullurl:{{FULLPAGENAME}}#Q{{{1}}}}} Q{{{1}}}]</span> {{{2}}} =</includeonly>
+
</noinclude><includeonly>= <span id="Q{{{1}}}" class="plainlinks" style='background-color: #f8f9fa; border: solid 1px #a2a9b1; font-weight: bold; padding: 0 3px;'>[{{fullurl:{{FULLPAGENAME}}#Q{{{1}}}}} Q{{{1}}}]</span> {{{2}}} =
  +
<div style="text-align: right; margin-top: -1.12em /* 188% * 0.6em */; color: #8A8A8A;">'''Keywords:''' {{{3}}}</div></includeonly>

Revision as of 11:07, 18 January 2022

Template:Q is a specialized template to be used in FAQ pages. It automatically generates a heading and a simplified short anchor (e.g. Q1) to make referring to questions in the FAQ easier.

Usage

Use this template instead of manually specifying the level 1 header for the question.

Parameters:

  1. Question number/identifier
  2. The question itself
  3. Keywords

Examples

{{Q|1|What is the Trinity Control Center?|options, settings, configuration}}

Q1 What is the Trinity Control Center?

Keywords: options, settings, configuration