Template:Fangame: Difference between revisions
From Bibliotheca Anonoma
Antonizoon (talk | contribs) No edit summary |
Antonizoon (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude>[[Category: Infobox]][[Category: Templates]][[Category: Cargo Templates]] | ||
This is | {{Template}} | ||
<pre> | This is a cargo template wrapped in an infobox used for [[:Category:Fangames|Fangames]]. | ||
When adding columns, make sure to edit [[Module:InfoboxFangame]] as well. | |||
== Usage == | |||
<pre><nowiki> | |||
{{Fangame | {{Fangame | ||
|image= | | image = [[File:test.png|200px]] | ||
|caption= | | caption = This '''image''' is a test image that is found on Wikimedia Commons. | ||
|platform= | | platform = Windows, Mac, Linux | ||
|franchise= | | franchise = Super Mario Bros | ||
|release_date= | | release_date = 2016-08-01 | ||
|takedown_date= | | takedown_date = 2016-08-02 | ||
|mod= | | mod = No | ||
|homepage_url= | | homepage_url = https://test.url | ||
|community_url= | | community_url = https://reddit.com/r/community | ||
|download_url= | | download_url = https://archive.org/details/test | ||
}} | }} | ||
</pre> | </nowiki></pre> | ||
{{#cargo_declare: | |||
{{#cargo_declare:_table=Fangames|image=File|caption=Text|platform=List (,) of Text|franchise=Text|release_date=Date|takedown_date=Date|mod=Boolean|homepage_url=URL|community_url=URL|download_url=URL}} | _table=Fangames | ||
</noinclude><includeonly>{{#cargo_store:_table=Fangames|image={{{image|}}}|caption={{{caption|}}}|platform={{{platform|}}}|franchise={{{franchise|}}}|release_date={{{release_date|}}}|takedown_date={{{takedown_date|}}}|mod={{{mod|}}}|homepage_url={{{homepage_url|}}}|community_url={{{community_url|}}}|download_url={{{download_url | |image=File | ||
|caption=Text | |||
|platform=List (,) of Text | |||
|franchise=Text | |||
|release_date=Date | |||
|takedown_date=Date | |||
|mod=Boolean | |||
| {{{caption|}}} | |homepage_url=URL | ||
| | |community_url=URL | ||
|download_url=URL | |||
}}</noinclude> | |||
| | <includeonly> | ||
{{#cargo_store: | |||
_table=Fangames | |||
| | | image = [[{{{image|}}}]] | ||
| caption = {{{caption|}}} | |||
| platform = {{{platform|}}} | |||
| | | franchise = {{{franchise|}}} | ||
| release_date = {{{release_date|}}} | |||
| takedown_date = {{{takedown_date|}}} | |||
| | | mod = {{#switch: {{{mod|}}}|Yes|1=1|No|0|#default=0}} | ||
| homepage_url = {{{homepage_url|}}} | |||
| community_url = {{{community_url|}}} | |||
| | | download_url = {{{download_url}}} | ||
}}{{#invoke: InfoboxFangame | default | |||
| image = {{{image|<div style="margin-top:-20px;"></div>}}} <!-- If there is no image, removes one line break --> | |||
| | | caption = {{{caption|}}} | ||
| platform = {{{platform|{{Gray|Unknown}}}}} | |||
| franchise = {{{franchise|{{Gray|N/A}}}}} | |||
| | | release_date = {{{release_date|{{Gray|Unknown}}}}} | ||
| takedown_date = {{{takedown_date|{{Gray|Unknown}}}}} | |||
| mod = {{{mod|No}}} | |||
| homepage_url = {{{homepage_url|{{Gray|Unknown}}}}} | |||
| community_url = {{{community_url|{{Gray|Unknown}}}}} | |||
[[Category:Fangames]] | | download_url = {{{download_url|{{Gray|Unknown}}}}} | ||
</includeonly> | }}[[Category:Fangames]]</includeonly> |
Revision as of 02:49, 15 January 2017
This page is a template. It contains no Bibliotheca Anonoma-related information, but should be used as part of other articles. For more information, read Help:Template.
Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.
Feel free to voice your opinion regarding this template.This is a cargo template wrapped in an infobox used for Fangames.
When adding columns, make sure to edit Module:InfoboxFangame as well.
Usage
{{Fangame | image = [[File:test.png|200px]] | caption = This '''image''' is a test image that is found on Wikimedia Commons. | platform = Windows, Mac, Linux | franchise = Super Mario Bros | release_date = 2016-08-01 | takedown_date = 2016-08-02 | mod = No | homepage_url = https://test.url | community_url = https://reddit.com/r/community | download_url = https://archive.org/details/test }}
{{#cargo_declare: _table=Fangames
|image=File |caption=Text |platform=List (,) of Text |franchise=Text |release_date=Date |takedown_date=Date |mod=Boolean |homepage_url=URL |community_url=URL |download_url=URL
}}