|
|
| Line 1: |
Line 1: |
| <noinclude> | | <includeonly><onlyinclude>{{ |
| <!-- Text starting with lt!-- and ending with --gt is a comment that will be not show. | | | title = {{{title|{{PAGENAME}}}}} |
| Text between the noinclude tags is the documentation for your template and will not be transcluded with your template. -->
| | | image = {{{image|}}} |
| | | |header1 = Prerequisites |
| Look at this in source or edit view to really see how it is set up. See page [[SampleInfoboxUser]] for an example of how to use it.
| | |label1 = Prerequisites |
| | | | splendour = {{prerequisites|}}} |
| This template just demonstrates a really simple infobox that will show up at the right top of where the template is used. It is really just a [https://www.mediawiki.org/wiki/Help:Templates mediawiki template] that generates a right floating [https://www.mediawiki.org/wiki/Help:Tables mediawiki table].
| | |header2 = Production |
| | | |label2 = Workers |
| ==Template Use==
| | | workers = {{workers|}}} |
| To use this template, put the following text on a page, replacing the values as instructed.
| | |label3 = Best suited to: |
| <!-- the following is just an explanation how to use this. The template would work without it, but it makes it easier for people to use a template.
| | | class = {{worker class|}}} |
| The <pre> tells mediawiki to ignore the mediawiki markup so it doesn't actually call the template. -->
| | |label4 = Consumes |
| <pre>{{SampleInfobox
| | | input = {{input|}}} |
| | firstValue = replace this with first value | | |label5 = Produces |
| | secondValue = replace this with second value | | | output = {{output|}}} |
| }} | | |label6 = Monthly maintenance |
| </pre>
| | | maintenance = {{maintenance|}}} |
| | | | header3 = Construction Requirements |
| [[Category:External Sample]]
| | | construction = {{construction|}}} |
| ---- <!-- this draws a line to show where the template description ends and the template itself starts. The template would work without it. -->
| | }}</onlyinclude></includeonly><noinclude> |
| | | {{Documentation}}</noinclude> |
| | |
| | |
| </noinclude><!-- this is just a mediawiki table, see https://www.mediawiki.org/wiki/Help:Tables for more -->
| |
| {| class="wikitable" border="1" style="float:right; width:33%" <!-- float puts it on right side and wraps text -->
| |
| |style="text-align: center" <!-- center the text --> colspan="2" <!-- make title row span across columns --> | Sample Infobox | |
| |- | |
| | style="background:silver; color:arsenic; width:25%" align="right"| '''first value: ''' | |
| | {{{firstValue}}} <!-- this accesses the named parameter passed to the template, see https://www.mediawiki.org/wiki/Help:Templates --> | |
| |- | |
| | style="background:silver; color:arsenic" align="right"| '''second value: ''' | |
| | {{{secondValue}}}
| |
| |}
| |