Difference between revisions of "Template:BtArticle"
Jump to navigation
Jump to search
BITPlan brainteaser {{{issue|}}} 2017-11
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>This is a template for brainteaser articles</noinclude><includeonly> | + | <noinclude>This is a template for brainteaser articles |
+ | = usage = | ||
+ | <pre> | ||
+ | {{BrainteaserFrame|Header|issue=00}} | ||
+ | {{BtArticle|title=Wiki Templates are helpfull|link=Template:BtArticle | ||
+ | |text=With wiki template content and presentation can be nicely separated. All you need to do is | ||
+ | use a template and specify the details. E.g. this article has the title "Wiki Templates are helpful" and the | ||
+ | text you are just reading. So the title parameter is set to "Wiki Templates are helpful" and the text parameter to this text. And | ||
+ | voila - you see this article presented with the CSS styled by the {{Link|target=Template:BrainteaserFrame}} template. | ||
+ | }} | ||
+ | {{BrainteaserFrame|Footer}} | ||
+ | </pre> | ||
+ | {{BrainteaserFrame|Header|issue=00}} | ||
+ | {{BtArticle|title=Wiki Templates are helpfull|link=Template:BtArticle | ||
+ | |text=With wiki template content and presentation can be nicely separated. All you need to do is | ||
+ | use a template and specify the details. E.g. this article has the title "Wiki Templates are helpful" and the | ||
+ | text you are just reading. So the title parameter is set to "Wiki Templates are helpful" and the text parameter to this text. And | ||
+ | voila - you see this article presented with the CSS styled by the {{Link|target=Template:BrainteaserFrame}} template. | ||
+ | }} | ||
+ | {{BrainteaserFrame|Footer}}</noinclude> | ||
+ | <includeonly> | ||
<div class='brainteaser'> | <div class='brainteaser'> | ||
<div class='btheadline'>{{{title|}}}</div> | <div class='btheadline'>{{{title|}}}</div> | ||
− | <div class='btcontent'>{{{text|}}}</div> | + | <div class='btcontent'>{{{text|}}}{{#if:{{{link|}}}|<br> {{Link|target={{{link|}}}|title=➙{{{link|}}}}}}}</div> |
</div></includeonly> | </div></includeonly> |
Latest revision as of 09:09, 4 November 2017
This is a template for brainteaser articles
usage
{{BrainteaserFrame|Header|issue=00}} {{BtArticle|title=Wiki Templates are helpfull|link=Template:BtArticle |text=With wiki template content and presentation can be nicely separated. All you need to do is use a template and specify the details. E.g. this article has the title "Wiki Templates are helpful" and the text you are just reading. So the title parameter is set to "Wiki Templates are helpful" and the text parameter to this text. And voila - you see this article presented with the CSS styled by the {{Link|target=Template:BrainteaserFrame}} template. }} {{BrainteaserFrame|Footer}}
brainteaser 00
breinti:zer - a mentally challenging problem or puzzle