Template:Demo table

From PCSAR

(Difference between revisions)
Jump to: navigation, search

Brett Wuth (Talk | contribs)
(New page: <noinclude>{{documentation}}</noinclude><includeonly> {| align="center" cellspacing="0" border="1" ! You type... ! You get... {{{1}}} |} </includeonly>)
Next diff →

Current revision

This is the documentation for the template Template:Demo table

Template:Demo table/Doc:

This template creates demonstrations similar to Template:Demo, but allows you to include multiple examples in one table.

For example:

{{demo table|
{{demo row|I want '''this in bold'''}}
{{demo row|I want ''this in italic''}}
}}


will give you:

You type... You get...
I want '''this in bold''' 
I want this in bold
I want ''this in italic'' 
I want this in italic


{{demo table| should have one argument (starting with the '|'). That argument is one or more calls to Template:demo row. Each row will appear as an additional example.


To see how this template is implemented, edit this page and examine the portion between <includeonly> and </includeonly>.

Personal tools