Template:Wplink: Difference between revisions
Appearance
mNo edit summary |
Bad documentation added. |
||
Line 8: | Line 8: | ||
**{{wplink|article_name|optional_label}} | **{{wplink|article_name|optional_label}} | ||
**{{wp|Wikipedia}} | **{{wp|Wikipedia}} | ||
'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. | |||
[[Category:Styling templates]] | [[Category:Styling templates]] | ||
</noinclude> | <templatedata> | ||
{ | |||
"params": { | |||
"1": { | |||
"description": "The name of the article from Wikipedia.", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"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.", | |||
"type": "string" | |||
} | |||
} | |||
} | |||
</templatedata></noinclude> |
Latest revision as of 10:18, 20 September 2025
- 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 | |
---|---|---|---|---|
1 | 1 | The name of the article from Wikipedia. | String | required |
2 | 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 |