Template:About other people/doc: Difference between revisions
No edit summary |
Clearer word |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
||
{{Lua|Module:About |
{{Lua|Module:About other people}} |
||
This template acts like {{tl|Other people}}, but includes an extra parameter that describes the subject of the article. |
This template acts like {{tl|Other people}}, but includes an extra parameter that describes the subject of the article. |
||
== Usage == |
== Usage == |
||
The first parameter is |
The first parameter is mandatory; omitting it produces an error message, and a maintenance category that can be suppressed by supplying a <code>category</code> parameter with a falsy value. For example: |
||
* <code><nowiki>{{About other people|category=false}}</nowiki></code> → {{About other people|category=false}} |
* <code><nowiki>{{About other people|category=false}}</nowiki></code> → {{About other people|category=false}} |
||
Latest revision as of 22:54, 4 March 2020
This is a documentation subpage for Template:About other people. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
This template acts like {{Other people}}, but includes an extra parameter that describes the subject of the article.
Usage
[edit]The first parameter is mandatory; omitting it produces an error message, and a maintenance category that can be suppressed by supplying a category
parameter with a falsy value. For example:
{{About other people|category=false}}
→ Error: no page subject specified (help).
The second parameter defines the ambiguous name, changing the "other people" text to include it and improving the default disambiguation page:
{{About other people|an example person}}
→{{About other people|an example person|Jane Doe}}
→
As with {{Other people}}, the message produced when the second parameter is defined can be customized using the named
parameter. For example, named=titled
can be useful:
{{About other people|some "Lord Byron" or other|Lord Byron|Baron Byron|named=titled}}
→
The third and any further parameters define custom targets for the hatnote:
{{About other people|ABOUT|NAME|PAGE1}}
→{{About other people|ABOUT||PAGE1|PAGE2|PAGE3}
→
TemplateData
| ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Produces a disambiguation message to aid readers distinguish between articles on people with the same or similar name, prefixed with a message clarifying the subject of the article.
|