Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Wiki: Difference between revisions

Template page
i will figure this out tomorrow, this works mostly as intended for now copium
make the wikipedia icon smaller
 
(6 intermediate revisions by the same user not shown)
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">[[:Wikipedia:{{{1}}}|<span title="Opens an external Wikipedia page for {{{1}}}" style="color: #14866d;">{{#if: {{{2|}}} | {{{2}}} | {{{1}}} }}]]</span>{{#if: {{{3|}}}|{{{3}}}}} [[File:Wikipediaw.png|12px|alt=Wikipedia]]</includeonly><noinclude>
 
{{documentation}}
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.


[[Category:Template]]
[[Category:In-line template]]
</noinclude>
</noinclude>

Latest revision as of 18:21, 20 July 2025