Template:See: Difference between revisions

From PZwiki
m (noinclude)
m (use Template:sup)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Languages}}
{{Documentation/sandbox|doc =
{{Documentation}}
This template is used when only a part of a heading's title is discussed. Linking to more of the same topic.
[[Category:Templates]]
 
</noinclude><includeonly>:<small>''See more: {{#if:{{{2|}}}|[[{{{1}}}|{{{2}}}]]|[[{{{1}}}]]}}''</small></includeonly>
==Usage==
===Parameters===
;<code>1</code> {{sup|required}}
:The page to link to.
;<code>2</code>
: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">
{{#switch: {{{1|}}}
| see_more = See more
| #default = [[Category:Incorrect template usage]]
}}
</syntaxhighlight>}}
 
==See also==
*{{ll|Template:About}}
*{{ll|Template:Main}}
*{{ll|Template:Main/core}}
}}
{{ll|Category:Templates}}
</noinclude><includeonly>{{#if: {{{1|}}}
| :''{{tt|name = See
  | default = See more
  | arg1 = see_more
  }}: {{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.