Template:Fangame: Difference between revisions

From Bibliotheca Anonoma
(Created page with "<noinclude>Category: InfoboxCategory: TemplatesCategory: Cargo Templates {{Template}} This is a cargo template wrapped in an infobox used for :Category:Fangames...")
 
No edit summary
Line 1: Line 1:
<noinclude>[[Category: Infobox]][[Category: Templates]][[Category: Cargo Templates]]
<noinclude>
{{Template}}
This is the "Fangame" template.
 
It should be called in the following format:
This is a cargo template wrapped in an infobox used for [[:Category:Fangames|Fangames]].
<pre>
 
When adding columns, make sure to edit [[Module:InfoboxFangame]] as well.
 
== Usage ==
 
<pre><nowiki>
{{Fangame
{{Fangame
| image         = [[File:test.png|200px]]
|image=
| caption       = This '''image''' is a test image that is found on Wikimedia Commons.
|caption=
| platform       = Windows, Mac, Linux
|platform=
| franchise     = Super Mario Bros
|franchise=
| release_date   = 2016-08-01
|release_date=
| takedown_date = 2016-08-02
|takedown_date=
| mod           = No
|mod=
| homepage_url   = https://test.url
|homepage_url=
| community_url = https://reddit.com/r/community
|community_url=
| download_url   = https://archive.org/details/test
|download_url=
}}
}}
</nowiki></pre>
</pre>
{{#cargo_declare:
Edit the page to see the template text.
_table=Fangames
{{#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}}
|image=File
</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;"
|caption=Text
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
|platform=List (,) of Text
|-
|franchise=Text
! Image
|release_date=Date
| [[{{{image|}}}]]
|takedown_date=Date
|-
|mod=Boolean
! Caption
|homepage_url=URL
| {{{caption|}}}
|community_url=URL
|-
|download_url=URL
! Platform
}}</noinclude>
| {{{platform|}}}
{{#invoke: InfoboxFangame | default
|-
| image         = {{{image|<div style="margin-top:-20px;"></div>}}} <!-- If there is no image, removes one line break -->
! Franchise
| caption       = {{{caption|}}}
| {{{franchise|}}}
| platform       = {{{platform|{{Gray|Unknown}}}}}
|-
| franchise     = {{{franchise|{{Gray|N/A}}}}}
! Release Date
| release_date   = {{{release_date|{{Gray|Unknown}}}}}
| {{{release_date|}}}
| takedown_date = {{{takedown_date|{{Gray|Unknown}}}}}
|-
| mod           = {{{mod|No}}}
! Takedown Date
| homepage_url   = {{{homepage_url|{{Gray|Unknown}}}}}
| {{{takedown_date|}}}
| community_url = {{{community_url|{{Gray|Unknown}}}}}
|-
| download_url   = {{{download_url|{{Gray|Unknown}}}}}
! Mod
}}<includeonly>[[Category: Fangames]]
| {{{mod|}}}
{{#cargo_store:
|-
_table=Fangames
! Homepage
| image          = {{{image|}}}
| {{{homepage_url|}}}
| caption        = {{{caption|}}}
|-
| platform      = {{{platform|}}}
! Community
| franchise      = {{{franchise|}}}
| {{{community_url|}}}
| release_date  = {{{release_date|}}}
|-
| takedown_date  = {{{takedown_date|}}}
! Download
| mod            = {{#switch: {{{mod|}}}|Yes|1=1|No|0|#default=0}}
| {{{download_url|}}}
| homepage_url  = {{{homepage_url|}}}
|}
| community_url  = {{{community_url|}}}
 
| download_url  = {{{download_url}}}
[[Category:Fangames]]
}}[[Category:Fangame]]</includeonly>
</includeonly>

Revision as of 02:44, 15 January 2017

This is the "Fangame" template. It should be called in the following format:

{{Fangame
|image=
|caption=
|platform=
|franchise=
|release_date=
|takedown_date=
|mod=
|homepage_url=
|community_url=
|download_url=
}}

Edit the page to see the template text. {{#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}}