Difference between revisions of "Template:Q"

From Wiki IoT
Jump to: navigation, search
(new template)
 
(test)
Line 2: Line 2:
 
This template return the text of a chosen question
 
This template return the text of a chosen question
  
<nowiki>{{Q|code}}</nowiki>
+
== Usage ==
 +
<nowiki>{{Q|code|L}}</nowiki>
  
<nowiki>{{Q|CC1}}</nowiki>
+
=== Examples ===
 +
 
 +
<nowiki>{{Q|CC1}}</nowiki> to return only the text
 +
 
 +
<nowiki>{{Q|CC1|L}}</nowiki> to return text with link
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
{{#ifeq:{{{1|}}}|CC1|Is the consumer allowed to modify the software and/or hardware without retaliation|}}
+
{{#ifeq:{{{1|}}}{{{2|}}}|CC1|Is the consumer allowed to modify the software and/or hardware without retaliation?|}}
 +
{{#ifeq:{{{1|}}}{{{2|}}}|CC1L|[[Questions#Is the consumer allowed to modify the software and/or hardware without retaliation?<nowiki>|</nowiki>Is the consumer allowed to modify the software and/or hardware without retaliation]]|}}
 
</includeonly>
 
</includeonly>

Revision as of 09:44, 17 June 2015

This template return the text of a chosen question

Usage

{{Q|code|L}}

Examples

{{Q|CC1}} to return only the text

{{Q|CC1|L}} to return text with link