Template:Shortcut: Difference between revisions

From The Wiki Camp 2 Jr.
Jump to navigation Jump to search
(Created page with "<includeonly>{{#invoke:Shortcut|main}}</includeonly><noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>")
 
No edit summary
Line 1: Line 1:
<includeonly>{{#invoke:Shortcut|main}}</includeonly><noinclude>
<table style="border: 1px solid #999; background: #7b7b7b3b; margin: .5em .5em .5em 1em; padding: 5px; float: right" class="noprint">
{{documentation}}
<th id="shortcut" class="noprint" align="center" valign="top"><small>[[Wikipedia:Wikipedia:Shortcut|Shortcut]]:<br /><span class="plainlinks">[https://youtube.fandom.com/wiki/{{{1|}}}?redirect=no {{{1}}}]<br>{{#if:{{{2|}}}|[https://youtube.fandom.com/wiki/{{{2|}}}?redirect=no {{{2}}}]}}</span></small>
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
</table><noinclude><br clear=all/>
----
'''Use this template to display shortcuts to a <tt>Help:</tt> or <tt>Wikitubia:</tt> TARGET page.'''
 
<tt><nowiki>{{Shortcut|H:EDIT}}</nowiki></tt> would be displayed as
 
{{Shortcut|H:EDIT}}
 
</noinclude>
</noinclude>
<noinclude>[[Category:Templates|{{PAGENAME}}]]<templatedata>
{
"params": {
"1": {
"label": "First shortcut link",
"description": "The first shortcut link to be displayed",
"example": "H:EDIT",
"type": "url",
"required": true,
"suggested": true
},
"2": {
"label": "Second shortcut link",
"description": "The second shortcut link to be displayed",
"example": "WT:STAFF",
"type": "url",
"suggested": true
}
},
"description": "Display shortcuts to a Help: or Wikitubia: TARGET page.",
"format": "inline"
}
</templatedata></noinclude>

Revision as of 02:14, 30 September 2023

Shortcut:
{{{1}}}



Use this template to display shortcuts to a Help: or Wikitubia: TARGET page.

{{Shortcut|H:EDIT}} would be displayed as

Shortcut:
H:EDIT

Display shortcuts to a Help: or Wikitubia: TARGET page.

[Edit template data]

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
First shortcut link1

The first shortcut link to be displayed

Example
H:EDIT
URLrequired
Second shortcut link2

The second shortcut link to be displayed

Example
WT:STAFF
URLsuggested