Template talk:Red link: Difference between revisions
m (Created page with "chould someone please remove the <nowiki><font></nowiki> tag? it is VERY outdated --~~~~") |
m (Text replacement - "PikaTepig999" to "SuperPikaPool13") |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
chould someone please remove the <nowiki><font></nowiki> tag? it is VERY outdated --[[User:Hanmac|Hanmac]] 08:31, 1 December 2010 (UTC) | chould someone please remove the <nowiki><font></nowiki> tag? it is VERY outdated --[[User:Hanmac|Hanmac]] 08:31, 1 December 2010 (UTC) | ||
:Like that? --[[User:SnorlaxMonster|<span style="color:#A70000">'''Snorlax'''</span>]][[User talk:SnorlaxMonster|<span style="color:#0000A7">'''Monster'''</span>]] 09:46, 1 December 2010 (UTC) | |||
== ifexist function == | |||
Would it be possible to integrate the [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23ifexist ifexist] function? | |||
Like this: {{#ifexist:Pokémon world (Mystery Dungeon)|[[Pokémon world (Mystery Dungeon)]]|{{redlink|Pokémon world (Mystery Dungeon)}}}} (edit to see what I mean) | |||
I think it would work better, so you could see whether it actually exists. --[[User:Abcboy|Abcboy]] ([[User talk:Abcboy|talk]]) 15:49, 14 October 2012 (UTC) | |||
== New coding == | |||
I would like the coding to be this: | |||
<pre> | |||
<templatestyles src="Red link/colors.css" /><span class="plainlinks redlink">[{{fullurl:{{{1}}}|action=edit}} <span title="{{FULLPAGENAME:{{{1}}}}} {{int:parentheses|{{int:wikieditor-toolbar-tool-link-int-target-status-notexists}}}}">{{{2|{{{1}}}}}}</span>]</span> | |||
</pre> | |||
'''Explanation:''' | |||
* The <code><templatestyles></code> tag requires the extension [[mw:Extension:TemplateStyles|TemplateStyles]] to work. In the <code>src</code> parameter, you should specify from what wiki page the style sheet needs to be (defaults to the Template namespace; the page must have the <code>sanitized-css</code> content model). The page's content should be: | |||
<pre> | |||
span.redlink > a:link {color:#ba0000} | |||
span.redlink > a:visited {color:#c57d58} | |||
</pre> | |||
* Otherwise, the above content has to be added to the page [[MediaWiki:Common.css]] (only {{bp|administrators}} have the specific user right to do this). | |||
* The transclusion filter <code>int:</code> makes the transclusion <code>{{<nowiki />int:xyz}}</code> same as <code>{{<nowiki />MediaWiki:xyz}}</code>, but the content is adjusted to the user's interface language. Displays as ⧼xyz⧽ if {{red link|MediaWiki:xyz}} doesn't exist. | |||
** <span style="font-size: 2.5em">{{m|Protect|{{int:vector-action-protect}}!}}</span> | |||
** To change the above word, see the page in <span class="plainlinks">[{{fullurl:Template talk:Red link|uselang=fr}} French], [{{fullurl:Template talk:Red link|uselang=ja}} Japanese] and [{{fullurl:Template talk:Red link|uselang=pl}} Polish]</span>. | |||
* {‍{FULLPAGENAME}‍} will automatically apply capital letters when possible to the given page name. | |||
Hope that clears out things. <span lang="ja">[[User:TheICTLiker4|<span style="color:#333">'''TheI'''</span>]][[Special:Contributions/TheICTLiker4|<span style="color:#f30">'''CTLi'''</span>]][[User talk:TheICTLiker4|<span style="color:#bbb">'''ker4'''</span>]]</span> 13:49, 25 January 2020 (UTC) | |||
== Edit request == | |||
While the use of an <code><nowiki>{{#ifexist}}</nowiki></code> tag has been suggested [[Special:Diff/1780378|before]], if that is not going to be implemented, I'd ask that a <code>redlink=1</code> argument be added to the <code><nowiki>{{fullurl}}</nowiki></code> tag. The advantage in using this is, that if the page exists, the user does not go into the edit window. Or remove the <code>action=edit</code> argument, it'll show the create or search message. There's really no point in going to the edit window everytime. → [[User:SuperPikaPool13|<span style="color:#000;">Pika</span>]][[User talk:SuperPikaPool13|<span style="color:#000;">Tepig</span>]][[Special:Contribs/SuperPikaPool13|<span style="color:#000;">999</span>]] 21:34, 3 December 2023 (UTC) | |||
:I've also posted this on the discord, and I was able to attach screenshots of what I mean [https://discord.com/channels/202737349996576769/1112283007705940061/1182446782748315688 here]. For those that don't want to use discord, basically my suggestion would change | |||
::<span class="plainlinks">[{{fullurl:Detective Pikachu|action=edit}} <span style="color:#CC2200">Detective Pikachu</span>] and [{{fullurl:Detective Pikachu (disambugiation)|action=edit}} <span style="color:#CC2200">Detective Pikachu (disambiguation)</span>]</span> | |||
:to | |||
::<span class="plainlinks">[{{fullurl:Detective Pikachu}} <span style="color:#CC2200">Detective Pikachu</span>] and [{{fullurl:Detective Pikachu (disambugiation)}} <span style="color:#CC2200">Detective Pikachu (disambiguation)</span>]</span>. | |||
:(See the landing pages of these sites yourself by clicking these links.) → [[User:SuperPikaPool13|<span style="color:#000;">Pika</span>]][[User talk:SuperPikaPool13|<span style="color:#000;">Tepig</span>]][[Special:Contribs/SuperPikaPool13|<span style="color:#000;">999</span>]] 22:34, 7 December 2023 (UTC) | |||
::Also a different edit request to the one above, the line<code><nowiki><span style="color:#CC2200"><span title="{{{1}}}">{{{2|{{{1}}}}}}</span></nowiki></code> only has one closing tag for the two openings of the span tag. They can be combined into one. → [[User:SuperPikaPool13|<span style="color:#000;">Pika</span>]][[User talk:SuperPikaPool13|<span style="color:#000;">Tepig</span>]][[Special:Contribs/SuperPikaPool13|<span style="color:#000;">999</span>]] 22:38, 7 December 2023 (UTC) |
Latest revision as of 02:35, 23 May 2024
chould someone please remove the <font> tag? it is VERY outdated --Hanmac 08:31, 1 December 2010 (UTC)
ifexist function
Would it be possible to integrate the ifexist function? Like this: Pokémon world (Mystery Dungeon) (edit to see what I mean) I think it would work better, so you could see whether it actually exists. --Abcboy (talk) 15:49, 14 October 2012 (UTC)
New coding
I would like the coding to be this:
<templatestyles src="Red link/colors.css" /><span class="plainlinks redlink">[{{fullurl:{{{1}}}|action=edit}} <span title="{{FULLPAGENAME:{{{1}}}}} {{int:parentheses|{{int:wikieditor-toolbar-tool-link-int-target-status-notexists}}}}">{{{2|{{{1}}}}}}</span>]</span>
Explanation:
- The
<templatestyles>
tag requires the extension TemplateStyles to work. In thesrc
parameter, you should specify from what wiki page the style sheet needs to be (defaults to the Template namespace; the page must have thesanitized-css
content model). The page's content should be:
span.redlink > a:link {color:#ba0000} span.redlink > a:visited {color:#c57d58}
- Otherwise, the above content has to be added to the page MediaWiki:Common.css (only administrators have the specific user right to do this).
- The transclusion filter
int:
makes the transclusion{{int:xyz}}
same as{{MediaWiki:xyz}}
, but the content is adjusted to the user's interface language. Displays as ⧼xyz⧽ if MediaWiki:xyz doesn't exist. - {{FULLPAGENAME}} will automatically apply capital letters when possible to the given page name.
Hope that clears out things. TheICTLiker4 13:49, 25 January 2020 (UTC)
Edit request
While the use of an {{#ifexist}}
tag has been suggested before, if that is not going to be implemented, I'd ask that a redlink=1
argument be added to the {{fullurl}}
tag. The advantage in using this is, that if the page exists, the user does not go into the edit window. Or remove the action=edit
argument, it'll show the create or search message. There's really no point in going to the edit window everytime. → PikaTepig999 21:34, 3 December 2023 (UTC)