Template:Media: Difference between revisions
From Pikmin Fanon
(Minor tweaks.) |
m (Made various tweaks. Also added a new function that puts a media page at the top of its category if its name matches the page's name.) |
||
Line 1: | Line 1: | ||
{{box|{{text size|'''''{{{1}}}'''''|2}}<br>This article or section contains information pertaining to ''[[ | {{box|{{text size|'''''{{{1}}}'''''|2}}<br>This article or section contains information pertaining to ''[[{{{1}}}]]'', a {{#if:{{{series|}}}|series of}} {{#if:{{{3|}}}|''{{c|{{{3}}}}}'' ROM hack|{{#if:{{{fanfic|}}}|fanfiction|fanon game}}|fanon game}}{{#if:{{{series|}}}|s}} created by {{#if:{{{nouser|}}}|{{{2}}}|[[User:{{{2}}}|{{{2}}}]]}}.|100%}}<includeonly>{{#if:{{{nocat|}}}||[[Category:{{{1}}}{{#if:{{{subcat|}}}| {{{subcat}}}}}{{#ifeq:{{{1}}}|{{PAGENAME}}|{{{1}}}{{!}} }}]]}}{{#if:{{{fanfic|}}}|[[Category:Fanfictions]]}}</includeonly><noinclude> | ||
==Info== | ==Info== | ||
{{rename|Template:Media|More inclusive name.}} | {{rename|Template:Media|More inclusive name.}} | ||
{{todo| | {{todo| | ||
*Make every media header template | *Make every media header template resemble this template. | ||
*Possibly make the template categorize pages that have the <code><nowiki>nocat=</nowiki></code> field set to true into a special category. This would apply to | *Possibly make the template categorize pages that have the <code><nowiki>nocat=</nowiki></code> field set to true into a special category. This would apply to media articles that have no other pages related to them.}} | ||
This template is a substitute for nonexistent [[:Category:Game header templates|game header template]]s. It links to the [[:Category:Fanon games|fanon game]] an article's page or section pertains to, and unless undesired, the game's creator. | This template is a substitute for nonexistent [[:Category:Game header templates|game header template]]s. It links to the [[:Category:Fanon games|fanon game]] an article's page or section pertains to, and unless undesired, the game's creator. |
Revision as of 14:56, 1 June 2022
This article or section contains information pertaining to [[{{{1}}}]], a fanon game created by [[User:{{{2}}}|{{{2}}}]]. |
Info
Reason: More inclusive name. |
|
This template is a substitute for nonexistent game header templates. It links to the fanon game an article's page or section pertains to, and unless undesired, the game's creator.
Using this template automatically categorizes the page into the specified game's category, and subcategory if given.
Parameters
Parameter | Mandatory | Default | Purpose | Detailed description |
---|---|---|---|---|
1 | Yes | Main page and category | The page the relevant content belongs to. | |
2 | Yes | Creator | The game's creator. | |
3 | No | Game type | If the game is a ROM hack, specify the game it is a hack of. Also changes some text. | |
fanfic | No | Inclusion | If the media is fanfiction, give this field a value such as "y". Also changes some text. Ignores nocat= .
| |
series | No | Inclusion | If the fanon game is not standalone and is instead part of a series, give this field a value such as "y". | |
subcat | No | Subcategory | The specific subcategory the page belongs in if any. This works only if a game is specified. | |
nouser | No | User page link | If the user is not registered, give this field a value such as "y" to disable the link to their user page. | |
nocat | No | No categorization | Disallow the page from being categorized into its own fanon game content category. Useful if the page is standalone. |
Skeleton
{{game|<game>|<creator>|<hack base>|<series=y>|<subcat>|<nouser=y>|<nocat=y>}}