Template:Fangame: Difference between revisions

From Bibliotheca Anonoma
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>[[Category: Infobox]][[Category: Templates]][[Category: Cargo Templates]]
This is the "Fangame" template.
{{Template}}
It should be called in the following format:
 
<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>
Edit the page to see the template text.
{{#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|}}} }}{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
|image=File
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
|caption=Text
|-
|platform=List (,) of Text
! Image
|franchise=Text
| [[{{{image|}}}]]
|release_date=Date
|-
|takedown_date=Date
! Caption
|mod=Boolean
| {{{caption|}}}
|homepage_url=URL
|-
|community_url=URL
! Platform
|download_url=URL
| {{{platform|}}}
}}</noinclude>
|-
<includeonly>
! Franchise
{{#cargo_store:
| {{{franchise|}}}
_table=Fangames
|-
| image         = [[{{{image|}}}]]
! Release Date
| caption       = {{{caption|}}}
| {{{release_date|}}}
| platform       = {{{platform|}}}
|-
| franchise     = {{{franchise|}}}
! Takedown Date
| release_date   = {{{release_date|}}}
| {{{takedown_date|}}}
| takedown_date = {{{takedown_date|}}}
|-
| mod           = {{#switch: {{{mod|}}}|Yes|1=1|No|0|#default=0}}
! Mod
| homepage_url   = {{{homepage_url|}}}
| {{{mod|}}}
| community_url = {{{community_url|}}}
|-
| download_url   = {{{download_url}}}
! Homepage
}}{{#invoke: InfoboxFangame | default
| {{{homepage_url|}}}
| image          = {{{image|<div style="margin-top:-20px;"></div>}}} <!-- If there is no image, removes one line break -->
|-
| caption        = {{{caption|}}}
! Community
| platform      = {{{platform|{{Gray|Unknown}}}}}
| {{{community_url|}}}
| franchise      = {{{franchise|{{Gray|N/A}}}}}
|-
| release_date  = {{{release_date|{{Gray|Unknown}}}}}
! Download
| takedown_date  = {{{takedown_date|{{Gray|Unknown}}}}}
| {{{download_url|}}}
| 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

}}