 |
A basic story layout. No conditional tests and nothing fancy.
T A G C O D E:
<dpHeadline>
<p>
<dpSubheadline>
<p>
By <dpAuthor>
<p>
<dpStory>
<p>
The above works fine, but doesn't take in many conditions, such as the absence of a headline, or a subheadline, or an author. What if the author credit isn't "by" but "edited by." The following enhancement satisfies these specific concerns:
<dpHeadline default="<dpColumn>">
<p>
<dpIf <dpSubheadline>>
<dpSubheadline>
<p>
</dpIf>
<dpIf <dpAuthor>>
<dpAuthorCredit> <dpAuthor>
<p>
</dpIf>
<dpStory>
<p>
And now with a little formatting and style:
<font size="6"><dpHeadline default="<dpColumn>"></font>
<p>
<dpIf <dpSubheadline>>
<font color="#333366" face="arial,helvetica"><b><dpSubheadline></b></font><br>
</dpIf>
<dpIf <dpAuthor>>
<font face="arial,helvetica" size="1"><dpAuthorCredit> <dpAuthor style="upper"></font>
<p>
</dpIf>
<dpStory images="on" imageAlign="right">
<p>
See also:
<dpAuthor>,
<dpHeadline>,
<dpIf>,
<dpSubHeadline>
A D D I T I O N A L < D P S T O R Y > E X A M P L E S:
S E E A L S O:
Other tag examples that incorporate <dpStory>
|
 |