Template:GuidedResearch print link: Difference between revisions
No edit summary |
No edit summary |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#switch:{{{Number of search links}}}| | {{#switch:{{{Number of search links}}}| | ||
1={{#if:{{{Search link 1|}}}|*{{{Search link 1|}}}| | 1={{#if:{{{Search link 1|}}}|*{{{Search link 1|}}}|}}| | ||
2={{#if:{{{Search link 1|}}}|*{{{Search link 1|}}}| | 2={{#if:{{{Search link 1|}}}|*{{{Search link 1|}}}|}} | ||
{{#if:{{{Search link 2|}}}|*{{{Search link 2|}}}| | {{#if:{{{Search link 2|}}}|*{{{Search link 2|}}}|}}| | ||
3={{#if:{{{Search link 1|}}}|*{{{Search link 1|}}}| | 3={{#if:{{{Search link 1|}}}|*{{{Search link 1|}}}|}} | ||
{{#if:{{{Search link 2|}}}|*{{{Search link 2|}}}| | {{#if:{{{Search link 2|}}}|*{{{Search link 2|}}}|}} | ||
{{#if:{{{Search link 3|}}}|*{{{Search link 3|}}}| | {{#if:{{{Search link 3|}}}|*{{{Search link 3|}}}|}}| | ||
4={{#if:{{{Search link 1|}}}|*{{{Search link 1|}}}| | 4={{#if:{{{Search link 1|}}}|*{{{Search link 1|}}}|}} | ||
{{#if:{{{Search link 2|}}}|*{{{Search link 2|}}}| | {{#if:{{{Search link 2|}}}|*{{{Search link 2|}}}|}} | ||
{{#if:{{{Search link 3|}}}|*{{{Search link 3|}}}| | {{#if:{{{Search link 3|}}}|*{{{Search link 3|}}}|}} | ||
{{#if:{{{Search link 4|}}}|*{{{Search link 4|}}}| | {{#if:{{{Search link 4|}}}|*{{{Search link 4|}}}|}}| | ||
5={{#if:{{{Search link 1|}}}|*{{{Search link 1|}}}| | 5={{#if:{{{Search link 1|}}}|*{{{Search link 1|}}}|}} | ||
{{#if:{{{Search link 2|}}}|*{{{Search link 2|}}}| | {{#if:{{{Search link 2|}}}|*{{{Search link 2|}}}|}} | ||
{{#if:{{{Search link 3|}}}|*{{{Search link 3|}}}| | {{#if:{{{Search link 3|}}}|*{{{Search link 3|}}}|}} | ||
{{#if:{{{Search link 4|}}}|*{{{Search link 4|}}}| | {{#if:{{{Search link 4|}}}|*{{{Search link 4|}}}|}} | ||
{{#if:{{{Search link 5|}}}|*{{{Search link 5|}}}| | {{#if:{{{Search link 5|}}}|*{{{Search link 5|}}}|}}|}} | ||
| | |||
<noinclude> | <noinclude> | ||
This template is called by several templates different templates (listed below) in order to print a link or links in a bullet lists based on the number of links passed into this template. The number of links passed in should match the number of links listed in ''Number of search link''. | This template is called by several templates different templates (listed below) in order to print a link or links in a bullet lists based on the number of links passed into this template. The number of links passed in should match the number of links listed in ''Number of search link''. | ||
Line 25: | Line 24: | ||
:Template:GuidedResearch Why No Record | :Template:GuidedResearch Why No Record | ||
:Template:GuidedResearch Next Step | :Template:GuidedResearch Next Step | ||
<br> | <br> | ||
Line 40: | Line 38: | ||
</nowiki> | </nowiki> | ||
</noinclude> | </noinclude> | ||
Revision as of 15:20, 24 January 2018
This template is called by several templates different templates (listed below) in order to print a link or links in a bullet lists based on the number of links passed into this template. The number of links passed in should match the number of links listed in Number of search link.
Note: Until a loop extension has been installed on the wiki, the most links that this template can handle is 5.
List of templates that call this template:
- Template:GuidedResearch Start Here
- Template:GuidedResearch Why No Record
- Template:GuidedResearch Next Step
Code example:
{{GuidedResearch print link| Number of search links=1| Search link 1=| Search link 2=| Search link 3=| Search link 4=| Search link 5=| }}