Template:Note/faq: Difference between revisions
Appearance
Created page with '{{message|{{#if:{{{1|}}}|'''{{{1}}}'''<BR>}}{{#if:{{{2|}}}|{{{2}}}}}|image=question.png}}<noinclude>Category:Admonition templates</noinclude>' |
m consolidate categories |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{message|{{#if:{{{1|}}}|'''{{{1}}}'''<BR>}}{{#if:{{{2|}}}|{{{2}}}}}|image=question.png}}<noinclude>[[Category: | {{message|bgcolor=#f9f6b7|{{#if:{{{1|}}}|'''{{{1}}}'''<BR>}}<noinclude>'''Bold headword'''<br></noinclude>{{#if:{{{2|}}}|{{{2}}}}}<noinclude>extended helpful tip</noinclude>|image=question-answer.png}}<noinclude> | ||
==Usage== | |||
<nowiki>{{Note/faq|Bold headword (optional)|extended helpful tip text}}</nowiki> | |||
real example: | |||
{{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 () { | |||
"""This is the __doc__ str""" | |||
_local_variable = 'set here' | |||
if _local_variable is not None: | |||
this_code_will_execute(self, _local_variable) | |||
}</nowiki> | |||
[[Category:Highlighting template|faq]] | |||
</noinclude> | |||
Latest revision as of 09:22, 16 July 2011
Usage
{{Note/faq|Bold headword (optional)|extended helpful tip text}}
real example:
function () {
"""This is the __doc__ str"""
_local_variable = 'set here'
if _local_variable is not None:
this_code_will_execute(self, _local_variable)
}