Template:Wiki: Difference between revisions

From Destiny Wiki
Jump to navigation Jump to search
(i will figure this out tomorrow, this works mostly as intended for now copium)
m (add documentation template)
 
Line 1: Line 1:
<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>
<includeonly><span class="plainlinks">[https://en.wikipedia.org/wiki/{{{1}}} <span style="color: #14866d;">{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}]</span>{{#if: {{{3|}}}|{{{3}}}}} [[File:Wikipediaw.png|14px|alt=Wikipedia]]</includeonly><noinclude>{{documentation}}</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>

Latest revision as of 19:02, 31 May 2024