Template:Wiki: Difference between revisions
Jump to navigation
Jump to search
(maybe this) |
(i will figure this out tomorrow, this works mostly as intended for now copium) |
||
Line 1: | Line 1: | ||
<span class="plainlinks">[https://en.wikipedia.org/wiki/ | <span class="plainlinks">[https://en.wikipedia.org/wiki/{{{1}}} <span style="color: #14866d;">{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}]</span> [[File:Wikipediaw.png|14px|alt=Wikipedia]]<noinclude> | ||
If the article has a space, make it an underscore and set parameter 2 to be the actual name you want (or if you want a different name entirely. For example, | |||
<code><nowiki>{{wiki|Destiny_(streamer)|Destiny}}</nowiki></code> will output {{wiki|Destiny_(streamer)|Destiny}} | |||
---- | |||
And carries over for something like | |||
<code><nowiki>{{wiki|Destiny_(streamer)|Wiki-warrior number 1}}</nowiki></code> will output {{wiki|Destiny_(streamer)|Wiki-warrior number 1}} | |||
---- | |||
If you dont include a 2nd parameter, it will look as entered (it will set the shortened name of the link to the last part of the hyperlink, e.g. | |||
<code><nowiki>{{wiki|Destiny_(streamer)}}</nowiki></code> will output {{wiki|Destiny_(streamer)}} | |||
This works fine for single word articles. | |||
</noinclude> |
Revision as of 04:53, 30 May 2024
If the article has a space, make it an underscore and set parameter 2 to be the actual name you want (or if you want a different name entirely. For example,
{{wiki|Destiny_(streamer)|Destiny}}
will output Destiny
And carries over for something like
{{wiki|Destiny_(streamer)|Wiki-warrior number 1}}
will output Wiki-warrior number 1
If you dont include a 2nd parameter, it will look as entered (it will set the shortened name of the link to the last part of the hyperlink, e.g.
{{wiki|Destiny_(streamer)}}
will output Destiny_(streamer)
This works fine for single word articles.