Jump to content

Template:Note/faq: Difference between revisions

From Sugar Labs
No edit summary
Line 2: Line 2:


==Usage==
==Usage==
  <nowiki>{{Admon/faq|Bold headword (optional)|extended helpful tip text}}</nowiki>
  <nowiki>{{Note/faq|Bold headword (optional)|extended helpful tip text}}</nowiki>


real example:
real example:
{{Admon/faq|Help tip for pasting code blocks in the wiki:|Put a space in the first column before<code><nowiki> <nowiki></nowiki></code>followed by a block of code with indentations and newlines to preserve the code block formatting. See below:}}
{{Note/faq|Help tip for pasting code blocks in the wiki:|Put a space in the first column before<code><nowiki> <nowiki></nowiki></code>followed by a block of code with indentations and newlines to preserve the code block formatting. See below:}}
  <nowiki>function () {
  <nowiki>function () {
     """This is the __doc__ str"""
     """This is the __doc__ str"""
Line 14: Line 14:
}</nowiki>
}</nowiki>


[[Category:Admonition template|faq]]
[[Category:Notification template|faq]]
</noinclude>
</noinclude>

Revision as of 10:15, 16 July 2011

Bold headword
extended helpful tip

Usage

{{Note/faq|Bold headword (optional)|extended helpful tip text}}

real example:

Help tip for pasting code blocks in the wiki:
Put a space in the first column before <nowiki>followed by a block of code with indentations and newlines to preserve the code block formatting. See below:
function () {
    """This is the __doc__ str"""
    
    _local_variable = 'set here'
    if _local_variable is not None:
        this_code_will_execute(self, _local_variable)
}