Template:Wplink: Difference between revisions
Appearance
Bad documentation added. |
m Protected "Template:Wplink": Protecting this template as more and more articles have the interwiki links converted from HTML. ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 16: | Line 16: | ||
"description": "The name of the article from Wikipedia.", | "description": "The name of the article from Wikipedia.", | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true, | ||
"label": "Article name" | |||
}, | }, | ||
"2": { | "2": { | ||
"description": "What this link will appear as when viewing the article. e.g the link could be to 'Rotten Tomatoes' but shows up as 'Tomatoes' because that is what you put in here.", | "description": "What this link will appear as when viewing the article. e.g the link could be to 'Rotten Tomatoes' but shows up as 'Tomatoes' because that is what you put in here.", | ||
"type": "string" | "type": "string", | ||
"label": "Appearance" | |||
} | } | ||
} | } | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> | ||
Latest revision as of 23:06, 5 April 2026
- Usage:
{{wplink|article_name|optional_label}}{{wp|Wikipedia}}
- Results:
'article_name' refers to the name of the article from Wikipedia, while 'optional_label' is what the link will look like when viewing the article.
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Article name | 1 | The name of the article from Wikipedia. | String | required |
| Appearance | 2 | What this link will appear as when viewing the article. e.g the link could be to 'Rotten Tomatoes' but shows up as 'Tomatoes' because that is what you put in here. | String | optional |