Template:Gamepage/shortcut doc: Difference between revisions
Jump to navigation
Jump to search
(create) |
No edit summary |
||
Line 12: | Line 12: | ||
*p: Define this parameter to link to "X ({{abbrgame|{{{1}}}|full}})" instead of "X in {{abbrgame|{{{1}}}|full}}". {{t|{{abbrgame|{{{1}}}}}p}} does this automatically. | *p: Define this parameter to link to "X ({{abbrgame|{{{1}}}|full}})" instead of "X in {{abbrgame|{{{1}}}|full}}". {{t|{{abbrgame|{{{1}}}}}p}} does this automatically. | ||
}} | }} | ||
==Examples== | ==Examples== | ||
{{#if:{{{p|}}} | {{#if:{{{p|}}} | ||
Line 21: | Line 20: | ||
*<code><nowiki>{{</nowiki>{{abbrgame|{{{1}}}}}<nowiki>|Lord of Darkness}}</nowiki></code> produces: {{{{abbrgame|{{{1}}}}}|Lord of Darkness}} | *<code><nowiki>{{</nowiki>{{abbrgame|{{{1}}}}}<nowiki>|Lord of Darkness}}</nowiki></code> produces: {{{{abbrgame|{{{1}}}}}|Lord of Darkness}} | ||
*<code><nowiki>{{</nowiki>{{abbrgame|{{{1}}}}}<nowiki>|Lord of Darkness|Lard of Duckness}}</nowiki></code> produces: {{{{abbrgame|{{{1}}}}}|Lord of Darkness|Lard of Duckness}} | *<code><nowiki>{{</nowiki>{{abbrgame|{{{1}}}}}<nowiki>|Lord of Darkness|Lard of Duckness}}</nowiki></code> produces: {{{{abbrgame|{{{1}}}}}|Lord of Darkness|Lard of Duckness}} | ||
}}</includeonly><noinclude>{{documentation}}</noinclude> | }}{{#ifeq:{{SUBPAGENAME}}|doc||[[Category:Internal link templates]]}}</includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 03:44, 6 August 2020
Documentation [edit]
This template is used to automatically generate documentation for shortcuts to Template:Gamepage and categorize them. The doc subpage still needs to use
{{documentation subpage}}
manually.
Parameters
- first unnamed parameter (required): the game the template relates to (can be the abbreviation)
- p: define this parameter if it is a "p" template (links to the parenthesized version).
The above documentation is transcluded from Template:Gamepage/shortcut doc/doc.