Sandbox: Difference between revisions

From The Sextant of Worlds
Jump to navigationJump to search
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
Line 49: Line 49:
== Portable Infoboxes ==
== Portable Infoboxes ==
{{Throal}}
{{Throal}}
'''<nowiki><infobox></nowiki>'''
<infobox>
'''<title''' source="title"'''>'''
    <title source="title">
'''<default>'''<nowiki>{{PAGENAME}}</nowiki>'''</default>'''
        <default>{{PAGENAME}}</default>
'''</title>'''
    </title>
'''<image''' source="image"'''>'''
    <image source="image">
'''<caption''' source="imagecaption" '''/>'''
        <caption source="imagecaption" />
'''</image>'''
    </image>
'''<data''' source="position"'''>'''
    <data source="position">
'''<label>'''Position'''</label>'''
        <label>Position</label>
'''<nowiki></data></nowiki>'''
    </data>
'''<data''' source="age"'''>'''
    <data source="age">
'''<label>'''Age'''</label>'''
        <label>Age</label>
'''<nowiki></data></nowiki>'''
    </data>
'''<data''' source="status"'''>'''
    <data source="status">
'''<label>'''Status'''</label>'''
        <label>Status</label>
'''<nowiki></data></nowiki>'''
    </data>
'''<data''' source="height"'''>'''
    <data source="height">
'''<label>'''Height'''</label>'''
        <label>Height</label>
'''<format>'''<nowiki>{{{height}}}</nowiki> inches'''</format>'''
        <format>{{{height}}} inches</format>
'''<nowiki></data></nowiki>'''
    </data>
'''<data''' source="weight"'''>'''
    <data source="weight">
'''<label>'''Weight'''</label>'''
        <label>Weight</label>
'''<format>'''<nowiki>{{{weight}}}</nowiki> grams'''</format>'''
        <format>{{{weight}}} grams</format>
'''<nowiki></data></nowiki>'''
    </data>
'''<nowiki></infobox></nowiki>'''
</infobox>





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>Sandbox</default>
   </title>
   <image source="image">

</image> <label>Position</label> <label>Age</label> <label>Status</label> <label>Height</label> <format>{{{height}}} inches</format> <label>Weight</label> <format>{{{weight}}} grams</format> </infobox>

Citations

Status: Not Working

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