Template:Snippet: 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:Snip...")
 
m (add story field)
 
(4 intermediate revisions by the same user not shown)
Line 11: Line 11:
{{Snippet
{{Snippet
| image          = test.png
| image          = test.png
| caption       = This '''image''' is a test image that is found on Wikimedia Commons.
| description       = >describe the greentext with a short blurb about it
| story          = [[YourStory]]
| story          = [[YourStory]], if used
| creation_date  = 2016-08-01
| creation_date  = 2016-08-01
| discovery_date  = 2016-08-02
| discovery_date  = 2016-08-02
Line 21: Line 21:
</nowiki></pre>
</nowiki></pre>
{{#cargo_declare:
{{#cargo_declare:
_table=Fangames
_table=Snippet
  |image=File
  |image=File
  |caption=Text
  |description=Text
|story          = Wikitext
  |creation_date  = Date
  |creation_date  = Date
  |discovery_date  = Date
  |discovery_date  = Date
Line 32: Line 33:
<includeonly>
<includeonly>
{{#cargo_store:
{{#cargo_store:
  _table=Snippets
  _table=Snippet
| image          = {{{image|}}}
| image          = {{{image|}}}
| caption       = {{{caption|}}}
| description       = {{{description|}}}
| story          = {{{story|}}}
| creation_date  = {{{creation_date|}}}
| creation_date  = {{{creation_date|}}}
| discovery_date  = {{{discovery_date|}}}
| discovery_date  = {{{discovery_date|}}}
Line 42: Line 44:
}}{{#invoke: InfoboxSnippet | default
}}{{#invoke: InfoboxSnippet | default
| image          = {{{image|<div style="margin-top:-20px;"></div>}}} <!-- If there is no image, removes one line break -->
| image          = {{{image|<div style="margin-top:-20px;"></div>}}} <!-- If there is no image, removes one line break -->
| caption = {{{caption|}}}
| description = {{{description|}}}
| story          = {{{story|}}}
| story          = {{{story|}}}
| creation_date  = {{{creation_date|{{Gray|Unknown}}}}}
| creation_date  = {{{creation_date|{{Gray|Unknown}}}}}

Latest revision as of 22:39, 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 Snippets.

When adding columns, make sure to edit Module:InfoboxSnippet as well.

Usage

{{Snippet
| image          = test.png
| description        = >describe the greentext with a short blurb about it
| story          = [[YourStory]], if used
| creation_date   = 2016-08-01
| discovery_date  = 2016-08-02
| language       = English
| source_url   = https://test.url
| provenance   = 2channel,4chan,8chan
}}

{{#cargo_declare: _table=Snippet

|image=File
|description=Text
|story          = Wikitext
|creation_date   = Date
|discovery_date  = Date
|language       = Text
|source_url   = URL
|provenance=List (,) of Text

}}