Template:Term/Documentation: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:


==Usage==
==Usage==
{{NoWikiTemp|Normal|<game>|<topic>|link}}
{{NoWikiTemp|Normal|<game>|<topic>|link|display{{=}}}}


{{Parameter|<game> |The game from which to fetch the term of the given topic.|Required}}
{{Parameter|<game> |The game from which to fetch the term of the given topic.|Required}}
{{Parameter|<topic>|The name of the page of said topic. (ex: <code>Boss Key</code> for <code>Nightmare Key</code> and <code>Big Key</code>)|Required}}
{{Parameter|<topic> |The name of the page of said topic. (ex: <code>Boss Key</code> for <code>Nightmare Key</code> and <code>Big Key</code>)|Required}}
{{Parameter|link   |Entering anything in this field will output the result as a link. (Enter <code>link</code> for standardization)|Optional}}
{{Parameter|link   |Entering anything in this field will output the result as a link. (Enter <code>link</code> for standardization)|Optional}}
{{Parameter|display=|Alternative display return value. See below.|Optional}}


===Example===
===Example===
Line 50: Line 51:
| {{Term|TPHD|Big Key|display= Key}}
| {{Term|TPHD|Big Key|display= Key}}
|-
|-
| <code><nowiki>{{Term|TPHD|Big Key|link}}</nowiki></code>
| <code><nowiki>{{Term|TPHD|Big Key|link|display= Key}}}}</nowiki></code>
| {{Term|TPHD|Big Key|link|display= Key}}
| {{Term|TPHD|Big Key|link|display= Key}}
|}
|}


{{Documentation Footer}}
{{Documentation Footer}}

Revision as of 01:17, 27 April 2019

Purpose

Returns the proper singular form of a term for any given topic in The Legend of Zelda series. Terms are stored using Template:Term/Store.

Note: To return the plural form of a term, see Template:Plural.

Usage

    {{Term/Documentation|<game> |<topic> |link |display= }}

  • <game> — The game from which to fetch the term of the given topic.
  • <topic> — The name of the page of said topic. (ex: Boss Key for Nightmare Key and Big Key)
  • link — Entering anything in this field will output the result as a link. (Enter link for standardization)
  • Alternative display return value. See below. — Optional

Example

Input Output
{{Term||Big Key}} Nightmare Key
{{Term||Big Key|link}} Nightmare Key
{{Term|ALttP|Big Key}} Big Key
{{Term|ALttP|Big Key|link}} Big Key
{{Term|LA|Big Key}} Nightmare Key
{{Term|LA|Big Key|link}} Nightmare Key
{{Term|LADX|Big Key}} Nightmare Key
{{Term|LADX|Big Key|link}} Nightmare Key
{{Term|TP|Big Key}} Big Key
{{Term|TP|Big Key|link}} Big Key
{{Term|TPHD|Big Key|display= Key}} Key
{{Term|TPHD|Big Key|link|display= Key}}}} Key
This is the documentation page, it should be transcluded into the main template page. See here for more information.