Template:Shortcut: Difference between revisions
From neox4t wiki
>Andre No edit summary |
m (1 revision imported) |
||
Line 10: | Line 10: | ||
{| cellspacing="0" | {| cellspacing="0" | ||
| style="color: #f7fff0; border:1px solid #0076ff; background:#288cff; border-top-left-radius: 5px; border-bottom-left-radius: 5px; padding:2px 5px 0 5px" | Shortcut: | | style="color: #f7fff0; border:1px solid #0076ff; background:#288cff; border-top-left-radius: 5px; border-bottom-left-radius: 5px; padding:2px 5px 0 5px" | Shortcut: | ||
| class="plainlinks" style="border:2px solid #0076ff; border-left:0; border-top-right-radius: 5px; border-bottom-right-radius: 5px; padding:2px 5px 0 5px" | {{#ifeq:{{#titleparts:{{PAGENAMEE}}|1|2}}||https://wiki | | class="plainlinks" style="border:2px solid #0076ff; border-left:0; border-top-right-radius: 5px; border-bottom-right-radius: 5px; padding:2px 5px 0 5px" | {{#ifeq:{{#titleparts:{{PAGENAMEE}}|1|2}}||https://neox4t.wiki/{{{1|{{FULLPAGENAMEE}}}}}|https://{{#titleparts:{{PAGENAMEE}}|2|2}}.neox4t.wiki/{{#titleparts:{{PAGENAMEE}}|1|1}}}} | ||
|} | |} | ||
</div></includeonly> | </div></includeonly> |
Revision as of 20:32, 9 September 2023
The purpose of this template is to display a space-saving shortlink to an article for easy sharing on chatrooms, blogs etc.
To display a shorlink with the same name as the article, all you need to do, is:
- add {{shortcut}} on the very first line of an article.
In case you find the name of an article too long and complicated:
- you can create a redirect and define the redirect on an article, e.g {{shortcut|og}} for Owners_Guide, which has og redirecting to it.