Template:For: Difference between revisions

mNo edit summary
mNo edit summary
Line 12: Line 12:


== Usage Examples ==
== Usage Examples ==
:* '''Note:''' The examples below show each parameter separated by a line break. A simple space on either side of the vertical bar (<code>|</code>) will also work. The line breaks are an aid for demonstration purposes.
:* '''Note:''' The examples below show each parameter separated by a line break for demonstration purposes only. For use in articles, please separate parameters with a vertical bar (<code>|</code>).
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
|- class="title"
|- class="title"
! style="width: 10%;" | Parameter !! style="width: 25%;" | Code !! style="width: 65%;" | Output
! style="width: 10%;" | Parameter !! style="width: 25%;" | Code !! style="width: 65%;" | Output
|-
|-
! rowspan="2" style="text-align: center;" | '''1'''
| rowspan="2" style="text-align: center;" | '''1'''
! colspan="2" style="text-align: center;" | When one unnamed parameter is passed, the template will provide a link to the page defined; preceded by the text: "''For more information,''".
! colspan="2" style="text-align: center;" | When one unnamed parameter is passed, the template will provide a link to the page defined; preceded by the text: "''For more information,''".
|-
|-
| <pre>{{for |St. Crispian's }}</pre> || style="text-align: center;" | {{for|St. Crispian's}}
| <pre>{{for |St. Crispian's }}</pre> || style="text-align: center;" | {{for|St. Crispian's}}
|-
|-
! colspan="3" style="text-align: center;" | When one unnamed parameter is passed, the template will provide a link to the page defined; preceded by the text: "''For more information,''".
| rowspan="2" style="text-align: center;" | '''2'''
|-
| style="text-align: center;" | '''1''' || <pre>{{for|St. Crispian's}}</pre> || style="text-align: center;" | {{for|St. Crispian's}}
|-
! rowspan="2" style="text-align: center;" | '''2'''
! colspan="2" style="text-align: center;" | When a second unnamed parameter is passed, it will replace the text "more information" in the output.
! colspan="2" style="text-align: center;" | When a second unnamed parameter is passed, it will replace the text "more information" in the output.
|-
|-
Line 35: Line 31:
|-
|-
| rowspan="2" style="text-align: center;" | '''3'''
| rowspan="2" style="text-align: center;" | '''3'''
| colspan="2" style="text-align: center;" | When a third unnamed parameter is passed, it will replace the linked text.
! colspan="2" style="text-align: center;" | When a third unnamed parameter is passed, it will replace the linked text.
|-
|-
| <pre>{{for
| <pre>{{for
|St. Crispian's#History
|St. Crispian's#History
|the history of St. Crispian's
|the history of St. Crispian's
|this page}}</pre> || style="text-align: center;" | {{for|St. Crispian's#History|the history of St. Crispian's|this page}}
|History}}</pre> || style="text-align: center;" | {{for|St. Crispian's#History|the history of St. Crispian's|History}}
|-
|-
| rowspan="2" style="text-align: center;" | <code>pre=</code>
| rowspan="2" style="text-align: center;" | <code>pre=</code>
| colspan="2" style="text-align: center;" | This is a test of a span description.
! colspan="2" style="text-align: center;" | When the named parameter <code>pre=TEXT</code> is passed, additional text is added at the beginning of the output.
|-
|-
| <pre>{{for|St. Crispian's|more on Whereabouts Lane|St. Crispian's}}</pre> || style="text-align: center;" | {{for|St. Crispian's|more on Whereabouts Lane|St. Crispian's}}
| <pre>{{for
|Lapis Lazuli#Lapis Lazuli Minor
|more on Lapis Lazuli Minor
|here
|pre=This page is on Lapis Lazuli House}}</pre> || style="text-align: center;" | {{for |Lapis Lazuli#Lapis Lazuli Minor |more on Lapis Lazuli Minor|here| pre=This page is on Lapis Lazuli House}}
|-
|-
| rowspan="2" style="text-align: center;" | <code>post=</code>
| rowspan="2" style="text-align: center;" | <code>post=</code>
| colspan="2" style="text-align: center;" | This is a test of a span description.
! colspan="2" style="text-align: center;" | When the named parameter <code>post=TEXT</code> is passed, additional text is added at the end of the output.
|-
|-
| <pre>{{for|St. Crispian's|more on Whereabouts Lane|St. Crispian's}}</pre> || style="text-align: center;" | {{for|St. Crispian's|more on Whereabouts Lane|St. Crispian's}}
| <pre>{{for
|Lapis Lazuli#Lapis Lazuli Minor
|more on Lapis Lazuli Minor
|here
|post=This page is dedicated to Lapis Lazuli House}}</pre> || style="text-align: center;" | {{for |Lapis Lazuli#Lapis Lazuli Minor |more on Lapis Lazuli Minor|here| post=This page is dedicated to Lapis Lazuli House}}
|-
|-
| rowspan="2" style="text-align: center;" | '''All'''
| rowspan="2" style="text-align: center;" | '''All'''
| colspan="2" style="text-align: center;" | This is a test of a span description.
! colspan="2" style="text-align: center;" | This is a test of a span description.
|-
|-
| <pre>{{for|St. Crispian's|more on Whereabouts Lane|St. Crispian's}}</pre> || style="text-align: center;" | {{for|St. Crispian's|more on Whereabouts Lane|St. Crispian's}}
| <pre>{{for|St. Crispian's|more on Whereabouts Lane|St. Crispian's}}</pre> || style="text-align: center;" | {{for|St. Crispian's|more on Whereabouts Lane|St. Crispian's}}