Difference between revisions of "Template:Frictionary"

From Beyond Social
(Created page with "<noinclude> This is the "Frictionary" template. It should be called in the following format: <pre> {{Frictionary |short_description= |long_description= |categories= }} </pre>...")
 
 
(56 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
<pre>
 
<pre>
 
{{Frictionary
 
{{Frictionary
|short_description=
+
|shortDescription=
|long_description=
+
|longDescription=
|categories=
+
|year=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
{{#cargo_declare:_table=Frictionary|short_description=String|long_description=Text|categories=List (,) of String (allowed values=2018,2019)}}
+
{{#cargo_declare:_table=Frictionary|shortDescription=String|longDescription=Text|year=List (,) of String (allowed values=2018,2019,2020)}}
  
=Preview=
+
</noinclude>
...
 
  
</noinclude>
+
<includeonly>{{#cargo_store:_table=Frictionary|shortDescription={{{shortDescription|}}}|longDescription={{{longDescription|}}}|year={{{year|}}} }}
 +
 
 +
'''Short description''': {{{shortDescription|(Empty)}}}
 +
 
 +
'''Long description''': {{{longDescription|(Empty)}}}
 +
 
 +
'''Used in the Frictionary of''': {{#arraymap:{{{year|(empty)}}}|,|x|[[:Category:x|x]]}}
 +
 
 +
<br><br>
 +
 
 +
{{#formlink:form=Frictionary|link text=edit this Frictionary item|link type=button|target={{FULLPAGENAME}} }}
  
<includeonly>{{#cargo_store:_table=Frictionary|short_description={{{short_description|}}}|long_description={{{long_description|}}}|categories={{{categories|}}} }}{| 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;"
+
=Pages related to {{PAGENAME}}=
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
 
|-
 
! short_description
 
| {{{short_description|}}}
 
|-
 
! long_description
 
| {{{long_description|}}}
 
|-
 
! categories
 
| {{#arraymap:{{{categories|}}}|,|x|[[x]]}}
 
  
|}
+
<div class="overview">
 +
{{#ask:[[Category:{{PAGENAME}}]]
 +
|?Thumb
 +
|?Category
 +
|?Modification date
 +
|?Creation date
 +
|?Last editor is
 +
|link=none
 +
|format=template
 +
|template=Overview
 +
}}
 +
</div>
  
 
[[Category:Frictionary]]
 
[[Category:Frictionary]]
 +
{{#arraymap:{{{year|(empty)}}}|,|x|[[Category:x]]}}
 +
 
</includeonly>
 
</includeonly>

Latest revision as of 13:29, 26 October 2020

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

{{Frictionary
|shortDescription=
|longDescription=
|year=
}}

Edit the page to see the template text. This template defines the table "Frictionary". View table.