Template:Fangame: Difference between revisions

From Bibliotheca Anonoma
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
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         = test.png
|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=
| 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=
}}
}}
</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
|homepage_url=URL
| {{{caption|}}}
|community_url=URL
|-
|download_url=URL
! Platform
}}</noinclude>
| {{{platform|}}}
<includeonly>
|-
{{#cargo_store:
! Franchise
_table=Fangames
| {{{franchise|}}}
| image         = {{{image|}}}
|-
| caption       = {{{caption|}}}
! Release Date
| platform       = {{{platform|}}}
| {{{release_date|}}}
| franchise     = {{{franchise|}}}
|-
| release_date   = {{{release_date|}}}
! Takedown Date
| takedown_date = {{{takedown_date|}}}
| {{{takedown_date|}}}
| homepage_url   = {{{homepage_url|}}}
|-
| community_url = {{{community_url|}}}
! Mod
| download_url   = {{{download_url}}}
| {{{mod|}}}
}}{{#invoke: InfoboxFangame | default
|-
| image          = {{{image|<div style="margin-top:-20px;"></div>}}} <!-- If there is no image, removes one line break -->
! Homepage
| caption        = {{{caption|}}}
| {{{homepage_url|}}}
| platform      = {{{platform|{{Gray|Unknown}}}}}
|-
| franchise      = {{{franchise|{{Gray|N/A}}}}}
! Community
| release_date  = {{{release_date|{{Gray|Unknown}}}}}
| {{{community_url|}}}
| takedown_date  = {{{takedown_date|{{Gray|Unknown}}}}}
|-
| mod            = {{{mod|No}}}
! Download
| homepage_url  = {{{homepage_url|{{Gray|Unknown}}}}}
| {{{download_url|}}}
| community_url  = {{{community_url|{{Gray|Unknown}}}}}
|}
| download_url  = {{{download_url|{{Gray|Unknown}}}}}
 
}}[[Category:Fangames]]</includeonly>
[[Category:Fangames]]
</includeonly>

Latest revision as of 01:19, 3 September 2018

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[edit]

{{Fangame
| image          = test.png
| 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
| 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
|homepage_url=URL
|community_url=URL
|download_url=URL

}}