Template:See: Difference between revisions

From PZwiki
(update)
m (use Template:sup)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Documentation/sandbox|doc =
{{Documentation/sandbox|doc =
This template is used when only a part of a heading's title are discussed. Linking to more of the same topic.
This template is used when only a part of a heading's title is discussed. Linking to more of the same topic.


==Usage==
==Usage==
{{Tlx|See|Project Zomboid Wiki}}
{{See|Project Zomboid Wiki}}
{{Tlx|See|Project Zomboid Wiki|The Main Page}}
{{See|Project Zomboid Wiki|The Main Page}}
===Parameters===
===Parameters===
;<code>1</code> <sup>(required)</sup>
;<code>1</code> {{sup|required}}
:The page to link to.
:The page to link to.
;<code>2</code>
;<code>2</code>
:The text to display.
:The text to display.
==Examples==
*{{tll|See|Project Zomboid Wiki}}
{{See|Project Zomboid Wiki}}
*{{tll|See|Project Zomboid Wiki|The Main Page}}
{{See|Project Zomboid Wiki|The Main Page}}


{{Translation guide|<syntaxhighlight lang="html">
{{Translation guide|<syntaxhighlight lang="html">
Line 25: Line 26:
*{{ll|Template:About}}
*{{ll|Template:About}}
*{{ll|Template:Main}}
*{{ll|Template:Main}}
*{{ll|Template:Main/core}}
}}
}}
{{ll|Category:Templates}}
{{ll|Category:Templates}}
</noinclude><includeonly>:''{{tt
</noinclude><includeonly>{{#if: {{{1|}}}
| name = See
| :''{{tt|name = See
| default = See more
  | default = See more
| arg1 = see_more
  | arg1 = see_more
}}: [[{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]]''</includeonly>
  }}: {{Main/core|{{{1}}}|{{{2|}}}}}''
| [[Category:Incorrect template usage]] <!-- should get at least one argument -->
}}</includeonly>

Latest revision as of 04:49, 8 January 2024

Notebook.pngTemplate Documentation

This template is used when only a part of a heading's title is discussed. Linking to more of the same topic.

Usage

Parameters

1 Required
The page to link to.
2
The text to display.

Examples

  • {{See|Project Zomboid Wiki}}
See more: Project Zomboid Wiki
  • {{See|Project Zomboid Wiki|The Main Page}}
See more: The Main Page

How to translate

This template is translatable.

Template code

Paste the following code into the <includeonly> tag of the translated template and translate the text after each = sign (except for #default =).

{{#switch: {{{1|}}}
| see_more = See more
| #default = [[Category:Incorrect template usage]]
}}

Template documentation

Copy the code wrapped in the <noinclude> tag in this template and translate the text after doc = in the {{Documentation}} template.

{{Translation guide}} template should be removed from the translated documentation.

See also

Editors can experiment in this template's sandbox.