Difference between revisions of "Template:Term"
Line 7: | Line 7: | ||
**<nowiki>[[Meta:Terminology#foo|bar]]</nowiki> | **<nowiki>[[Meta:Terminology#foo|bar]]</nowiki> | ||
***{{Term|foo|bar}} | ***{{Term|foo|bar}} | ||
− | </noinclude><includeonly><span class="terminology">[[Meta:Terminology#{{{1|}}}|{{{2|{{{1|}}}}}}]]</span></includeonly> | + | |
+ | The ''s'' parameter causes spaces to be omitted from the link. | ||
+ | |||
+ | *<nowiki>{{Term|foo bar|s=anything}}</nowiki> | ||
+ | **<nowiki>[[Meta:Terminology#foobar|foo bar]]</nowiki> | ||
+ | ***{{Term|foo bar|s=anything}} | ||
+ | |||
+ | The ''p'' parameter prefixes something to the term being linked to. | ||
+ | |||
+ | *<nowiki>{{Term|foo|p=X}}</nowiki> | ||
+ | **<nowiki>[[Meta:Terminology#Xfoo|foo]]</nowiki> | ||
+ | ***{{Term|foo|p=X}} | ||
+ | </noinclude><includeonly><span class="terminology">[[Meta:Terminology#{{#if:{{{s|}}}|{{#invoke:String|replace|{{{p|}}}{{{1|}}}| |}}|{{{p|}}}{{{1|}}}|}}|{{{2|{{{1|}}}}}}]]</span></includeonly> |
Revision as of 22:45, 5 May 2017
Links to the specified term on Meta:Terminology. Also surrounds the link in a span tag with the "terminology" class, which can be used to change its appearance in certain contexts.
The s parameter causes spaces to be omitted from the link.
- {{Term|foo bar|s=anything}}
- [[Meta:Terminology#foobar|foo bar]]
The p parameter prefixes something to the term being linked to.
- {{Term|foo|p=X}}
- [[Meta:Terminology#Xfoo|foo]]