ಟೆಂಪ್ಲೇಟು:Target
Messages can only be sent to local pages. meta.wikimedia.org
- Uso (es) / Használat (hu) / Erabilera (eu) / Penggunaan (ms) / Verwendung (de) / Usage (en-gb) / ورتݨ (pnb) / 使い方 (ja) / Användning (sv) / Використання (uk) / 用法 (zh-hant) / 사용법 (ko) / Uzado (eo) / Употреба (mk) / Utilizzo (it) / ব্যবহার (bn) / Кутонэз (udm) / Выкарыстаньне (be-tarask) / Utilização (pt) / Коришћење (sr) / Použití (cs) / Penggunaan (id) / bruk (nn) / bruk (nb) / gebruik (nl) / Kullanım şekli (tr) / ڤڠݢوناءن (ms-arab) / การใช้งาน (th) / Utilisation (fr) / Usage (en) / Использование (ru) / 用法 (zh-hans) / ਵਰਤਣ (pa)
For use with Global message delivery/Targets, mostly.
The template wraps around the MassMessage parserfunction {{#target: page | site }} for MediaWiki, documented on mw:Help:Extension:MassMessage.
- Examples
- With the
user
parameter:
(targets the default user's talk page) gives:{{target |user = Nemo bis|site = it.wikiquote.org}}
Messages can only be sent to local pages. it.wikiquote.org
(targets a specific subpage of the user's talk page) gives:{{target |user = Nemo bis/newsfeed|site = meta.wikimedia.org}}
Messages can only be sent to local pages. meta.wikimedia.org
- With the
page
parameter:
(targets a specific subpage in user's pages) gives:{{target |page = User:Nemo bis/newsfeed|site = meta.wikimedia.org}}
Messages can only be sent to local pages. meta.wikimedia.org
(targets a project news page on a localized project wiki) gives:{{target |page = Wikiversidad:Claustro Wikiversitario|site = es.wikiversity.org}}
Messages can only be sent to local pages. es.wikiversity.org
(targets a project news page on an global project wiki) gives:{{target |page = Wikisource:Scriptorium|site = wikisource.org}}
Messages can only be sent to local pages. wikisource.org
(targets a project news page on an global community wiki) gives:{{target |page = Commons:Signpost|site = commons.wikimedia.org}}
}}
Messages can only be sent to local pages. wikisource.org
(targets a project news page on a local community wiki) gives:{{target |page = Wikimedia:Ágora|site = br.wikimedia.org}}
Messages can only be sent to local pages. br.wikimedia.org
- Errors
- Incorrect combinations of parameters:
(page ignored) gives:{{target |user = Nemo bis|page = User:Nemo bis|site = it.wikiquote.org}}
Messages can only be sent to local pages. it.wikiquote.org
(missing user or page) gives:{{target |site = meta.wikimedia.org}}
"{{{page}}}" is not a valid page title. meta.wikimedia.org
(missing site) gives:{{target |user = User name}}
"{{{site}}}" is not a valid site. (unknown domain) {{{site}}}
(missing site) gives:{{target |page = Page name}}
"{{{site}}}" is not a valid site. (unknown domain) {{{site}}}
- Invalid site specified:
(an icon is displayed, but the project subdomain does not exist) gives:{{target |page = User name|site = xxx.wikimedia.org}}
"xxx.wikimedia.org" is not a valid site. xxx.wikimedia.org
(an icon is displayed, but the language subdomain does not exist) gives:{{target |page = User name|site = xxx.wikipedia.org}}
"xxx.wikipedia.org" is not a valid site. xxx.wikipedia.org
(no icon displayed, a required language subdomain is missing) gives:{{target |page = User name|site = wikipedia.org}}
"wikipedia.org" is not a valid site. (unknown domain) wikipedia.org
(no icon displayed, unknown site or not a fully qualified domain name) gives:{{target |page = User name|site = wikipedia}}
"wikipedia" is not a valid site. (unknown domain) wikipedia
- Template data
For use with [[Global message delivery/Targets]], mostly.
ಪರಿಮಿತಿ | ವಿವರ | ನಮೂನೆ | ಸ್ಥಾನಮಾನ | |
---|---|---|---|---|
user | user | A user name on the target wiki, without any namespace (targets the default user's talk page on that wiki). This parameter must be removed if you want to use the alternate page parameter (you must set only one of these two parameters). Don't URL-encode its value and don't insert any wiki tag or HTML tag, but be careful about its exact letter case.
| ಬಳಕೆದಾರ | ಸೂಚಿಸಲ್ಪಟ್ಟ |
page | page | An alternate full page name on the target wiki (with its leading namespace and colon, or slash and subpage name if needed). Use it instead of the user parameter if you don't target the default talk page of a user but a subpage, or another community page; this parameter is not used if you set the user parameter (you must set only one of these two parameters). Don't URL-encode its value and don't insert any wiki tag or HTML tag, but be careful about its exact letter case.
| ಪುಟದ ಹೆಸರು | ಐಚ್ಛಿಕ |
site | site | The fully qualified domain name of the target wiki site. This can only contain letters (letter case is ignored), possibly digits and hyphens, and dots separators between domain labels. Its value is checked against known domain names to render a distinctive icon for the main wiki project. If the domain name is not set is unknown, a warning will be displayed without a leading icon.
| String | required |