Template:For/doc: Difference between revisions

From Space Station 14 Wiki
defaultloadout-wikigg>Karmaworks
No edit summary
defaultloadout-wikigg>Karmaworks
No edit summary
Line 44: Line 44:
! Code !! Result
! Code !! Result
|-
|-
| <code><nowiki>{{For|Topic|Page One}}</nowiki></code> || {{For|Topic|Page One}}
| <code><nowiki>{{For|more information|Page One}}</nowiki></code> || {{For|more information|Page One}}
|-
|-
| <code><nowiki>{{For|Topic|Page One|Page Two}}</nowiki></code> || {{For|Topic|Page One|Page Two}}
| <code><nowiki>{{For|more information|Page One|Page Two}}</nowiki></code> || {{For|more information|Page One|Page Two}}
|-
|-
| <code><nowiki>{{For|Topic|Page One|Page Two|Page Three}}</nowiki></code> || {{For|Topic|Page One|Page Two|Page Three}}
| <code><nowiki>{{For|more information|Page One|Page Two|Page Three}}</nowiki></code> || {{For|more information|Page One|Page Two|Page Three}}
|-
|-
| <code><nowiki>{{For|Topic|Page One{{!}}Page 1}}</nowiki></code> || {{For|Topic|Page One{{!}}Page 1}}
| <code><nowiki>{{For|more information|Page One{{!}}Page 1}}</nowiki></code> || {{For|more information|Page One{{!}}Page 1}}
|}
|}



Revision as of 20:43, 12 April 2024

Summary

This hatnote template is meant to be used to show pages related to a topic the reader might want to visit.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Topic1

The topic the

Example
Term Page
Page namerequired
Related Page2

A related page.

Example
Related Name
Page namerequired
Second Page3

A second related page.

Example
Second Related Page
Page nameoptional
Third Page4

A third related page.

Example
Third Related Page
Page nameoptional

Examples

Code Result
{{For|more information|Page One}}
For more information, see Page One.
{{For|more information|Page One|Page Two}}
For more information, see Page One and Page Two.
{{For|more information|Page One|Page Two|Page Three}}
For more information, see Page One, Page Two and Page Three.
{{For|more information|Page One{{!}}Page 1}}
For more information, see Page 1.

Dependencies

This template requires the {{Hatnote}} metatemplate.

Source

Roughly based on Wikipedia's For Template.