Difference between revisions of "Template:HGames Wiki link/doc"
From Hgames Wiki
(Initial creation of template documentation) |
(Add lowercase usage of template to example) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | Since the HGames Wiki makes extensive use of [[Wikipedia:Wikipedia:Subpages|subpages]] for organizing the pages relating to each individual game, | + | Since the HGames Wiki makes extensive use of [[Wikipedia:Wikipedia:Subpages|subpages]] for organizing the pages relating to each individual game, the '''HGames Wiki link''' template can be used to reduce the amount of typing when creating a wiki link in an article. |
== Examples == | == Examples == | ||
A short example of its use is: | A short example of its use is: | ||
− | ::<code><nowiki>{{HGWl|VH|Hot Springs Town}}</nowiki></code> | + | ::<code><nowiki>{{HGWl|VH|Hot Springs Town}}</nowiki></code> or |
+ | ::<code><nowiki>{{hgwl|VH|Hot Springs Town}}</nowiki></code> | ||
:which generates the wiki link | :which generates the wiki link | ||
::<code><nowiki>[[VH/Hot Springs Town|Hot Springs Town]]</nowiki></code> | ::<code><nowiki>[[VH/Hot Springs Town|Hot Springs Town]]</nowiki></code> | ||
Line 30: | Line 31: | ||
| Optional | | Optional | ||
|} | |} | ||
+ | |||
+ | == See also == | ||
+ | * [[Template:VH link]] | ||
+ | * [[Template:Template link]] |
Latest revision as of 00:59, 13 October 2024
Since the HGames Wiki makes extensive use of subpages for organizing the pages relating to each individual game, the HGames Wiki link template can be used to reduce the amount of typing when creating a wiki link in an article.
Examples
A short example of its use is:
{{HGWl|VH|Hot Springs Town}}
or{{hgwl|VH|Hot Springs Town}}
- which generates the wiki link
[[VH/Hot Springs Town|Hot Springs Town]]
The above example can be further shortened by creating a template for an individual game. For example, the {{vhl}} template uses the {{HGames Wiki link}}
template to make it so that the above example can be written as:
{{VHl|Hot Springs Town}}
Parameters
Parameter | Description | Status |
---|---|---|
1
|
Positional parameter: the name of the H game on the HGames Wiki | Required |
2
|
Positional parameter: the name of the subpage, without the name of the H game prefixed to the front | Required |
display
|
By default, the text that gets displayed in the wiki link will be the same as the name of the subpage. If you want to override what gets displayed, use this parameter. | Optional |