Template:Examples Both: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:


<noinclude>==Usage==
<noinclude>==Usage==
Use this template for the bullet icons in a "See it in action" box. This template is for examples that are in video format (e.g., posted on ReliaSoft.tv). Use the Examples_Link template for an example that's posted in HTML format (e.g., another page in the wiki, or on ReliaSoft.com or weibull.com). This template takes 1 parameter, the link for the examples page of the current application. For example:
Use this template in conjunction with [[Template:Examples Box]] in order to build a "See it in action..." box that provides links to other relevant examples. The following templates are available to handle different types of links:
 
{{Examples Template Types}}
 
The Examples Both template takes 4 parameters:
 
1 - The URL for the HTML version of the example (e.g., http://www.reliasoft.com/BlockSim/examples/rc1/index.htm).
2 - The anchor text for the HTML version link (e.g., "Reliability Analysis of a Storage Cluster System").
3 - The URL for the video version of the example on ReliaSoft.tv (e.g., http://www.reliasoft.tv/blocksim/appexamples/blocksim_app_ex_1.htm).
4 - The anchor text for the video version link (e.g., "Watch the video...")
 
 
For example:


<pre>{{Examples Both|http://www.reliasoft.com/BlockSim/examples/rc1/index.htm|Reliability Analysis of a Storage Cluster System|http://www.reliasoft.tv/blocksim/appexamples/blocksim_app_ex_1.html|Watch the video...}}</pre>
<pre>{{Examples Both|http://www.reliasoft.com/BlockSim/examples/rc1/index.htm|Reliability Analysis of a Storage Cluster System|http://www.reliasoft.tv/blocksim/appexamples/blocksim_app_ex_1.html|Watch the video...}}</pre>

Revision as of 02:52, 14 August 2012

link={{{1}}} [{{{1}}} {{{2}}}] or link={{{3}}} [{{{3}}} {{{4}}}]

Usage

Use this template in conjunction with Template:Examples Box in order to build a "See it in action..." box that provides links to other relevant examples. The following templates are available to handle different types of links:

The Examples Both template takes 4 parameters:

1 - The URL for the HTML version of the example (e.g., http://www.reliasoft.com/BlockSim/examples/rc1/index.htm). 2 - The anchor text for the HTML version link (e.g., "Reliability Analysis of a Storage Cluster System"). 3 - The URL for the video version of the example on ReliaSoft.tv (e.g., http://www.reliasoft.tv/blocksim/appexamples/blocksim_app_ex_1.htm). 4 - The anchor text for the video version link (e.g., "Watch the video...")


For example:

{{Examples Both|http://www.reliasoft.com/BlockSim/examples/rc1/index.htm|Reliability Analysis of a Storage Cluster System|http://www.reliasoft.tv/blocksim/appexamples/blocksim_app_ex_1.html|Watch the video...}}

Examples link.png Reliability Analysis of a Storage Cluster System or Examples movie.png Watch the video...