Difference between revisions of "Template:Discussion"

(attempt at next version)
(it seems to work - trying to show examples)
Line 5: Line 5:
 
<div class="NavContent">{{{1|}}}</div>
 
<div class="NavContent">{{{1|}}}</div>
 
}}<noinclude>
 
}}<noinclude>
This template works for <nowiki>{{Discussion|}}</nowiki> where there is not discussion, and thus returns no discussion header (blank), and for <nowiki>{{Discussion|Here is the discussion}}</nowiki> which returns both the show/hide discussion header and the discussion itself.
+
== If there is no discussion ==
 +
<nowiki>{{Discussion|}}</nowiki> and <nowiki>{{Discussion|"replace this text with any discussion"}}</nowiki>
 +
 
 +
return blank:
 +
 
 +
{{Discussion|}}
 +
 
 +
== If there is discussion ==
 +
 
 +
<nowiki>{{Discussion|Here is the discussion}}</nowiki> returns:
 +
 
 +
{{Discussion|Here is the discussion}}
  
The next version should work just the same, but also return blank for <nowiki>{{Discussion|"replace this text with any discussion"}}</nowiki> perhaps by using the #switch function instead of #if.
 
 
</noinclude>
 
</noinclude>

Revision as of 01:41, 19 November 2007

If there is no discussion

{{Discussion|}} and {{Discussion|"replace this text with any discussion"}}

return blank:


If there is discussion

{{Discussion|Here is the discussion}} returns: