K wobsahej skočić

Předłoha:předł

z Wikisłownika

The template {{předł}} is intended for use on talk pages and areas of Wiktionary that describe the markup language of wikitext. It displays the name of another template or template-like parser construct, linked for convenience, and wrapped in <code> tags.

{{předł|[[safe]subst:][msg[nw]:][raw:]name of template|...}}
{{předł|[[safe]subst:][msg[nw]:][raw:]namespace:pagename|...}}
{{předł|[[safe]subst:][msg[nw]:][raw:]#invoke:module name|...}}
{{předł|[[safe]subst:][msg[nw]:][raw:]#parser function:...[|...]}}
{{předł|[[safe]subst:]VARIABLE}}
  • The template automatically detects non-template namespaces, substitutions, magic words and parser functions; the syntax is identical to the one accepted by the MediaWiki parser. For example, inclusion from mainspace uses the : prefix.
  • Using the {{#invoke:}} parser function with a valid module name creates a link to the module. Likewise, using {{#tag:}} with a valid parser extension tag links to the tag's documentation.
  • If this template is given non-numeric named arguments, they will be displayed as arguments to the template; however, no particular order is guaranteed.
  • To force a particular order, or to display an equals sign in an explicitly named numeric parameter, you may use the following methods:
    • Use &#61; (or &#x3d;) to code the equal sign.
    • Wrap the parameter assignment (or just the = character) in <nowiki> tags.
    • Make explicit numeral assignments corresponding with numbered parameters starting from 2.
  • Previous versions of this template had an interwiki functionality; this feature has been dropped. Links to templates on sister wikis should be formatted manually.

Přikłady

[wobdźěłać]
{{předł|m|uk|при́клад|g=m}}
Wuslědk: {{m|uk|при́клад|g=m}}
{{předł|subst:wgping|tech}}
Wuslědk: {{subst:wgping|tech}}
{{předł|1=#ifexpr:2 + 2 = 4|2=ok|3=oh noes}}
Wuslědk: {{#ifexpr:2 + 2 = 4|ok|oh noes}}
{{předł|#invoke:debug|error|Help, I'm trapped in an example factory}}
Wuslědk: {{#invoke:debug|error|Help, I'm trapped in an example factory}}
{{předł|FULLPAGENAME:xyzzy}}
Wuslědk: {{FULLPAGENAME:xyzzy}}

See also

[wobdźěłać]
  • {{category}} — display wiki markup for a category link.
  • {{para}}, {{paramref}} — for discussing template parameters or documenting parameter usage in template documentation.
  • {{wikitag}} — display HTML-like wiki markup tags (like <nowiki>).
  • {{tl}} — similar template on Wikipedia.