Sandbox: Difference between revisions

From The Sextant of Worlds
Jump to navigationJump to search
No edit summary
No edit summary
Tag: 2017 source edit
Line 48: Line 48:


== Portable Infoboxes ==
== Portable Infoboxes ==
<portableInfobox> <pi-title>{{{title|}}}</pi-title> <pi-image>{{{image|}}}</pi-image> <pi-section>
{{Throal}}
  <pi-item label="Author">{{{author|}}}</pi-item>
'''<nowiki><infobox></nowiki>'''
  <pi-item label="Publisher">{{{publisher|}}}</pi-item>
'''<title''' source="title"'''>'''
  <pi-item label="Genre">{{{genre|}}}</pi-item>
'''<default>'''<nowiki>{{PAGENAME}}</nowiki>'''</default>'''
  <pi-item label="Pages">{{{pages|}}}</pi-item>
'''</title>'''
</pi-section> </portableInfobox>
'''<image''' source="image"'''>'''
'''<caption''' source="imagecaption" '''/>'''
'''</image>'''
'''<data''' source="position"'''>'''
'''<label>'''Position'''</label>'''
'''<nowiki></data></nowiki>'''
'''<data''' source="age"'''>'''
'''<label>'''Age'''</label>'''
'''<nowiki></data></nowiki>'''
'''<data''' source="status"'''>'''
'''<label>'''Status'''</label>'''
'''<nowiki></data></nowiki>'''
'''<data''' source="height"'''>'''
'''<label>'''Height'''</label>'''
'''<format>'''<nowiki>{{{height}}}</nowiki> inches'''</format>'''
'''<nowiki></data></nowiki>'''
'''<data''' source="weight"'''>'''
'''<label>'''Weight'''</label>'''
'''<format>'''<nowiki>{{{weight}}}</nowiki> grams'''</format>'''
'''<nowiki></data></nowiki>'''
'''<nowiki></infobox></nowiki>'''
 
 
 
 
 
 
 
 
 
 
 
 
 
 


{{Throal}}


== Citations ==
== Citations ==

Revision as of 16:24, 1 May 2025

This page is for testing out MediaWiki extensions, themes, and tools.

Input Box Process

Status: Not Working 4/17/25

Followed:

https://www.mediawiki.org/wiki/Manual:Importing_Wikipedia_infoboxes_tutorial

Installed: required

  • Extension:ParserFunctions
  • Extension:Scribunto
  • Extension:Wikibase (some but not all templates need this)
  • Extension:TemplateStyles

Want to implement:

https://en.wikipedia.org/wiki/Template:Infobox_game/doc

Not currently appearing under templates to Insert.

Infoboxes

Module:Infobox

https://en.wikipedia.org/wiki/Module:Infobox

Infobox Company:

Template:Infobox company

Infobox Book

Infobox Game Test
PublishersPublisher test
GenresGenre Test
Websitehttps://www.sextantofworlds.net/index.php/Template:Infobox_book/doc
{{Infobox
 | name       = Template:'''subst''':'''PAGENAME'''
 | above      = Text in uppermost cell of infobox
 | subheader  = Subheader of the infobox
 | subheader2 = Second subheader of the infobox
 | header     = (the rest of the infobox goes here) }}

Portable Infoboxes

<infobox> <title source="title"> <default>Throal</default> </title> <image source="image"> <default>File:Nations_of_Barsaive_1_Throal.png</default> </image> <header>Third Edition</header> <label>Publisher</label> <default>Games</default> <label>Authors</label> </infobox> <infobox> <title source="title"> <default>{{PAGENAME}}</default> </title> <image source="image"> <caption source="imagecaption" /> </image> <data source="position"> <label>Position</label> </data> <data source="age"> <label>Age</label> </data> <data source="status"> <label>Status</label> </data> <data source="height"> <label>Height</label> <format>{{{height}}} inches</format> </data> <data source="weight"> <label>Weight</label> <format>{{{weight}}} grams</format> </data> </infobox>









Citations

Status: Not Working

https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates