Template:A: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{#if:{{{2|}}}|[[{{#replace:{{#replace:{{a/list|{{{1}}}}}|'''}}|''}}|{{#ifeq:{{{2}}}|l|{{PAGETITLE|{{a/list|{{{1}}}}}}}|{{{2}}}}}]]|{{PAGETITLE|{{a/list|{{{1}}}}}}}}}<noinclude>
{{#if:{{a/list|{{{1}}}}}|
{{#if:{{{2|}}}|
[[{{#replace:{{#replace:{{a/list|{{{1}}}}}|'''}}|''}}|{{#ifeq:{{{2}}}|l|{{PAGETITLE|{{a/list|{{{1}}}}}}}|{{{2}}}}}]]
|
{{PAGETITLE|{{a/list|{{{1}}}}}}}}}
|{{#switch:{{NAMESPACE}}||Gallery=[[Category:Articles with invalid abbreviations]]}}}}<noinclude><noinclude>
== Usage ==
== Usage ==
<code><nowiki>{{a|N64}}</nowiki></code>
:{{a|N64}}
<code><nowiki>{{a|N64|l}}</nowiki></code> (''l'' for '''link''')
:{{a|N64|l}}
<code><nowiki>{{a|N64|My favorite console}}</nowiki></code>
:{{a|N64|My favorite console}}
<code><nowiki>{{a|SM64}}</nowiki></code>
<code><nowiki>{{a|SM64}}</nowiki></code>
:{{a|SM64}}
:{{a|SM64}}
Line 25: Line 21:
This template was created [[MarioWiki:Proposals/Archive/72#Add an abbreviation template to type out full game titles|per proposal]] and allows an abbreviation to be entered and a full title or link to be outputted.
This template was created [[MarioWiki:Proposals/Archive/72#Add an abbreviation template to type out full game titles|per proposal]] and allows an abbreviation to be entered and a full title or link to be outputted.


Edit the [[Template:A/list|subtemplate]] to add more abbreviations.
Edit the [[Template:A/list|subtemplate]] to add more abbreviations. In most cases, abbreviations should be consistent with our [[:Category:Navbox templates|navbox template]] names.


[[Category:Formatting templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>

Revision as of 11:31, December 23, 2024

Usage

{{a|SM64}}

Super Mario 64

{{a|SM64|l}} (l for link)

Super Mario 64

{{a|SM64|My favorite game}}

My favorite game

{{a|PMTTYDNS|l}} for {{a|NS|l}}

Paper Mario: The Thousand-Year Door for Nintendo Switch

About

This template was created per proposal and allows an abbreviation to be entered and a full title or link to be outputted.

Edit the subtemplate to add more abbreviations. In most cases, abbreviations should be consistent with our navbox template names.