Template:Media: Difference between revisions
From Pikmin Fanon
m (Text replacement - "Category:Fanon games" to "Category:Games") |
(Added "DLC" and "the" parameters. Hopefully I didn't break everything.) |
||
Line 1: | Line 1: | ||
{{box|{{text size|'''''{{{t1|{{{1}}}}}}'''''|16}}<br>This article or section presents information pertaining to ''[[{{{1}}}|{{{t1|{{{1}}}}}}]]'', a {{#if:{{{series|}}}|series of}} {{#if:{{{3|}}}|'' | {{box|{{text size|'''''{{{t1|{{{1}}}}}}'''''|16}}<br>This article or section presents information pertaining to {{#if:{{{the|}}}|the}} ''[[{{{1}}}|{{{t1|{{{1}}}}}}]]'', a {{#if:{{{series|}}}|series of}} {{#if:{{{3|}}}|''[[{{{3}}}]]'' {{#if:{{{dlc|}}}|DLC|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}}}|{{BASEPAGENAME}}|{{!}} }}]]}}{{#if:{{{dlc|}}}|[[Category:DLC]]}}</includeonly> | ||
<noinclude> | |||
==Info== | ==Info== | ||
{{todo| | {{todo| | ||
*Make every media header template resemble this template. | *Make every media header template resemble this template. | ||
*Add an "engine" parameter for fanon media such as ''[[Pikifen]]''. | *Add an "engine" parameter for fanon media such as ''[[Pikifen]]''. <!-- Might not be necessary. --> | ||
*Have the template properly categorize pages that have the same name as the specified media under the space character in their respective category. | *Have the template properly categorize pages that have the same name as the specified media under the space character in their respective category. | ||
*Have the template categorize fanfictions into [[:Category:Fanfictions]] only if both the page title matches the text in the <code><nowiki>{{{1}}}</nowiki></code> field and <code><nowiki>fanfic=</nowiki></code> is true. | *Have the template categorize fanfictions into [[:Category:Fanfictions]] only if both the page title matches the text in the <code><nowiki>{{{1}}}</nowiki></code> field and <code><nowiki>fanfic=</nowiki></code> is true. | ||
Line 24: | Line 25: | ||
|- | |- | ||
! 3 | ! 3 | ||
| No || || Game type || If the game is a ROM hack, specify the game it is a hack of. Also changes some text. | | No || || Game type || If the game is a ROM hack or DLC, specify the game it is a hack or DLC of. Also changes some text. | ||
|- | |- | ||
! t1 | ! t1 | ||
| No || || Link text || Text to display on the link to the media's main article. | | No || || Link text || Text to display on the link to the media's main article. | ||
|- | |||
! dlc | |||
| No || || Inclusion || If the media is DLC content, give this field a value such as "y". Also changes some text. Sorts pages into [[:Category:DLC]]. Ignores <code><nowiki>nocat=</nowiki></code>. | |||
|- | |- | ||
! fanfic | ! fanfic | ||
Line 37: | Line 41: | ||
! subcat | ! subcat | ||
| No || || Subcategory || The specific subcategory the page belongs in if any. This works only if a game is specified. | | No || || Subcategory || The specific subcategory the page belongs in if any. This works only if a game is specified. | ||
|- | |||
! the | |||
| No || || Inclusion || Places the definitive article "the" in front of the game, DLC, or fanfiction title. To be used only if wording would otherwise be awkward. | |||
|- | |- | ||
! nouser | ! nouser |
Revision as of 13:54, 25 March 2024
This article or section presents information pertaining to [[{{{1}}}|{{{1}}}]], a fanon game created by [[User:{{{2}}}|{{{2}}}]]. |
Info
|
This template is a substitute for nonexistent media header templates. It links to fanon content such as fanon games an article's page or section pertains to, and unless undesired, its creator.
Using this template automatically categorizes the page into the specified media'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 or DLC, specify the game it is a hack or DLC of. Also changes some text. | |
t1 | No | Link text | Text to display on the link to the media's main article. | |
dlc | No | Inclusion | If the media is DLC content, give this field a value such as "y". Also changes some text. Sorts pages into Category:DLC. Ignores nocat= .
| |
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. | |
the | No | Inclusion | Places the definitive article "the" in front of the game, DLC, or fanfiction title. To be used only if wording would otherwise be awkward. | |
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>}}